XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : Particle Orientation and Vertex Normal

11-11-2005, 10:25 AM
I wrote a script which creates particle to each vertex (pflow), but how could I make their rotation to respect vertex normals?

I thought I could use particleOrientation here but it prolly just changes local coordinates of particles. So I should use paritcleTM but I dont know how to extract that information from vertex. So how could I do something like pCont.particleTM = vertex.transform?

11-12-2005, 09:39 PM
Okey, I got my script working.

Basicly I used script from here http://forums.cgsociety.org/showthread.php?t=263981 to get vertex normal from epoly and then used matrixFromNormal <point3> to turn it into transform matrix which I set to pCont.particleTM and after that set the position right.

CGTalk Moderation
11-12-2005, 09:39 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.