Billboard Effect

Hi everybody!

looking at the BillboardEffect class:

BillboardEffect::make(LVector3f const &up_vector, bool eye_relative, bool axial_rotate, float offset, NodePath const &look_at, LPoint3f const &look_at_point);

Can somebody provide a description of the various parameters?

Also, is it possible to this effect to keep an object’s y-axis (forward) strictly pointing toward another object while it z-axis (up) loosely rotates to face the camera as much as possible?

Thanks for your help!

Manu

Never mind! Of course as soon as I hit the Submit button I tried something and it worked. Here is the solution:

rotateWithCamera= render.attachNewNode(‘rotateWithCamera’)
rotateWithCamera.setP(-90)
rotateWithCamera.setBillboardPointEye()
watchingObject.reparentTo(rotateWithCamera)
watchingObject.setP(180)
watchingObject.setBillboardPointWorld(watchedObject, 0)

It’d still be good to get a good description for those parameters though. =)

Manu