Hi Mathias.

Unfortunately we have to use the full path.

And we are having troubles when using the writeNodeFile too.

Andre

2010/2/24 Mathias Fröhlich <m.froehl...@science-computing.de>

> On Tuesday 23 February 2010, Andre Simoes wrote:
> > Hello all.
> >
> > I had a behavior with ac3d objects and osgconv that i think can be a
> wrong
> > behavior and i'd like to check with you.
> >
> > I have an ac3d model with textures that are being saved on different
> path.
> >
> > /home/simoes/model/ac3d_model.ac
> > /home/simoes/texture/ac3d_texture.rgb
> >
> > I shall emphasize here that my texture declaration path inside
> > ac3d_model.acis pointing to the right path:
> > texture "/home/simoes/texture/ac3d_texture.rgb"
> >
> > And that ac3d program opens the model together with the texture
> correctly.
> >
> > when i use osgviewer on my ac3d_model.ac the texture is not being loaded
> > together.
> > It just consider ac3d textures that are on my OSG_FILE_PATH or on the
> > current directory that i'm calling osgviewer.
> > It appers to not consider the full path declared within the ac file.
> >
> > Also when working with osgconv the path is not parsed inside the
> converted
> > osg file.
> > it just add file "ac3d_texture.rgb"
> >
> > You can see the problem by using any ac3d model with a texture being held
> > on a different path together with osgviewer/osgconv
>
> Hmm, the file paths are stripped away.
> I do not know the original reason why this was done. But I assume that ac3d
> often has absolute filenames in the files without the need to do so.
>
> But, thinking about the attached change:
> At first try the filename as it is in the file and if that does not work,
> try
> the bare filename without path.
> Does that help four you?
>
> Greetings
>
> Mathias
>
> --
> Dr. Mathias Fröhlich, science + computing ag, Software Solutions
> Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
> Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
> --
> Vorstand/Board of Management:
> Dr. Bernd Finkbeiner, Dr. Roland Niemeier,
> Dr. Arno Steitz, Dr. Ingrid Zech
> Vorsitzender des Aufsichtsrats/
> Chairman of the Supervisory Board:
> Michel Lepert
> Sitz/Registered Office: Tuebingen
> Registergericht/Registration Court: Stuttgart
> Registernummer/Commercial Register No.: HRB 382196
>
>
> _______________________________________________
> 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

Reply via email to