Strange shader issue: loaded but missing at the same time

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

Strange shader issue: loaded but missing at the same time

Postby illwieckz » Wed Mar 04, 2015 9:17 pm UTC

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

Postby Viech » Sun Mar 08, 2015 11:10 am UTC

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: 465
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

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

Postby illwieckz » Sun Mar 08, 2015 5:36 pm UTC

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: 465
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

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

Postby illwieckz » Mon Oct 26, 2015 2:25 pm UTC

See #806 for a detailed bug report (affects a Xonotic map too).
This comment is licensed under cc ​​by 4 and antecedent.

Return to “Level Design”

Who is online

Users browsing this forum: No registered users and 1 guest