[Gtkradiant] [Bug 175] New: q3map_lightimage screws texture coordinates

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Fri, 07 Sep 2001 08:05:49 -0500


http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=175

           Summary: q3map_lightimage screws texture coordinates
           Product: GtkRadiant
           Version: 1.1-TA.1-nightly
        OS/Version: Windows 2000
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: tools
        AssignedTo: ttimo@idsoftware.com
        ReportedBy: karl.off@berlin.de


this is a reproduceable bug in q3map.exe (ver september 4, 2001).
If you define a q3map_lightimage in a shader that is of different size as 
the 'main' texture, q3map uses this size for texture coordinate processing. 
this is bad.
quick reproduction:

//--------------------------this is a standard ID shader:
textures/gothic_block/evil_e3window
{
	qer_editorimage textures/gothic_block/windowevil2c_block18c.tga
	//surfaceparm nomarks
	q3map_lightimage textures/gothic_block/evil2cglow.tga
	q3map_surfacelight 1000
	// Glowing evil window for e3 demo map
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/gothic_block/windowevil2c_block18c.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/gothic_block/evil2cglow.tga
		blendfunc GL_ONE GL_ONE
	}
}


//-------------------------------now this is the BAD version:
textures/gothic_block/evil_e3window_BAD
{
	qer_editorimage textures/gothic_block/windowevil2c_block18c.tga
	//surfaceparm nomarks
//-----------------------------changing lightimage to a different-sized one:
	q3map_lightimage textures/common/white.tga
	q3map_surfacelight 1000
	// Glowing evil window for e3 demo map
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/gothic_block/windowevil2c_block18c.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/gothic_block/evil2cglow.tga
		blendfunc GL_ONE GL_ONE
	}
}

//----------- == no good compile result :|

greets,
Karloff



------- You are receiving this mail because: -------
Whoops!  I have no idea!