Task #1004

for compatibility with old renderer make renderer2 read from folder materials

Added by thunder over 2 years ago. Updated over 1 year ago.

Status:Fixed% Done:

100%

Priority:NormalSpent time:-
Assignee:-
Category:Client
Target version:renderer2
OS: Arch:

Description

since old renderer doesnt work with new shaders...


Related issues

Related to ET: Legacy Development - Task #867: include custom textures with new shaders / create new ETL... New 23.08.2015

Associated revisions

Revision da0bb5fb
Added by IR4T4 over 2 years ago

renderer2: Make renderer2 read from folder scripts2 fixes #1004 - Abort
the game when no shader files are in path or limit of MAX_SHADER_FILES
is reached

Revision 2b95d4c1
Added by IR4T4 over 2 years ago

renderer2: merge r2 shaders from thunderpwn, fix switching between
renderers refs #1004

History

#1 Updated by IR4T4 over 2 years ago

  • Target version set to renderer2

#2 Updated by IR4T4 over 2 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#3 Updated by IR4T4 over 2 years ago

  • Status changed from Fixed to Feedback
  • % Done changed from 100 to 50

Actually I’m not sure about if this is the final fix. All ET maps have shaders in the scripts folder.

#4 Updated by RaFaL over 2 years ago

IR4T4 actually we have a bit worse issue to fix here.
When you changing renderer to vanilla one and game try to load shaders this is happening

Forcing glFinish
Initializing Shaders
********************
ERROR: ScanAndLoadShaderFiles: Couldn't load scripts//alpha.shader
********************
RE_Shutdown( 0 )
Hunk_Clear: reset the hunk ok
----- R_Init -----
GL_MAX_TEXTURE_SIZE: 16384
GL_MAX_ACTIVE_TEXTURES_ARB: 8
PIXELFORMAT: color(24-bits) Z(24-bit) stencil(0-bits)
MODE: 11, SCREEN: 856 x 480 windowed (ratio 1.7833) Hz:N/A
GAMMA: hardware w/ 0 overbright bits
rendering primitives: single glDrawElements
texturemode: GL_LINEAR_MIPMAP_LINEAR
picmip: 0
texture bits: 0
multitexture: enabled
compiled vertex arrays: enabled
texenv add: enabled
compressed textures: enabled
Forcing glFinish
Initializing Shaders
recursive error 'ScanAndLoadShaderFiles: Couldn't load scripts//alpha.shader' after: ScanAndLoadShaderFiles: Couldn't load scripts//alpha.shader
SDL input devices shut down.

SOLUTION:

Shouldn’t game clear shader buffer before loading next renderer ?

ri.FS_FreeFileList(shaderFiles)

#5 Updated by thunder about 2 years ago

  • Subject changed from for compatibility with old renderer make renderer2 read from folder scripts2 to for compatibility with old renderer make renderer2 read from folder materials

#6 Updated by IR4T4 over 1 year ago

New cvar for renderer2 're_materialscan’

1 - Read material form scripts folder
2 - Read material from material folder

Currently the default value is 3 (read from both folders) and the material folder is only readable from the legacy mod.
See #867

#7 Updated by IR4T4 over 1 year ago

  • Related to Task #867: include custom textures with new shaders / create new ETL pk3 added

#8 Updated by IR4T4 over 1 year ago

  • Status changed from Feedback to Fixed
  • % Done changed from 50 to 100

Also available in: Atom PDF