Hi Dorian,

[EMAIL PROTECTED] wrote:
In fact I'm doing a 3D converter from a format that my society has
developped to osg's format.
In this format there is a bouding box which is apply to all the scene so in
my OSG version I want to
apply a bounding box to the group ( which is the root of my scene ). I do
that because I have a problem
at the level of textures coordinates and I thought the pb was be due to the
absence of bounding box in my program.
Is there a link between texture coordinate and bounding box ?

Do you want to *display* a box around the object?

This is not what a bounding box does, it is solely used for visibility testing during the cull phase. For that reason a bounding box has no connection to texture coordinates.

If you want to display a box then please take a look at osg::ShapeDrawable. A ShapeDrawable is a geometry that can be passed a number of simple geometry primitives such as a box, a sphere, etc. Those objects do support texturing.

Cheers,
/Ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to