• Advertisement
Sign in to follow this  

Texture and collada

This topic is 3479 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement