I made a simple model (a shelf) that I inserted into a game using the tutorials provided. But after inserting it into the world/the model editor/viewing it ingame, the texture was gone - what used to be wood became a plain brown color.
It was a wood texture sized 160 x 1107 Pixels, png format. Blender, which I used to model the shelf, rendered it just fine. So it must have been something I did wrong while exporting or importing the file...
I did not change the .cmat file more than altering the file name.
Both of the files are available here: Dropbox - Public link
(Sorry, but they are too big for uploading them here).
Thank you a lot for your help.
welcome to the Cafu forums!
The problem is not the texture: Cafu can deal with non-power-of-two textures. (However it does so by scaling them to the next available power of two, so doing the scaling yourself can help to keep memory consumption low and the quality high.)
That's a very nice piece of wood, btw.
You only see plain brown, because the u/v-texture coordinates did not make it into the .cmdl file, they're all (0, 0).
Can you please post the Blender source file that you converted the cmdl from, so that I can have a look?
And do I assume right that you used the Model Editor for loading and converting the original file?
Were any intermediate file formats involved?
Users browsing this forum: No registered users and 2 guests