tyFlow Forum
birth alignment method in grow operator - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: Feature Requests (https://forum.tyflow.com/forum-4.html)
+--- Thread: birth alignment method in grow operator (/thread-1344.html)



birth alignment method in grow operator - Geoff - 12-14-2019

I've one last request regarding your SCA implementation Wink

It seems like the align option of the grow operator use an absolut axis (0,0,1) to do the alignment, so that the TM at birth is:
Code:
forward = (0,0,1);
row4 = particlePos;
row3 = (parentParticlePos - row4).normalized;
row2 = Point3.Cross(row3, forward).normalized;
row1 = Point3.Cross(row2, row3).normalized;

if the particles keep growing and have dynamic at the same time it's important for new born particles to maintain the orientation coherence with previous ones.


instead, could we have the parent orientation as reference, so that the TM at birth use this forward axis:
Code:
forward = hasParent ? parentParticleTM.row1 : (0,0,1);

and by the way!  Smile  I loved your video of growing plantmonster battle, hats off!!!


RE: birth alignment method in grow operator - tyFlow - 12-15-2019

Hmm, interesting idea...I'll have to think about that Smile