문제

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?

도움이 되었습니까?

해결책

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 :)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top