I need to do a test on verts of an editable poly to see if a light is reaching or is being shadowed by other geometry. I was thinking of creating a vector between the vert and the light and iterating thru all the visible objects in the scene to test in both directions, whether an intersectray hits the interated object. I’ve not used intersect ray before but for some reason I think it only works in one direction based on the normals of the object that I’m trying to send the ray to,(That might have been from bobo’s advanced maxscript DVD or I might have got the wrong end of something. As it’s a vague memory) Can anyone shed any light on this or even tell me that I’m thiking about it all wrong? Or is there a better way to test if a vert is being lit or shadowed by specific lights?
Also, while I’m here, does anyone know a good way to update an editable poly after vertex color changes? It doesn’t want to seem to update… I’m currently using converttopoly as a hack as update doesn’t seem to want to work.