Volume rendering #1101
Unanswered
OliviaBorgstrom
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I asked this question a few days ago #1092, I have mostly figured out the participating media contributions. However, one issue is that in the ptracer integrator rays are currently always spawned away from the direction of the collision, which means it can't deal with volumes.
ray = si.spawn_ray(si.to_world(bs.wo)); si = scene->ray_intersect(ray, active);
This is the code which spawns the rays inside of the ptracer integrator, I am assuming that bs.wo is always restricted to the top hemisphere- which is why it is never fired into the volumes. I'm wondering if anyone has any pointers on how to spawn rays which will go inside of the volumes as well.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions