Page 1 of 1
Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 3:08 pm
by ALMighty
[lvlshot]
http://img227.imageshack.us/img227/6316 ... 006ji0.jpg[/lvlshot]
Can anyone tell me what I am doing wrong? There's no texture on the model, when I shine the flashlight on it, there's no reflection, just black. I followed this tutorial by Kat:
http://www.katsbits.com/htm/tutorials/d ... models.htm
Material:
Code: Select all
models/mapobjects/alm/tree1
{
qer_editorimage models/mapobjects/alm/tree1_d.tga
diffusemap models/mapobjects/alm/tree1_d.tga
bumpmap models/mapobjects/alm/tree1_local.tga
specularmap models/mapobjects/alm/tree1_s.tga
}
ASE file has this path as bitmap:
*BITMAP "//q4base/models/mapobjects/alm/tree1"
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 3:16 pm
by g0th-
Make sure you material file is in the materials folder (q4base/materials). Other then that it looks right to me
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 3:21 pm
by ALMighty
g0th- wrote:Make sure you material file is in the materials folder (q4base/materials). Other then that it looks right to me
I have a alm.mtr in the materials folder where I have materials for everything. That's alright isn't it?
It looks like this by the way:
Code: Select all
textures/alm/brick1
{
qer_editorimage textures/alm/brick1_d.tga
diffusemap textures/alm/brick1_d.tga
bumpmap textures/alm/brick1_local.tga
specularmap textures/alm/brick1_s.tga
}
textures/alm/snow1
{
qer_editorimage textures/alm/snow1_d.tga
diffusemap textures/alm/snow1_d.tga
bumpmap textures/alm/snow1_local.tga
specularmap textures/alm/snow1_s.tga
}
models/mapobjects/alm/tree1
{
qer_editorimage models/mapobjects/alm/tree1_d.tga
diffusemap models/mapobjects/alm/tree1_d.tga
bumpmap models/mapobjects/alm/tree1_local.tga
specularmap models/mapobjects/alm/tree1_s.tga
}
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 4:16 pm
by obsidian
Open up the ASE model in a text editor and double check the bitmap value if you haven't done so already.
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 6:20 pm
by g0th-
Check if the model uses more then one material (will result in more bitmaps lines in the .ase)
Also make sure you're model have a proper uv-map.
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 8:47 pm
by ALMighty
I checked the .ase, there's only one *BITMAP and it's got this value:
"//q4base/models/mapobjects/alm/tree1"
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 8:58 pm
by phantazm11
I can't see the problem right off hand, seeing that the BITMAP line looks correct and you said the the .mtr file is in the materials folder. I'm with g0th: Is the model properly UV mapped?
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 9:18 pm
by ALMighty
Well this is what it looks like in 3dsmax:
[lvlshot]http://img86.imageshack.us/img86/1729/tree13dsly3.jpg[/lvlshot]
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 11:13 pm
by g0th-
Make sure you checked the UV cordinates box in max when you export.
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 11:30 pm
by ALMighty
g0th- wrote:Make sure you checked the UV cordinates box in max when you export.
I don't see anything like that in the ASE export window. I used the default settings:
[lvlshot]http://img216.imageshack.us/img216/2051/aseexport3dskb5.jpg[/lvlshot]
I still think there must be something wrong with my model. I followed different tutorials completely and with the same result.
Quake 4 does seem to find the texture, because when I do mess up the texture path, the model is all white. Probably something wrong with the UVW map like you said. It's strange that it shows up nicely in 3dsmax but not in-game though.
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 11:35 pm
by Hipshot
mapping coords
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 11:36 pm
by Hipshot
the only things I use is Mesh def; materials; mesh normals; mapping coords and geometry, nothing else. if I use vertex colors, I add that.
Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 11:44 pm
by ALMighty
Hipshot wrote:mapping coords
That's it, thank you! Thanks everyone for the help.

Re: Q4 - ASE model, can't get the texture to show up!
Posted: Sun Feb 03, 2008 11:46 pm
by ALMighty
Hipshot wrote:the only things I use is Mesh def; materials; mesh normals; mapping coords and geometry, nothing else. if I use vertex colors, I add that.
I see. I'll use that too then if that's all you need anyway. Thanks!