Skip to content
Discussion options

You must be logged in to vote

It seems I've solved the problems:
1.si.sh_frame.n is not equivalent to si.n, and because of this issue, diagonal lines appeared on the cube surface when rendering.
2.

ray2 = mi.Ray3f(offsetRay); 
     ray2.o = so1.p; 
     ray2.maxt = dr.maximum(0, l - dr.norm(so1.p - offsetRay.o))

was incorrect as it didn't account for ray self-intersection; a small offset should be added.

I still have another question: since I don't fully understand how to implement nested loops in DrJit under cuda_ad_rgb, especially how while loops should be implemented, I'm currently implementing transmittance through multiple collisions. Could anyone explain how to implement while() loop logic in DrJit?

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@merlinND
Comment options

merlinND Apr 8, 2025
Collaborator

@wjakob
Comment options

Answer selected by merlinND
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants