Hi,
I'm trying to create a simple raytrace type behavior which consist of
a cylinder that hit a simple wall and another cylinder that create at
hit point and point in opposite direction.
I already know how to compute direction of reflected ray(cylinder) by
this formula:

c1 = -dot_product( N, V ) (the vector math node does dot products)
Rl = V + (2 * N * c1 )

N= Surface/Geometric normal (you can get this via sampler info)
V = direction of the incoming laser(cylinder)

and hit point position by intersect method.

but i don't know how to apply the direction (Rl) to reflect cylinder
to rotate and point it to right direction. Any idea?

Thanx :)

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to