you can control the part of the image you want to display thru the uv
coordinates in your geometry

-Nick


On Fri, Jul 30, 2010 at 6:33 PM, Ku Krapox <kukra...@gmail.com> wrote:

> Hi Robert,
>
> Thanks for your reply. :)
> Your solution looks great, I think it'll do the trick!
>
> I have another question : Is there a way to create an osg::Texture2D
> containing only one part of an image, instead of loading the whole image?
> Typically I want to create textures with only one half of an image.
>
> Is this doable? Or is there an easier way to display only one half of an
> image on my geometry, by configuring the StateSet maybe?...
>
> Thanks!
>
> Cheers,
> Ku
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=30431#30431
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to