Re: [osg-users] HUD with perspective

2008-02-20 Thread Guy
Yes, that can be cool Star Wars-like text effect!! The force is strong with this one... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of arnaud houegbelo Sent: Tuesday, February 19, 2008 3:59 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users]

Re: [osg-users] HUD with perspective

2008-02-19 Thread Robert Osfield
Hi Arnuad, You'll need to specify a view matrix for the camera to position the view frustum over the part of the HUD scene you want. Robert. On Feb 19, 2008 1:18 PM, arnaud houegbelo [EMAIL PROTECTED] wrote: Hello, I want to display a HUD without text but with perspective. I used the code

Re: [osg-users] HUD with perspective

2008-02-19 Thread Robert Osfield
On Feb 19, 2008 1:31 PM, arnaud houegbelo [EMAIL PROTECTED] wrote: Hi Robert, Many Thanks for your answer but can you give me a small code exemple? How long is a piece of string? What is the sound of one hand clapping? Both questions one can't really answer... and code example that does

Re: [osg-users] HUD with perspective

2008-02-19 Thread Per Rosengren
You have to set both the view matrix and the projection matrix of the camera. The view matrix is the pose of the scene coordinate system in the camera coordinate system. Use voidsetViewMatrixAsLookAt (const osg::Vec3 eye, const osg::Vec3 center, const osg::Vec3 up) and provide it with the

Re: [osg-users] HUD with perspective

2008-02-19 Thread Robert Osfield
On Feb 19, 2008 4:19 PM, arnaud houegbelo [EMAIL PROTECTED] wrote: In the code exemple osghud.cpp we have the possibility to avoid to the camera to grab the event of the main camera viewers with camera-setAllowEventFocus(false); I want that my HUD oject use my trackball event for dipslay (eg