Thanks for your quick reponse Carsten, it helped me to make it work.

Regards,
Arturo

> De: Carsten Neumann <[EMAIL PROTECTED]>
> Asunto: Re: [Opensg-users] HUD in OpenSG+VRJuggler
> Para: [EMAIL PROTECTED], [email protected]
> Fecha: lunes, 6 octubre, 2008 11:05
> Hello Arturo,
> 
> Arturo Garcia wrote:
> > Hi,
> > 
> > I am trying to do a kind of HUD (you know, some object
> attached to the camera movements). My problem is that I am
> using OpenSG (1.8.0) + VRJuggler (2.2.1), and I have a lot
> of limitations: everything is as passive as possible.
> > 
> > For example, I can't use the camera beacon,
> because OpensgApp uses a MatrixCamera which ignores it.
> > 
> > I tried to add a second viewport, but honestly, I
> don't know how to do it because all the examples I can
> find are related to OpenSG apps, not OpenSG+VRJuggler apps.
> > 
> > So the question is, does anybody know how to implement
> a HUD in OpenSG+VRjuggler?.
> 
> let your application class store a second PassiveViewport,
> an 
> OrthonormalCamera, a Background (DepthClearBackground ?), a
> RenderAction 
> instance and the root of the scene graph representing your
> HUD contents.
> In the draw() callback first call the base class
> OpenSGApp::draw() to 
> render your regular scene content afterwards use the second
> RenderAction 
> to draw your HUD, using the ortho camera. You might have to
> keep the 
> PassiveViewport, Camera, Background and Action in a struct
> that you use 
> to instantiate vrj::GlContextData<> with (I suggest
> taking a look at 
> OpenSGApp.h for reference).
> 
>       Hope it helps,
>               Carsten


      

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to