Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top