cuda 中的 3D 建模(光线追踪前期)

发布于 2024-12-20 18:46:52 字数 209 浏览 3 评论 0 原文

我正在尝试使用 CUDA 实现一个简单的光线跟踪代码。

我陷入了建模部分。我试图找出如何用对象建模 3D 空间(从中间包含 3D 立方体的简单 3D 空间开始)。

我读过有关 openGL 和 CUDA 的混合项目,但这些文章太笼统了 - 并且 正如我所说,我对此很陌生。

有没有任何库/代码来实现这样的 3d 模型?

I'm trying to implement a simple raytracing code using CUDA.

I'm stuck at the modeling part. im trying to figure out how to model a 3d space with objects (start with a simple 3d space containing a 3d cube in the middle).

i've read about hybrid projects with openGL and CUDA but those articles were too general - and
as i said i am new at this.

are there any libraries/code for implementing such a 3d model?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撧情箌佬 2024-12-27 18:46:52

如果你想在 CUDA 中进行光线追踪,可以看看 NVIDIA 的 OptiX,它是用于 GPU 加速光线追踪的 API。 示例代码位于 SDK 范围从简单到复杂。他们将演示如何在渲染器中对 3D 对象进行建模。

另一方面,如果您对 CUDA 和光线追踪都不熟悉,您可能不想同时解决这两个问题:)

If you want to do ray tracing in CUDA, take a look at NVIDIA's OptiX, which is an API for GPU-accelerated ray tracing. There are several example codes in the SDK ranging from simple to sophisticated. They will demonstrate how to model 3D objects in your renderer.

On the other hand, if you're new to both CUDA and ray tracing, you probably don't want to tackle both at once :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文