Donald Tidrow wrote on Tuesday, June 13, 2006 12:03 PM:
> 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

ogldump would be great, except I'm on WinXP (and it doesn't seem to
compile OOTB under Cygwin). Fortunately, you reminded me of GLTrace
(www.hawksoft.com/gltrace), which I was able to get working! I'll comb
through its output and see what I can figure out.

Thanks!

> 
> 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.
>> 
> 
> 
> +----------------------------------------+
>>  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/



-- 
Bryan Thrall
FlightSafety International
[EMAIL PROTECTED]

.

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

Reply via email to