I have a question to run by the savvy. My goal is to construct geometry, in Catia, that can simulate vectors of light. I would like to measure the number of vectors that terminate on select surfaces. I am curious if one could use the logic of ray trace to write an algorithm that bounces vectors off all objects in a given scene. I would assume applications such as Ecotect but boo hoo. I have found Ray trace codes for Java but not visual basic. I imagine one could translate but given that I am relatively illiterate in both it is going slow.
I think the logic would go something like this:
1-throw matrix (M) of parallel vectors normal to plane (p)
2-if vector goes to infinity then it is dead
3-if vector hits geometry in 'light receivers geometric set' score one for the blue team
4-if vector hits geometry in 'I want to be Shadow geometric set' score one for the red team
5-if vector hits geometry in 'all other volumes' send them to step 1 with V=point of collision and W=reflection about normal of collided surface.
repeat 5 times
output scores of blue team and red team
I can build a reflective chain reaction in Catia by hand but I have no way at this point to tell a ray to bounce off the first volume it hits. This seems to be the challenge. My question is if this is possible and computationally feasible and if it is, are there any references that might help.
Thanks,
Mat