Strange shader issue: loaded but missing at the same time

Ask questions about mapping in general, and show off your in-progress work.
Post Reply
User avatar
illwieckz
Project Head
Posts: 717
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Strange shader issue: loaded but missing at the same time

Post 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.

User avatar
Viech
Project Head
Posts: 2139
Joined: Fri Aug 03, 2012 11:50 pm UTC
Location: Berlin

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

Post by Viech »

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

Responsible for: Arch Linux package & torrent distribution, Parpax (map), Chameleon (map texture editor), Sloth (material file generator), gameplay design & programming, artistic direction

User avatar
illwieckz
Project Head
Posts: 717
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

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

Post by illwieckz »

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

User avatar
illwieckz
Project Head
Posts: 717
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

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

Post by illwieckz »

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

This comment is licensed under cc ​​by 4 and antecedent.

Post Reply