-
I'm brand new to OWL and OptiX so forgive me if this is a very obvious question. I'm trying to extend sample 6 to include volumes like how Ray Tracing The Next Week does them (see listing 68 for the code) and I'm having issues with my intersection program where nothing intersects and I'm pretty sure I'm just misunderstanding something in how Optix/OWL work but I'm having trouble figuring out what. I might be going about this in a completely wrong way.
Any help is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey - debugging somebody else's code is always hard (hard enough to debug one's own code, right?), in particular by just looking at code snippets. But given your "am i going about this in the completely wrong way" comment you are well aware of that; and I think at least on that front I can tell you that no, you're not - at first glance that all looks pretty much the right way to go about it. So, a few comments that may cause issues - or at least help in finding them:
Hope that helps. Let me/us know how this goes please. |
Beta Was this translation helpful? Give feedback.
Hey - debugging somebody else's code is always hard (hard enough to debug one's own code, right?), in particular by just looking at code snippets. But given your "am i going about this in the completely wrong way" comment you are well aware of that; and I think at least on that front I can tell you that no, you're not - at first glance that all looks pretty much the right way to go about it.
So, a few comments that may cause issues - or at least help in finding them:
to get the ray origin and direction you use optixGetWorldRayXyz(); as long as you don't have any instances with non-unit transforms that shouldn't matter, but if you do: I think the intersection program is supposed to be ex…