I've been trying for so many times, none of the textures worked for any of the models that were provided to me.
I then open the collada ".dae" file, which is basically an XML file. I compared it to a working file from the internet, made some amendments but still no luck. Until I found the following link on the internet:click me
I searched "init_from" inside the .dae file, and finally found out the reasons for the textures not showing up on my imported models. The sources from the collada file that I was given are:
../sourceimages/black.png
../sourceimages/green.png
../sourceimages/red.png
../sourceimages/yellow.png
../sourceimages/textures.png
But the actual texture I received is only textures.png, and it is located in the same folder of the model. So I change the path to:
./textures.png
AND the most important thing, I changed the texture into a 4x4 blue pixels png instead of 614x460. Then the texture showed up at last for me. :( so long...
At least it works now. The problem is only one color in there, at least we know what the problem is for the artist to keep an eye on. phew...
Next step, lighting!
No comments:
Post a Comment