You might want to consider using something like ogldump
(http://www.andesengineering.com/OglDump/ogldump.html) to see what is
actually making its way to the graphics card.
Another thing - any chance that there is some sort of weird
texture-matrix/texgen/texparameter getting applied somewhere? Ogldump
could help with that, too.
Don
Thrall, Bryan wrote:
Robert Osfield wrote on Tuesday, June 13, 2006 10:36 AM:
On 6/13/06, Thrall, Bryan <[EMAIL PROTECTED]> wrote:
I can also say that it looks like the right texture is bound when the
polygons are drawn (I notice that OSG seems to have a default texture
object which is bound when no other one is, but all my Drawables are
drawn after when my texture is bound and before any other texture
binding). This doesn't seem likely to be a problem with that, but I
thought I'd check ;)
Could it be a texture coordinate problem? i..e not all your
geometries have texture coordinates assigned?
Or could it be that you have multiple windows/graphics defined? See
the FAQ.
Robert.
I really think it is a texture coordinate problem, but I've traced
through the rendering of one of the polygons that isn't textured
properly, and it has the correct texture coordinates, and I can see they
are passed to OpenGL with the right values (i.e. when glDrawElements()
is called, the Geometry::_texCoordArray[0] array -- a Vec2Array --
contains the right u,v coordinate values).
For my tests, I'm using osgviewer with my own database loader to create
the scenegraph. So, now multiple windows/graphics (unless osgviewer does
that?). I've modified osgviewer so I can set my own near/far planes (as
described in the FAQ), and added an event handler for picking polygons,
but I don't think either of those things would affect texture handling.
Is there any other information I could give you that might help?
Unfortunately, I can't give you a test case very easily because the
database and textures are in a proprietary format.
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
- Benjamin Franklin
+----------------------------------------+
| Don Tidrow |
| Visualization Software Engineer |
| SAIC |
| ph: 703-253-1094 |
+----------------------------------------+
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/