Hello!
I've try to convert models from osg project
https://github.com/goost/BrainTrain to vsgt/vsgb, but there are some troubles.
About my system:
I have Gentoo x86_64. There is dev-games/openscenegraph-3.6.5-r112 installed with flag collada set to on (dev-libs/collada-dom-2.5.0-r1 is builded to satisfy dependence).
I've git pulled all vsg* projects and recompile it.
So. I try to convert ive file (
https://github.com/goost/BrainTrain/blob/master/BlenderFiles/exports/Train.ive) to vsgt/vsgb.
First of all, I've try to load ive model directly to vsgviewer. It says:
---
Unable to load file vvb/Train.ive
---
It's not that I want, but I've tried it anyway.
So, now to conversion. My goal is to have editable format (dae/obj with textures in separate files), which i can easily edit, then convert to vsgt/vsgb and load to vsg.
1. ive->dae
Ok, I've used osgconv and try to convert to dae.
----
osgconv -O OutputTextureFiles Train.ive Train.dae
COLLADA dae plugin: unrecognized option "OutputTextureFiles
Can't create directory for file 'Image_1.tga'. May fail creating the image file.
Can't create directory for file 'Image_2.tga'. May fail creating the image file.
Can't create directory for file 'Image_3.tga'. May fail creating the image file.
Can't create directory for file 'Image_4.tga'. May fail creating the image file.
Can't create directory for file 'Image_5.tga'. May fail creating the image file.
Can't create directory for file 'Image_6.tga'. May fail creating the image file.
Can't create directory for file 'Image_7.tga'. May fail creating the image file.
Data written to 'Train.dae'.
----
osgconv saves all Images_*.tga, but there is NO Train.dae. Even if it says there is data written to it.
Running "osgconv Train.ive Train.dae" gives same result. No dae, all tga files are here.
2. ive->obj
So, I'm trying to convert ive to obj.
---
osgconv -O OutputTextureFiles Train.ive Train.obj
Data written to 'Train.obj'.
---
Now I have two files:
Train.obj and Train.mtl
But there is no textures and no links to textures in mtl file.
3. ive->vsgt/vsgb
I've try to convert directly ive to vsg native format, but it fails.
---
vsgconv Train.ive Train.vsgt
Failed to load Train.ive
No files loaded.
---
4. obj->vsgt/vsgb
---
vsgconv Train.obj Train.vsgt
---
It creates Train.vsgt file. Train.vsgt shows well in vsgviewer. But only as a mesh. Because of missing textures in Train.obj, there are no textures in Train.vsgt.
5. ive->osg
I've try to convert ive to osg:
---
osgconv -O OutputTextureFiles Train.ive Train.osg
---
It creates Train.osg file and textures (Train_*.dds).
6. osg->vsgt
---
vsgconv Train.osg Train.vsgt
Failed to load Train.osg
No files loaded.
---
So, I'm lost at this point.
v.v.b.