Repro step:

Download and unzip this model (in fact any model with non power of 2
textures will do)

http://sketchup.google.com/3dwarehouse/download?mid=59cc35a574aca8e4a516a23b781f0fac&rtyp=zs&fn=Hofgarten_Dianatempel&ctyp=other&prevstart=0&ts=1220656167000

using OSG 3.0.1 (on Windows, in the model's folder). I am running
osgconv followed by osgviewer to illustrate the problem:

osgconv --compressed models/model.dae model.osg
processTexture(./material_0_15_0-image-sampler)
processTexture(./material_1_4_0-image-sampler)
...
Realized pbuffer for OpenGL operations.
Scaling image 'C:\osgtest\images\texture0.png' from (47,53) to (64,64)
Scaling image 'C:\osgtest\images\texture0.jpg' from (323,320) to (256,256)
Scaling image 'C:\osgtest\images\texture1.png' from (50,67) to (64,64)
...
Image written to 'texture0.dds'
Image written to 'texture0.dds'
Image written to 'texture1.dds'
...
Data written to 'model.osg'


osgviewer model.osg
Scaling image 'texture3.dds' from (307,29) to (256,32)     <-- unexpected
Scaling image 'texture4.dds' from (307,29) to (256,32)     <-- unexpected
...
Scaling image 'texture12.dds' from (31,20) to (32,16)     <-- unexpected
Scaling image 'texture13.dds' from (11,10) to (16,16)     <--
expected, as no compression done below 16x16 pixels I think.
...

Either osgconv --compressed is not compressing and scaling all
textures, or it's not always saving them in the scaled size.

And another possible bug: It's writing texture0.dds twice, as it found
a texture0.jpg and texture0.png in the source file.

Christian
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to