Feral Heart
Help & Guidance => Game Help => Topic started by: littlepinksprite on April 23, 2012, 07:48:10 pm
-
If I UV map an object in blender with a png file, and I export everything to get a .mesh and a .blend, do I still also need to put the .png file somewhere in particular in order to work correctly? Although the program will register the material, it will not register the .mat file, the picture will not show up even if it is under feralheart/media/textures
-
Have you tried putting in the .png file? Or does that not work either to register the .mat file? If you haven't tried doing so you should. I'm not very well at the blending stuff but I always try to help :3
-
You will still need the texture, the material and the mesh.
Blender does create a BASIC material. There is no proper code inside in it or the name of your texture. You will have to write the code manually for the mesh.
-
Do you know what sort of code I would add to the .mat file?
-
You can copy and paste a code from another .mat into yours. I do it sometimes though the material doesnt always show automatically sometimes, well most of the time.
-
Copying the code over using my .png's file name did NOT work. The other solutions suggested I didn't understand, or they did not apply to my situation. Does it make a difference that I UV-mapped it not just randomly wanted to add a picture over the whole model after I converted it?
-
I also tried placing the image in the materials and the textures and the models folder and it still doesn't work.
-
This is an example code I found... would I take out the coordinate because it is already uv-mapped, or would I have to figure out what number to write in there? Also, is it really important where in the code this goes?
texture_unit
{
texture fbodyMask1.png
tex_coord_set 0
}
texture_unit
-
It works now... I took out the " texture_unit" at the end and the "tex_coord_set 0" line, and it knew automatically where to put the texture. What I did wrong that I did not realize is that I did not write "texture" before I wrote my file name. Thanks to everyone who helped me out on this!