Page 1 of 1

[problem] White models.

Posted: Fri Dec 14, 2012 6:54 pm
by Rook
Does anybody know what is causing this to happen?

They are altered models from Phitt's Mine wall set.

I have attached my own textures to them, but they just seem to be glowing white.

Image
http://i.imgur.com/IaYR3.jpg

Re: [problem] White models.

Posted: Fri Dec 14, 2012 7:13 pm
by JohnWordsworth
This is possibly an issue with the format of the texture file. Did you ensure that you had the following settings selected for your .dds file when you exported it (assuming GIMP, but other exporters have similar options).

Compression: BC1 / DXT1
Generate MipMaps: Ticked

Alternatively, you also have to ensure that your new material file references the file correctly. While the texture should be a .DDS file, your material definition has to point to a .TGA file. It's also worth checking that the diffuseMap path is correct - it's easy to forget to add mod_assets/ at the start of that path.

Also, if this is a new model after retexturing - make sure that your material name in the GMT and the material name in your Lua file match up. They have to be exactly the same.

Re: [problem] White models.

Posted: Fri Dec 14, 2012 7:17 pm
by Rook
I have checked over everything and it is all done correctly. The textures work when applied to other wall-sets, but when using my own models, they don't work.

Re: [problem] White models.

Posted: Fri Dec 14, 2012 8:21 pm
by Phitt
Double check that

1. The material name on the model is correct and is the same as the material name in the materials.lua (capitalization matters! - in case you use my material names, they are capitalized).

2. The path to the texture in the material.lua is correct.

From my own experience in most cases unexplainable errors like this one are caused by overlooking something very simple, like a letter that is not capitalized, forgetting a letter, a slash etc. You look at it and you think everything is correct, you look at it again and everything seems correct and then you notice it...ooops. Other than that there is not really an explanation I could think of if the textures work on other models.

Re: [problem] White models.

Posted: Fri Dec 14, 2012 8:35 pm
by Rook
Phitt wrote: From my own experience in most cases unexplainable errors like this one are caused by overlooking something very simple, like a letter that is not capitalized, forgetting a letter, a slash etc. You look at it and you think everything is correct, you look at it again and everything seems correct and then you notice it...ooops. Other than that there is not really an explanation I could think of if the textures work on other models.
Aha! When defining my materials, "name = " was slightly different to the file name.

Re: [problem] White models.

Posted: Sat Dec 15, 2012 2:12 pm
by Kuningas
Woah, this just gave me an idea for an "Echo Base" tileset... Or "Ice Cave" if you don't speak Starwarsese. : D

If I just had the time. Alas, I am kind of stuck for a week from now.

Re: [problem] White models.

Posted: Sat Dec 15, 2012 3:38 pm
by Asteroth
Nice idea kuningas but it made me think it looks like something out of Quantum Conundrum. It really does look good even though I know it's a mess up. Hope you get the textures on. (sorry I can't help.)

Re: [problem] White models.

Posted: Sat Dec 15, 2012 4:09 pm
by Rook
Yeah, I got the textures sorted.

@Kuningas
I'm glad to see somebody got something useful out of this thread! haha
I look forward to seeing your Echo Base tileset. To Hoth!

Re: [problem] White models.

Posted: Sun Dec 16, 2012 4:17 am
by Kuningas
Rook wrote:Yeah, I got the textures sorted.

@Kuningas
I'm glad to see somebody got something useful out of this thread! haha
I look forward to seeing your Echo Base tileset. To Hoth!
Now you know I'm gonna have to do it. : D