Page 1 of 1

TEXTURES!!! Theyre not fited in game

Posted: Wed Dec 17, 2008 1:37 pm
by Aprop
I fited textures in radiant, but it dont work in game... can somebody explain me why?

shader

Code: Select all

textures/tex/01
{
	qer_keyword wall
	qer_keyword tex
	surfaceparm metal
	cull none
	{
		map textures/tex/01.jpg
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

Posted: Wed Dec 17, 2008 5:09 pm
by jv_map
Try

Code: Select all

textures/tex/01
{
   qer_keyword wall
   qer_keyword tex
   surfaceparm metal
   cull none
   qer_editorimage textures/tex/01.tga
   {
      map textures/tex/01.jpg
      depthWrite
      rgbGen identity
   }
   {
      map $lightmap
      rgbGen identity
      blendFunc GL_DST_COLOR GL_ZERO
      depthFunc equal
   }
}

Posted: Sat Dec 20, 2008 1:46 pm
by Aprop

Code: Select all

   qer_editorimage textures/tex/01.tga 
Its image for editor, isnt it? I have problem in game, because texture is too small, eg 5 walls on one wall!

Posted: Sat Dec 27, 2008 1:31 pm
by Rookie One.pl
If you don't specify a qer_editorimage, Radiant falls back to the first shader stage, but still it may align the texture differently than the game would. So the case might be that you are tricked into thinking your texture fits OK while in reality it doesn't.