Importing Axial rotations failing

   519   0   0
User Avatar
Member
236 posts
Joined: Dec. 2016
Offline
Hello i`ve been trying to get angular velocities imported into niagara from houdini,
I`ve followed the tutorials and i have at arrived at a point that i think it should work but it doesnt.




houdini vex code (should be irrelavent since i cant even get anyhting in)
 // Convert angular velocity to quaternion delta (per second)
float angle = length(v@w); // radians/sec
vector norm_axis = normalize(v@w);
vector4 q = quaternion(angle, norm_axis); // builds quaternion from angle+axis

vector4 unrealQuaternion = set(q[0], q[2], q[1], -q[3]);
// note that someone said that 
// set(q[0], q[2], -q[1], q[3]);
//is what actually worked for them

p@rotvelq = unrealQuaternion;

Sometimes i also get HoudiniNiagaraBasic Particle Span Script interpolated. I dont know where it comes from or how to remove it.
there is no toggles on the emiiter spawn and there is no toggles on emitter state i havent toggled.
I imported with the the hjson.

Attachments:
niagara_scratchModule_Inport.png (328.9 KB)
atribute_indexes.png (70.2 KB)

  • Quick Links