Camera Billboard - Rotate only around Y Axis
Camera Billboard - Rotate only around Y Axis
Hi guys,
I have a pointcloud with tree billboards instanced in ICE.
Now i want that the tree billboards always face the camera BUT the billboards should ONLY rotate around the Y axis.
At the moment they also follow the camera when i move over or under the ground surface height.
How can i "lock" X and Z axis?
I tryd to modify without sucess: Billboard Orientation, Align Particle to Position, Align Particle to camera.
Thanks!
I have a pointcloud with tree billboards instanced in ICE.
Now i want that the tree billboards always face the camera BUT the billboards should ONLY rotate around the Y axis.
At the moment they also follow the camera when i move over or under the ground surface height.
How can i "lock" X and Z axis?
I tryd to modify without sucess: Billboard Orientation, Align Particle to Position, Align Particle to camera.
Thanks!
Re: Camera Billboard - Rotate only around Y Axis
Hi there
You can copy the Rotate Toward Target compound from the "Turret constraint" compound and use it to modify the particle orientation.
You can copy the Rotate Toward Target compound from the "Turret constraint" compound and use it to modify the particle orientation.
softimage resources section updated Jan 5th 2024
Re: Camera Billboard - Rotate only around Y Axis
Okay, i tryd that but "Rotate Toward Target" seems to be a "per object" compound.
I try to modify it from "Pose" to "Rotation" since this is "per point".
I try to modify it from "Pose" to "Rotation" since this is "per point".
Re: Camera Billboard - Rotate only around Y Axis
Yes exactly, this should work (Particle Orientation->SRT to Matrix->Pose). This should make the compound work in per point mode.
softimage resources section updated Jan 5th 2024
Re: Camera Billboard - Rotate only around Y Axis
had a try, was some fiddling around to find out what axis to rotate around, and what is the axis that "aims"
Couldn't get the Pose Out to work, the connection always stayed black. No idea why, I just got the orientation directly out of the compound.
Couldn't get the Pose Out to work, the connection always stayed black. No idea why, I just got the orientation directly out of the compound.
- Attachments
-
- Billboard.zip
- (242.03 KiB) Downloaded 142 times
softimage resources section updated Jan 5th 2024
Re: Camera Billboard - Rotate only around Y Axis
Wow, nice! Thanks!
I had to rotate my trees(Y is up) around X by -90 degrees because they where flat on the ground.
Im sure there is an easyier, more clean way to do that, but for now it works just fine.
Vielen Dank!
I had to rotate my trees(Y is up) around X by -90 degrees because they where flat on the ground.
Im sure there is an easyier, more clean way to do that, but for now it works just fine.
Vielen Dank!
- Attachments
-
- Tree Billboard.xsicompound
- (53.23 KiB) Downloaded 118 times
Re: Camera Billboard - Rotate only around Y Axis
You should be able to simplify the RotToEuler to EulerToRotation. I don't have XSI open, but I think you can multiply your RotateTowardTarget rotation (input1) with a EulerToRotation (set to -90 X) (input2). One of the few times that the order you multiply matters! RotA*RotB doesn't equal RotB*RotA. You always want parent * child.
Re: Camera Billboard - Rotate only around Y Axis
Thats actually what i did, or how do you mean that ?
Could you show it ?
Could you show it ?
Re: Camera Billboard - Rotate only around Y Axis
Should be same result, just a little cleaner code...
Re: Camera Billboard - Rotate only around Y Axis
My apiologies, it's Child * Parent. Order matters. Sorry bout that!
Who is online
Users browsing this forum: No registered users and 47 guests