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
Hello,
I want to display a HUD without text but with perspective.
I used the code exemple osghud.cpp. Instead of creating
a geode with text I create a geode with a shape like sphere or
box. It woks fine. But I want to display it with a perspective.
When I create the osg::Camera instead of using
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
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
Hi Robert,
Many Thanks for your answer but can you give me a small code exemple?
Best Regards
Arnaud
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
Many Thanks for the funny answer :)
I knwo that I must use setViewMatrix(), but I already
tried to use it with a perpective matrix with no good result.
But perhaps my parameter are wrong. But if you said that
I can use the osghud.cpp exemple and apply a view matrix
on the camera is going to be
Hi Robert,
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 if I make rotation the HUD follow the
trackball rotation).
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
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
Many thanks for your answer Per Rosengren,
I tried it and it works fine. Sorry, but I forgot to use
the Look at function.
Many thanks
Best Regards
Arnaud
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
10 matches
Mail list logo