Hello Daniel,

Daniel Wickeroth wrote:
> Hi,
> 
> I would like to display some text, which sould always be readable.
> Therefor I looked at OSGBillboards, but unfortuantely they seem to
> only rotate around an axis. So if I set the axis to be the y-axis, and
> look at the text from above, I couldn't read it.
> 
> Is there a way to let a Billboard rotate around a point, instead of an
> axis? Or maybe I could set the rotation axis according to the spatial
> relation between the text object and the camera?

have you tried setting "AxisOfRotation" to Vec3f::Null ? The code in 
OSGBillboard.cpp looks like it handles that case and aligns it the way 
you want. You can also use the test program testBillboardRender (in 
Source/System/NodeCores/Groups/Misc) to play around with the different 
settings by using the keys y,x,c,v,b,n.

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to