Hi Andreas,

Here you use a Member-function "getWidth", which I don“t know what it is:

int vpwidth = vp->width()*vp->width(); // /* getWidth()*/;
int vpheight = vp->height()*vp->height();// /** getHeight()*/;

So I replaced it with the viewport-width again, but this is just a guess.

please note that Viewport is not osg::Viewport, it is my own viewer's Viewport class, whose width and height are *relative* values (0.0 to 1.0) that represent a scale factor against the viewer's window size.

I think that:

int vpwidth = vp->width();
int vpheight = vp->height();

should do the trick in your case.

Cheers,
Marco

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

Reply via email to