Hello All:
Looks like I have it fixed now. Needed to add uriToNative conversion
on the path and file concatination. The textures are now loading.
Take care
Garrett
On Apr 29, 2008, at 1:19 PM, Garrett Potts wrote:
Hello All:
I sent to the old list by mistake. Like to add to this. It looks
like it is tacking on the path from the <applicaiton startup
directory>/../images/ .......... instead of going relative from the
dae file directory being loaded.
Take care all
Garrett
On Apr 29, 2008, at 1:06 PM, Garrett Potts wrote:
Hello All:
Congratulations on the new release everyone!
I am in the process of compiling the Collada under MAC and I
noticed that the Collada library svn is at 2.0 and was the only
source I can find. I compiled it to a universal and went to
compile the osgPlugin DAE module. I have fixed the module to
compile against the new 2.0 with minimal changes. However, I am at
one small problem that I am not sure where to look to find it. It
looks like in osg dae plugin in file daeRMaterials method:
osg::StateAttribute
*daeReader
::processTexture
( domCommon_color_or_texture_type_complexType::domTexture *tex )
I am using osgviewer for a quick test and on my system the build
location is here:
/Users/Shared/Development/OpenSceneGraph-2.4.0/Xcode/OpenSceneGraph/
build/
so when a texture is being loaded it converts the relative name to:
/Users/Shared/Development/OpenSceneGraph-2.4.0/Xcode/OpenSceneGraph/
build/images/igl_det_tex_gate_d_lo_v01_24.jpg
and the dae model has the google type directory structure where the
images are actually ../images/ relative to the dae file. To make a
long sotry short I am trying to find where/ how to modify the
texture lookup path. It is happening somewhere in the method above
for on entry it has the file ./igl_det_tex_gate_d_lo_v01_24 as the
texture item name and then from there on it tacks on the improper
prefix.
This use to work in the 1.4 DOM. I think there is just a minor mod
but can't find it.
Thank you in advance for any help on this.
Take care
Garrett
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org