Hi Alesandro,

The only way to create an image as a backgrounds are osg::DrawPixles (
a subclass from osg::Drawable that wraps up glDrawPixels) or a texture
quad inside a osg::Geoemtry.  The later is faster due to the ability
to download the image data to a texture and keep this resident on the
graphics card.  There isn't anything "lower" level that texture
polygons in OpenGL, it's what it and the graphics hardware is designed
for.

To create the background simply follow the osghud except you'll want
to draw the the quad first as a pre render stage.

Robert.


On 8/29/07, alessandro terenzi <[EMAIL PROTECTED]> wrote:
> Hi all,
> as far as I can see, it is possible to set the background color of viewers,
> but I wonder if it is possible to use a video stream or a still image as
> background. In particular, I mean that I'd like to do this without creating
> any rectangle with a texture applied, but something of a lower level,
> something that could result in better performances (especially in the case
> of a video as background).
>
> Thanks. Best regards.
> Alessandro
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to