.md3 texture problem


(Cronium) #1

Hi

Why does my md3 show up in Radiant with textures and not in ET?


(Drakir) #2

You need to add the image to your .shader file for Radiant, like this:

qer_editorimage models/mapobjects/cab_sd/wheels.tga

models/mapobjects/cab_sd/wheels
{
	qer_editorimage models/mapobjects/cab_sd/wheels.tga
	{
		map $lightmap
		rgbGen identity
	}
	{
		map models/mapobjects/cab_sd/wheels.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

(chavo_one) #3

No, the qer_editorimage is to get the texture to show up in radiant. According to his screenshots, it’s doing that, but not showing up in the game.

Is the texture sized by powers of 2? IOW, 256x256, 256x128, 512x512?

If it is not, then the game won’t display it. Pull down the console and look for any error messages related to the model.


(Cronium) #4

Thanks! Your were both right; i didn’t have a shader for that object and i made the texture 521*512… doh… :wink:


(Cronium) #5

do you know how to resize a model linked to an entity (like CTF-blueflag)?


(chavo_one) #6

Have you tried using modelscale or modelscale_vec on the team_ctf_blueflag entity? Not sure if it works, but it’s worth a try!


(Cronium) #7

Yepp, it didn’t work… :frowning: