Hi Robert,
Sorry for the bad example and for my terrible english. What I'm tring to
explain is:
- In first Camera I'm setting ortho2D as 1600x1200: text and other quad is
rendered correct.
- When I attach another camera with viewport (0,0,100,100) I would expect
that these values live in 1600x1200 coordinate system not in 1280x800
(Default Viewport value before ortho2D)
Other things in example were only tests.
Cheers
Carlo

2006/12/15, Robert Osfield <[EMAIL PROTECTED]>:

HI Carlo,

I'm a bit lost as to what the problem you after, you discussion about
resolution below is confusing too, you can't render to higher
resolution that your monitor unless you create a pbuffer or fbo, which
is not what you want in this context.

For HUD text I also use otho2d, in the example you attached you use
frustum which is a totally different projection.

Have you reviewed the osghud example?

Robert.

On 12/15/06, Carlo Camporesi <[EMAIL PROTECTED]> wrote:
> Hi Robert and osgUsers,
> I have modified my code in order to use 2 Camera Node but the problem is
the
> same. I have used an osg::Camera in order to render some text in screen
with
> ortho2D projection with resolution 1600x1200. When I attach, as a child,
a
> new camera node (with viewport sets as a rectangle of 100x100) dimension
is
> refering to Default projection (Monitor resolution, in my case 1280x800)
not
> in resolution that I have specified in parent Camera Node.
> In attach there is an example of what I mean
> Thank you very much
> Carlo
>
> 2006/12/14, Carlo Camporesi <[EMAIL PROTECTED]>:
> > Hi Robert,
> > Thank you for your suggestion.
> > Carlo
> >
> >
> > 2006/12/14, Robert Osfield <[EMAIL PROTECTED]>:
> >
> > > Hi Alberto,
> > >
> > > On 12/14/06, Alberto Luaces < [EMAIL PROTECTED]> wrote:
> > > > Is osg::Camera only available on CVS? Here on OSG 1.2 I can only
find
> > > > Producer::Camera and osg::CameraNode
> > >
> > > In CVS osg::CameraNode has been simply renamed osg::Camera, there
now
> > > a typedef from Camera to CameraNode so old code work without any
> > > changes.
> > >
> > > Robert.
> > > _______________________________________________
> > > osg-users mailing list
> > > [email protected]
> > > http://openscenegraph.net/mailman/listinfo/osg-users
> > > http://www.openscenegraph.org/
> > >
> >
> >
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to