Saket Jalan wrote:
Hi,

I need to continously display incoming images from a network location. Images are in the form of raw data bits, whose resolution may change. Looking at osg Movie example i used createTexturedQuadGeometry to create a geometry of size of first frame. Then rest of incoming images are used as texture on this quad using osg::TextureRectangle. But since resolution of these images change, images are not displayed fully on the quad. I even tried to scale the image and resize the texture, but they did not work. For example if my quad is of size 1280X1024, and next frame is of 800x600, it's not displayed on the quad filling the whole quad and occupies only small region, where rest of region remains empty

I'd suggest using an osg::TexMat (texture matrix) to scale the texture coordinates on your quad to the appropriate size for each new image.

--"J"

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to