[osg-users] locking 3d text in front of camera
Gordon Tomlinson
gordon at gordon-tomlinson.com
Sat Jul 26 18:09:03 PDT 2008
Look around the osgHud examples and search mail archive for previous post
it may help you get what you want
__________________________________________________________
Gordon Tomlinson
Email : gordon at GordonTomlinson.com
YIM/AIM : gordon3dBrit
MSN IM : gordon3dBrit at 3dscenegraph.com
Website : www.vis-sim.com www.gordontomlinson.com
__________________________________________________________
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Joe Lyga
Sent: Saturday, July 26, 2008 8:06 PM
To: osg-users at lists.openscenegraph.org
Subject: [osg-users] locking 3d text in front of camera
Hi osg-users. I'm kind of new to openscenegraph and 3d programming, and I'm
having a problem. I'm trying to position a 3d text object to be in a fixed
position directly in front of the camera, so it's always in the same
position in the lower left corner of the screen. It would be much easier to
do this as a 2d overlay, but in this case it needs to be 3d. I have the
camera's view matrix to work with, and I can get the eye, look, and up
vectors from that to position the text. I have a feeling that I have to do
some vector math here, but I haven't been able to find anything that helps
yet. Does anyone have any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080726/cab33155/attachment-0003.htm>
More information about the osg-users
mailing list