Page 1 of 1

Strange shader issue: loaded but missing at the same time

Posted: Wed Mar 04, 2015 9:17 pm UTC
by illwieckz

Hi the temple map has this shader, it's named “textures/sockter/ter_rock2blend” and rely upon “textures/sockter/ter_rock2.tga” and “textures/sockter/ter_rock2vine.tga”:

Code: Select all

// ======================================================================
// Terrain blending without dotProduct2 and ivector
// ======================================================================
textures/sockter/ter_rock2blend		// Vine walls only
{
	qer_editorimage textures/sockter/ter_rock2blend
	
q3map_nonplanar
q3map_shadeAngle 120

{
	map textures/sockter/ter_rock2	// Primary
	rgbGen identity
}
{
	map textures/sockter/ter_rock2vine	// Secondary
	blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	alphaFunc GE128
	rgbGen identity
	alphaGen vertex
}
{
	map $lightmap
	blendFunc GL_DST_COLOR GL_ZERO
	rgbGen identity
}
}

The textures are here and valid (I get the same behavior with .tga files or .crn files):

Code: Select all

$ file textures/sockter/ter_rock2.tga textures/sockter/ter_rock2vine.tga 
textures/sockter/ter_rock2.tga:     Targa image data - RGB - RLE 512 x 512
textures/sockter/ter_rock2vine.tga: Targa image data - RGB 512 x 512

But at load time, I get that log:

Code: Select all

...loading shaders 
shader: 'textures/sockter/ter_rock2blend' 
shader: 'textures/sockter/ter_rock2'
shader: 'textures/sockter/ter_rock2vine' 
Couldn't find image file for shader textures/sockter/ter_rock2blend 

As you see, the log said it found the shader and all the needed textures, then it said at least one is missing :bugeyes: , and the texture appears like a missing textures :confused: , do you know what happen there? :smile:

I have also 7 other shaders found and loaded and missing at the same time, like this one.


Re: Strange shader issue: loaded but missing at the same tim

Posted: Sun Mar 08, 2015 11:10 am UTC
by Viech

Maybe it tries to load the in-editor preview image (qer_editorimage textures/sockter/ter_rock2blend) for some reason? :confused:


Re: Strange shader issue: loaded but missing at the same tim

Posted: Sun Mar 08, 2015 5:36 pm UTC
by illwieckz

No, because if I fix that (just use one of the other as a fallback), the behavior is exactly the same. :confused:


Re: Strange shader issue: loaded but missing at the same tim

Posted: Mon Oct 26, 2015 2:25 pm UTC
by illwieckz

See #806 for a detailed bug report (affects a Xonotic map too).