Q3 Lighted models


(Sinni) #1

For some reason I can’t get the models to light, the shaders are loaded and functional. But when i compile i don’t get any light :disgust:
Any ideas what i can try?


(ydnar) #2

What type of models? Misc_model entities? Misc_gamemodel entities?

Players/weapons/ammo?

Post your shaders, too.

y


(Matt) #3

$10 on forcemeta.


(Sinni) #4

models/mapobjects/urban_terror/lamp/glass_lit
{
	qer_editorimage models/mapobjects/urban_terror/lamp/glass_lit
	surfaceparm nomarks
	q3map_surfacelight 20000
	{
		map $lightmap
		rgbGen identity
	}
	{
		map models/mapobjects/urban_terror/lamp/glass_lit
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map models/mapobjects/urban_terror/lamp/glass_lit
		blendfunc GL_ONE GL_ONE
	}
}

Thats the First one in the file, I tried copying them to a different shader file, and still didn’t werk. But if i go in and edit the mapmodel and assign it to say with this one to “textures/Sinni/glass_lit” and change all the textures to point to it in textures/Sinni/glass_lit it reads it. kinda a pain in the ass, but if it werks go with it. And what is the Forcemeta thing?


(ydnar) #5

The texture names need a “.tga” suffix.

Also, how did you create your MD3? MD3 models generated via various 3DS Max plugins (Pop’N’Fresh being a notable offender) have mangled/incorrect shader names.

Download MD3Fix and post-process your model to cure those ails.

y