Q4 - ASE model, can't get the texture to show up!

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
ALMighty
Posts: 542
Joined: Sat Mar 02, 2002 8:00 am

Q4 - ASE model, can't get the texture to show up!

Post 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"
Last edited by ALMighty on Sun Feb 03, 2008 3:22 pm, edited 1 time in total.
g0th-
Posts: 262
Joined: Sat May 19, 2007 7:57 pm

Re: Q4 - ASE model, can't get the texture to show up!

Post by g0th- »

Make sure you material file is in the materials folder (q4base/materials). Other then that it looks right to me
[url]http://www.g0th.se[/url]
ALMighty
Posts: 542
Joined: Sat Mar 02, 2002 8:00 am

Re: Q4 - ASE model, can't get the texture to show up!

Post 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
}
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Q4 - ASE model, can't get the texture to show up!

Post by obsidian »

Open up the ASE model in a text editor and double check the bitmap value if you haven't done so already.
g0th-
Posts: 262
Joined: Sat May 19, 2007 7:57 pm

Re: Q4 - ASE model, can't get the texture to show up!

Post 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.
[url]http://www.g0th.se[/url]
ALMighty
Posts: 542
Joined: Sat Mar 02, 2002 8:00 am

Re: Q4 - ASE model, can't get the texture to show up!

Post by ALMighty »

I checked the .ase, there's only one *BITMAP and it's got this value:

"//q4base/models/mapobjects/alm/tree1"
phantazm11
Posts: 362
Joined: Tue Jan 31, 2006 12:03 am

Re: Q4 - ASE model, can't get the texture to show up!

Post 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?
ALMighty
Posts: 542
Joined: Sat Mar 02, 2002 8:00 am

Re: Q4 - ASE model, can't get the texture to show up!

Post by ALMighty »

Well this is what it looks like in 3dsmax:

[lvlshot]http://img86.imageshack.us/img86/1729/tree13dsly3.jpg[/lvlshot]
g0th-
Posts: 262
Joined: Sat May 19, 2007 7:57 pm

Re: Q4 - ASE model, can't get the texture to show up!

Post by g0th- »

Make sure you checked the UV cordinates box in max when you export.
[url]http://www.g0th.se[/url]
ALMighty
Posts: 542
Joined: Sat Mar 02, 2002 8:00 am

Re: Q4 - ASE model, can't get the texture to show up!

Post 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.
Last edited by ALMighty on Sun Feb 03, 2008 11:36 pm, edited 1 time in total.
User avatar
Hipshot
Posts: 1548
Joined: Sun Jan 20, 2002 8:00 am

Re: Q4 - ASE model, can't get the texture to show up!

Post by Hipshot »

mapping coords
Q3Map2 2516 -> http://www.zfight.com/misc/files/q3/q3map_2.5.16_win32_x86.zip
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
User avatar
Hipshot
Posts: 1548
Joined: Sun Jan 20, 2002 8:00 am

Re: Q4 - ASE model, can't get the texture to show up!

Post 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.
Q3Map2 2516 -> http://www.zfight.com/misc/files/q3/q3map_2.5.16_win32_x86.zip
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
ALMighty
Posts: 542
Joined: Sat Mar 02, 2002 8:00 am

Re: Q4 - ASE model, can't get the texture to show up!

Post by ALMighty »

Hipshot wrote:mapping coords
That's it, thank you! Thanks everyone for the help. :)
ALMighty
Posts: 542
Joined: Sat Mar 02, 2002 8:00 am

Re: Q4 - ASE model, can't get the texture to show up!

Post 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!
Post Reply