Re: [osg-users] fbx writer texture support

2010-05-11 Thread Michael Platings
Hi Martins,
the writer is still a work in progress so I suspect that feature hasn't yet
been implemented. Talk to Sukender (http://sukender.free.fr/) to find out if
it's on his to-do list, if not then your help will be appreciated ;)

On 10 May 2010 18:29, Martins Innus min...@ccr.buffalo.edu wrote:

 Hello,
Has anybody had luck converting textured models to fbx format using the
 writer in OSG?

I narrowed it down to simple case of:

 osgconv skydome.osg skydome.fbx

 The resulting file when viewed in osgviewer is just a solid color.
  Converting that file back to .osg results in no reference to the texture in
 the osg file.

 This is on svn of today, with the 20112 SDK on Mac OS X.  Converting to
 other formats: obj, ive, etc works fine.  I tried turning the optimizer off
 as well as setting  OSG_NOTIFY_LEVEL to DEBUG.  The image gets read fine on
 load, but there's no information on whats going on at the write stage.

 Thanks

 Martins
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] fbx writer texture support

2010-05-11 Thread Martins Innus

Michael,

   OK, I'll take a look.  I saw code in there for writing the texture 
information out.  I'll see if I can figure out where the missing 
connection is.


Thanks

Martins

On 5/11/10 5:26 AM, Michael Platings wrote:

Hi Martins,
the writer is still a work in progress so I suspect that feature 
hasn't yet been implemented. Talk to Sukender 
(http://sukender.free.fr/) to find out if it's on his to-do list, if 
not then your help will be appreciated ;)


On 10 May 2010 18:29, Martins Innus min...@ccr.buffalo.edu 
mailto:min...@ccr.buffalo.edu wrote:


Hello,
   Has anybody had luck converting textured models to fbx format
using the writer in OSG?

   I narrowed it down to simple case of:

osgconv skydome.osg skydome.fbx

The resulting file when viewed in osgviewer is just a solid color.
 Converting that file back to .osg results in no reference to the
texture in the osg file.

This is on svn of today, with the 20112 SDK on Mac OS X.
 Converting to other formats: obj, ive, etc works fine.  I tried
turning the optimizer off as well as setting  OSG_NOTIFY_LEVEL to
DEBUG.  The image gets read fine on load, but there's no
information on whats going on at the write stage.

Thanks

Martins

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] fbx writer texture support

2010-05-11 Thread Martins Innus
I found the cause of missing textures.  If you have a Stateset with 
textures applied to a Geometry node, it generates an fbx file with 
textures.  If the Stateset instead is applied to the Geode parent of the 
Geometry, you get no texture.  Unless Sukender has some suggestions on 
how to tackle this, I'll try to figure out whats going on in 
WriterNodeVisitor::apply(osg::Geode node).  It appears that the 
triangles are being generated before the stateset of the Geode is queried.


Martins

On 5/11/10 8:39 AM, Martins Innus wrote:

Michael,

   OK, I'll take a look.  I saw code in there for writing the texture 
information out.  I'll see if I can figure out where the missing 
connection is.


Thanks

Martins

On 5/11/10 5:26 AM, Michael Platings wrote:

Hi Martins,
the writer is still a work in progress so I suspect that feature 
hasn't yet been implemented. Talk to Sukender 
(http://sukender.free.fr/) to find out if it's on his to-do list, if 
not then your help will be appreciated ;)


On 10 May 2010 18:29, Martins Innus min...@ccr.buffalo.edu 
mailto:min...@ccr.buffalo.edu wrote:


Hello,
   Has anybody had luck converting textured models to fbx format
using the writer in OSG?

   I narrowed it down to simple case of:

osgconv skydome.osg skydome.fbx

The resulting file when viewed in osgviewer is just a solid
color.  Converting that file back to .osg results in no reference
to the texture in the osg file.

This is on svn of today, with the 20112 SDK on Mac OS X.
 Converting to other formats: obj, ive, etc works fine.  I tried
turning the optimizer off as well as setting  OSG_NOTIFY_LEVEL to
DEBUG.  The image gets read fine on load, but there's no
information on whats going on at the write stage.

Thanks

Martins

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] fbx writer texture support

2010-05-10 Thread Martins Innus

Hello,
Has anybody had luck converting textured models to fbx format using 
the writer in OSG?


I narrowed it down to simple case of:

osgconv skydome.osg skydome.fbx

The resulting file when viewed in osgviewer is just a solid color.  
Converting that file back to .osg results in no reference to the texture 
in the osg file.


This is on svn of today, with the 20112 SDK on Mac OS X.  Converting to 
other formats: obj, ive, etc works fine.  I tried turning the optimizer 
off as well as setting  OSG_NOTIFY_LEVEL to DEBUG.  The image gets read 
fine on load, but there's no information on whats going on at the write 
stage.


Thanks

Martins
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org