Sébastien Grignard a écrit :
Hi all.
I tried OSG 1.2 with the collada/dae ReaderWriter, but when I convert
a textured model (like cow.osg or skydome.osg) the geometry is
correctly converted but the texture is not applied.
Looking at the output dae file I don't see any reference to a texture
(except texture coordinates).
Is it that the dae plugin doesn't support textured models writing or
am I missing something ?
Thanks.
I investigated a bit and found that the dae writer doesn't take into
account the statesets set directly on the geometries.
This was the problem for cow.osg for example. I fixed this by also
processing the geometries' statesets. This only a quick'n dirty patch
though and I'll have to look into the collada materials definition to
find a better solution.
I also noticed that the collada writer doesn't support TexGen attributes
(in cow.dae, texcoords are present but all at 0).
I guess this can be fixed by manually computing the texcoords according
to the Texgen, but isn't there a similar way as OpenGL's texgen to
define textures coordinates in collada ?
Also the collada writer doesn't seem to support BIND_PER_PRIMITIVE
normals. I tried to look into the daeWGeometry.cpp code but without
success for now. Can somebody point me in the right direction ? I'll
then be happy to make the changes and share them.
Thanks.
--
Sebastien Grignard
R&D Developer
Archivideo
40, rue des Veyettes - 35000 Rennes FRANCE
Phone: +033 2 99 86 30 20
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/