sprite-like behaviour

   3086   2   1
User Avatar
Member
29 posts
Joined: Sept. 2007
Offline
Hi!
Am trying to link, or reference, the rotation of the (current) camera to have certain objects face it. I was trying to put
fit01(“/obj/cam3_null/ry” , 0, 360)
in the Ry field of an xForm attached to my primitive groups while having $CEX, $CEY and $CEZ in the Px, Py and Pz fields, yet it doesn't seem to be the right way.
Any ideas most welcome, superthanks!
Gon
User Avatar
Member
691 posts
Joined: June 2006
Offline
you can constrain the rotation of every object to look at the camera with a simple look at configuration down in the transform tab of an arbitrary object.

if you cant orient correctly the objet to face the camera in the axis you want, put a transform node in SOP level an orient the object.
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
29 posts
Joined: Sept. 2007
Offline
Ola Alejandro, muchas gracias para la reply
but I'd need to apply the lookat only to a specific set of primitive groups (called bits* for example) that are inside obj/geo1/foreach1/ and my camera is simply at obj/cam1/
So the goal is not to rotate the whole object, but only primitives in groups bits* (bits01, bits02, etc).
I already manage to pull a transform (xform) node within the obj/geo1/foreach1/ which tells each group to rotate around its own local pivot ($CEX, $CEY, $CEZ).

Yet what I miss is the method to refer to the position of the camera so each group will face it. So it's indeed a mini version of lookat somehow embedded inside /foreach1.

Gracias por todo,
Gon
  • Quick Links