Game Development Community

Torque 3D Beta 1 Bug: ColladaLoader don't find textures with relative/absolute paths

by Luis Anton Rebollo · in Torque 3D Professional · 05/16/2009 (2:28 am) · 1 replies

ColladaLoader don't find textures with relative/absolute paths, only work if textures are in DAE directory.

Sorry for my bad english :(

#1
07/03/2009 (5:13 pm)
This should be fixed in beta 4. The Collada loader takes the following approach:

1. If the Collada model specifies an absolute path to the texture (eg. "C:/myImages/texture.jpg), this path is ignored and the texture must be in the model directory. This is done because using the absolute path would break if you copied your game folder to a different directory.

2. If the Collada model specifies a relative path to the texture (eg. "../images/texture.jpg"), then the generated Material will use this path. This is useful for Sketchup models that have the DAE file and the textures in different folders.