[osg-users] I don't know osgShape.exe is wrong or not.

Robert Osfield robert.osfield at gmail.com
Sat Sep 17 05:49:01 PDT 2016


HI,

Everything is correct.

The TriangleMesh doesn't have an means of controlling the texture
coordinate that should be applied in any sensible fashion so all maps
to 0.0.  The other shapes have regular geometric shapes so you can
apply a sensible texture coordinate mapping to them.

All the osg::Shape classes all primary purpose is representing
primitive shapes for tasks like intersection or collection detection.
Being able to render them with the osg::ShapeDrawable is just a
convenience method.

If you want to properly control rendering in a fine grained way they
you use osg::Geometry.

Robert.




On 17 September 2016 at 12:12, Yan Xin Wu <eye5002003 at gmail.com> wrote:
> Hi, everyone
>
> My OSG version is 3.5.5
>
> The sample osgShape show a few object with same texture.
> But there is only one object without texture.(see my image file)
>
> That must be something wrong!
> Or I am the only one?
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68638#68638
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/osgshape_719.png
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list