shader problem


(capslock trojan) #1
textures/omaha/terrain_0
{
	q3map_baseshader textures/omaha/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/omaha/terrain_0.tga
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/omaha/terrain_1
{
	q3map_baseshader textures/omaha/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/omaha/terrain_1.tga
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/omaha/terrain_2
{
	q3map_baseshader textures/omaha/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/omaha/terrain_2.jpg
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/omaha/terrain_3
{
	q3map_baseshader textures/omaha/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/omaha/terrain_3.tga
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/omaha/terrain_0to1
{
	q3map_baseshader textures/omaha/terrain_base
	{
		map textures/omaha/terrain_0.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/omaha/terrain_1.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/omaha/terrain_0to2
{
	q3map_baseshader textures/omaha/terrain_base
	{
		map textures/omaha/terrain_0.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/omaha/terrain_2.jpg
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/omaha/terrain_0to3
{
	q3map_baseshader textures/omaha/terrain_base
	{
		map textures/omaha/terrain_0.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/omaha/terrain_3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/omaha/terrain_1to2
{
	q3map_baseshader textures/omaha/terrain_base
	{
		map textures/omaha/terrain_1.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/omaha/terrain_2.jpg
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/omaha/terrain_1to3
{
	q3map_baseshader textures/omaha/terrain_base
	{
		map textures/omaha/terrain_1.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/omaha/terrain_3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/omaha/terrain_2to3
{
	q3map_baseshader textures/omaha/terrain_base
	{
		map textures/omaha/terrain_2.jpg
		tcMod scale 0.056 0.056
	}
	{
		map textures/omaha/terrain_3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/omaha/terrain_base
{
	q3map_lightmapaxis z
	q3map_lightmapmergable
	q3map_lightmapsize 256 256
	q3map_tcGen ivector ( 1024 0 0 ) ( 0 1024 0 )
}

textures/omaha/fog
{
	qer_editorimage textures/sfx/fog_grey1.tga
	
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm fog
	
	fogparms ( 0.09411 0.09803 0.12549 ) 1900
}

i dont understand why i cant plant mines and my gravelsteps dont work


(capslock trojan) #2

and if you could figger out this one to :stuck_out_tongue: that would be alot of help

textures/poland/terrain_0
{
	q3map_baseshader textures/poland/terrain_base
	surfaceparm landmine
	surfaceparm snowsteps
	{
		map textures/poland/terrain_0.tga
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_1
{
	q3map_baseshader textures/poland/terrain_base
	surfaceparm landmine
	surfaceparm snowsteps
	{
		map textures/poland/terrain_1.tga
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_2
{
	q3map_baseshader textures/poland/terrain_base
	surfaceparm landmine
	surfaceparm snowsteps
	{
		map textures/poland/terrain_2.tga
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_3
{
	q3map_baseshader textures/poland/terrain_base
	surfaceparm landmine
	surfaceparm snowsteps
	{
		map textures/poland/terrain_3.tga
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_4
{
	q3map_baseshader textures/poland/terrain_base
	surfaceparm landmine
	surfaceparm snowsteps
	{
		map textures/poland/terrain_4.tga
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_0to1
{
	q3map_baseshader textures/poland/terrain_base
	{
		map textures/poland/terrain_0.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/poland/terrain_1.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_0to2
{
	q3map_baseshader textures/poland/terrain_base
	{
		map textures/poland/terrain_0.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/poland/terrain_2.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_0to3
{
	q3map_baseshader textures/poland/terrain_base
	{
		map textures/poland/terrain_0.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/poland/terrain_3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_0to4
{
	q3map_baseshader textures/poland/terrain_base
	{
		map textures/poland/terrain_0.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/poland/terrain_4.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_1to2
{
	q3map_baseshader textures/poland/terrain_base
	{
		map textures/poland/terrain_1.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/poland/terrain_2.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_1to3
{
	q3map_baseshader textures/poland/terrain_base
	{
		map textures/poland/terrain_1.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/poland/terrain_3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_1to4
{
	q3map_baseshader textures/poland/terrain_base
	{
		map textures/poland/terrain_1.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/poland/terrain_4.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_2to3
{
	q3map_baseshader textures/poland/terrain_base
	{
		map textures/poland/terrain_2.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/poland/terrain_3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_2to4
{
	q3map_baseshader textures/poland/terrain_base
	{
		map textures/poland/terrain_2.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/poland/terrain_4.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_3to4
{
	q3map_baseshader textures/poland/terrain_base
	{
		map textures/poland/terrain_3.tga
		tcMod scale 0.056 0.056
	}
	{
		map textures/poland/terrain_4.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
		tcMod scale 0.056 0.056
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/poland/terrain_base
{
	q3map_lightmapaxis z
	q3map_lightmapmergable
	q3map_lightmapsize 512 512
	q3map_tcGen ivector ( 1152 0 0 ) ( 0 1152 0 )
}

(Loffy) #3

Hi!
I do not know. But I would test this if I were you:

textures/omaha/terrain_base  // PUT THIS SCRIPT-BLOCK HERE
{ 
   q3map_lightmapaxis z 
   q3map_lightmapmergable 
   q3map_lightmapsize 256 256 
   q3map_tcGen ivector ( 1024 0 0 ) ( 0 1024 0 ) 
   surfaceparm landmine // INSERT THIS.
}

textures/omaha/terrain_0 
{ 
   q3map_baseshader textures/omaha/terrain_base 
   // REMOVE SURFACEPARM LANDMINE FROM THIS LINE.
   surfaceparm gravelsteps 
   { 
      map textures/omaha/terrain_0.tga 
      tcMod scale 0.056 0.056 
   } 
   { 
      map $lightmap 
      blendFunc GL_DST_COLOR GL_ZERO 
   } 
}

etc…

iF IT WORKS, ops, caps lock, sorry. If it works, try gravelsteps too!
And remember: You must recompile, to make it work.

Good luck!
// Loffy


(capslock trojan) #4

:stuck_out_tongue: thx il try it :d:d:d

now only my skybox


(capslock trojan) #5

srr not working :frowning: