Ase models and alphaMod blending


(dONKEY) #1

Hi. I’m sure it must be possible but I can not get alphaMod texture blending to work on .ase models.

Here is a smaple test screenshot:

The blocks on the right are brushes, and things work fine…those on the left are .ase models and nothing works!

In case it’s a script issue, here’s that too:


textures/dk_ptm/ground2bottom
{
		qer_editorimage textures/dk_ptm/ground2bottom.tga
		q3map_forceMeta 
		q3map_nonplanar 
		q3map_shadeAngle 179
		q3map_tcMod rotate 12 
		q3map_tcMod scale 0.6 0.6 
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/dk_ptm/rock109.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/dk_ptm/rock091.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identityLighting
		alphaGen oneMinusVertex
		tcMod scale .2 .2 
	}
}

Many thanks.


(dONKEY) #2

Yah! Fixed it…thanks G. What actually did it was compiling with 2.5.16…I was using a beta of 2.5.15…and it obviously didn’t support what I was trying to do!


(ratty redemption) #3

cool and thanx for updating us :slight_smile:


(ydnar) #4

You should put the $lightmap stage last, with blendFunc GL_DST_COLOR GL_ZERO, so the 2nd texture stage is properly lit.

y