Texture and collada

Started by
2 comments, last by Kwizatz 15 years, 8 months ago
Hy. I have implemented a reader for collada that import Vertex and normals,now i would read texture . The reader now load the tex coord , but how load the image file path? It must be in the same directory that the collada file or can be anywhere in the file system? Thanks.
Advertisement
In FCollada (the only COLLADA API I know) you access the path through the FCDImage class. Which can be accessed through the image library or through the materials (surface parameters).

It's all in the documentation!

JFF
thanks ,but i use ColladaDom.
It is quite complicated, and yes, the file can be anywhere on the system or even on a web server.

I suggest reading the specification document along a sample Collada document to understand how it is done as you must traverse several layers of elements to get there. Start with bind_material.

This topic is closed to new replies.

Advertisement