Hi Castern, I did it... I was using PassiveViewport and it wasn't working
properly when changing it size... don't know why... is it the normal
behavior?
Using just OSG::Viewport worked fine!
thanks
2008/4/1, Pablo Carneiro Elias <[EMAIL PROTECTED]>:
>
> Thanks Carsten, I dit it... it works fine but I still have a problem with
> the size of my viewport... I set viewport->setSize with left, right, top,
> bottom values varying from 0 to 1 and any value works! It doesnt make
> difference, the viewport covers the whole window.. Even if I set it very
> small... I'm currently following the opensg tutorial about viewports... It
> says that I can use values from 0 to 1 or from 0 to w / h in each
> direction... none of these strategies works......
>
>
> can you help me?
>
>
> thank you in advance!
>
> []'s Pablo
>
>
> 2008/4/1, Carsten Neumann <[EMAIL PROTECTED]>:
> >
> > Hello Pablo,
> >
> >
> > Pablo Carneiro Elias wrote:
> > > Hi Everyone... I need to draw a sort of compass rose at the lower
> > right
> > > side of my canvas using OpenSG. This compass rose is a 3D object that
> > > must be drawn separately from the scene (as if it was in the origin of
> > a
> > > new scene with a diferente viewport).
> >
> >
> > actually that is pretty close to how I would do this, use a second
> > viewport that has a passive or a depth clear background and an
> > orthographic camera.
> >
> >
> > > I couldn't find the clue of how
> > > OpenSG deals with cameras.. I've saw that cameras can have no child
> > > nodes...
> >
> >
> > Cameras in OpenSG don't really have children, viewports have a root and
> > a camera (plus some other stuff). The placement of the camera inside the
> > scene is controlled by its beacon; the camera is located at the origin
> > of the beacon's coordinate system looking down the negative z axis.
> >
> >
> > > How can one deal with multiple cameras and with multiple
> > > viewports..
> >
> >
> > well, what do you want to do with them ? A window can have multiple
> > viewports, each with its own camera.
> >
> >
> > > and plus, How can an object in the graph be free of the
> > > transforms above it (LIKE being within the camera coordinate system,
> > > something like ABSOLUTE_RF in Openscenegraph -- absolute coordinate
> > > frame.) I need the compass rose 3D object to suffer only the rotation
> > of
> > > the scene.
> >
> >
> > Cameras let you access a number of interesting matrices, please take a
> > look a the documentation
> > (<http://www.opensg.org/doc-1.6.0/classosg_1_1Camera.html>).
> > For the rotation problem you could use a component transform for the
> > scene transformation and manually copy the rotation component or use two
> > transforms, one only contains rotation the other all the rest and the
> > compass is only a child of the top (rotation) transform.
> >
> >
> > > I'm currently using SimpleSceneManager... the camera is set
> > > there and I don't know how does it handles cameras inside... I'm also
> > > using the simple navigator...
> >
> >
> > the SSM is, well, for simple scenes; your setup is getting close to the
> > limits of what it can do, but there is nothing special about it, so you
> > can just create a copy of it, change its name and make the necessary
> > modifications.
> >
> > Hope it helps,
> > Carsten
> >
> >
> > -------------------------------------------------------------------------
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> >
> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> > _______________________________________________
> > Opensg-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/opensg-users
> >
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users