Page 1 of 1

Model texture

Posted: Tue Apr 20, 2004 12:19 am
by agentmad007
hi ,

someone know how do i have to do to texture a model with mohradiant or something else ......

i have a model witk skb skc tik file but without texture .....

if someone know thank you .....

Posted: Tue Apr 20, 2004 12:40 am
by bdbodger
Well your model has a skin with a name like surf_skin1 so in the tik for the model like this one for the armchair

Code: Select all

TIKI
setup
{
	scale 0.52			// Set default scale to 16/30.5 since world is in 16 units per foot and model is in cm's
	path models/furniture/chairs
	skelmodel armchairposh.skd
	surface armchairposh shader armchairposh
}

init
{
	server
	{
		classname object
	}
}

animations
{
	idle     armchairposh.skc
}

/*QUAKED static_furniture_armchairposh (0.0 0.75 0.5) (-40 -24 0) (8 24 72)
*/ 
you see where it says surface armchairposh shader armchairposh there is a shader called furniture.shader in the scripts directory of pak0 and in that shader there is this part that is the texture . I think the surface of the model is actually named surf_armchairposh when the model is made .

Code: Select all

// armchairposh
armchairposh
{
	qer_editorimage textures/models/items/armchairposh.tga

	{
		map textures/models/items/armchairposh.tga
		rgbGen lightingSpherical
	}
}
maybe post in the modeling forum they can maybe tell you more about uvmapping and things better than we can .

Posted: Tue Apr 20, 2004 1:40 am
by agentmad007
yes thank you bd bodger for hlep

but the problem is that its not a skin its a ring !

btw sorry to post it here i didnt noticed that a skinning forum existed

i will ask there TY