camera ray -> plane intersection example (python + tdu mod)

Was trying to figure this out one for my self lately, and finally did. There’s not a lot of resources out there that explain everything in detail - most of it requires some previous understanding of matricies, particular libraries, or assumed knowledge.

I’ve combined several online resources and put together a basic ray tracing example for those who want some reference for using the tdu.Matrix, tdu.Position, and tdu.Vector classes.
They’re awesome by the way!

I know there are ways to do some parts of this pipeline with nodes, like the ray SOP etc, but I wanted to establish a clean code function that would work in python/TD anyways.

Hope this helps some!


pixel_Space_to_world_to_plane_intersect_matrix_Math.32.toe (12.2 KB)

1 Like

Nice job Lucasm !

Just opened this thing up and poked around a bit. SUPER helpful!
Thanks for posting.

1 Like