RichDiesal Posted May 20, 2002 Share Posted May 20, 2002 Odd thing happened... I created a shader for a light emitting texture that I needed and the strange thing is that it works in SP but not in MP... even though I made it with MP entities. Any particular reason that this might happen? The shader is rather simple: textures/duel_kamino/light_panel { qer_editorimage textures/duel_kamino/light q3map_surfacelight 3000 { map $lightmap rgbGen identity } { map textures/duel_kamino/light blendFunc GL_DST_COLOR GL_ZERO rgbGen identity } { map textures/duel_kamino/light_glow blendFunc GL_ONE GL_ONE } } Link to comment Share on other sites More sharing options...
Xcom Posted May 20, 2002 Share Posted May 20, 2002 Originally posted by RichDiesal Odd thing happened... I created a shader for a light emitting texture that I needed and the strange thing is that it works in SP but not in MP... even though I made it with MP entities. Any particular reason that this might happen? Not sure this is it, but try putting TGA extension after texture names. textures/duel_kamino/light_panel { qer_editorimage textures/duel_kamino/light q3map_surfacelight 3000 { map $lightmap rgbGen identity } { map textures/duel_kamino/light.TGA blendFunc GL_DST_COLOR GL_ZERO rgbGen identity } { map textures/duel_kamino/light_glow.TGA blendFunc GL_ONE GL_ONE } } You said it's not working. But in what way? It doesn't emit light or what? Link to comment Share on other sites More sharing options...
RichDiesal Posted May 20, 2002 Author Share Posted May 20, 2002 The shaders show up as that damn white/black crisscross grid in MP but look perfect in SP... If the extension were causing the problem, wouldn't that make it screw up in SP too? The map is designed with MP entities too, I can't figure out what is wrong... (this is for duel_kamino btw, if you look in the screen I posted in that topic, those lights come up as crisscrossed nothing, although they still emit light). Link to comment Share on other sites More sharing options...
Cmdr. Antilles Posted May 20, 2002 Share Posted May 20, 2002 Try it w/ the extensions, and get back to us. *edit* Did you type 'sv_pure 0' before you loaded up your map? It just hit me that that's probably your problem. Link to comment Share on other sites More sharing options...
Xcom Posted May 20, 2002 Share Posted May 20, 2002 Originally posted by RichDiesal If the extension were causing the problem, wouldn't that make it screw up in SP too? Heck I dunno Just guessing. The only other reason I can think of, is that somehow your shader is not being read by the SP game. . Maybe adding it to pk3 will help. Link to comment Share on other sites More sharing options...
Cmdr. Antilles Posted May 20, 2002 Share Posted May 20, 2002 DON'T add it to any of the pk3's that came w/ the game. NEVER DO THAT. You should never modify any pk3's that came w/ the game. Try the sv_pure 0 thing... I think that's it. Because, the pure server must be turned off in MP for it to load custom textures not in a .pk3 file. However, since SP doesn't have to worry about servers, it doesn't care if they're pakked up or not. Link to comment Share on other sites More sharing options...
RichDiesal Posted May 20, 2002 Author Share Posted May 20, 2002 Didn't work... I did add sv_pure 0 and did change the shader, but no dice. For a visual: In SP Game: http://web.utk.edu/~rlanders/duel_kamino_prototype.jpg In MP Game: http://web.utk.edu/~rlanders/notworking.jpg You can see that the shader is working (there is light coming from them) but the texture isn't showing up... Link to comment Share on other sites More sharing options...
Xcom Posted May 20, 2002 Share Posted May 20, 2002 Originally posted by Cmdr. Antilles NEVER DO THAT. You should never modify any pk3's that came w/ the game. I meant different new custom pk3. Just for the record, hehe. EDIT: a question? Did you create new shader file for this or just added to the existing one? Link to comment Share on other sites More sharing options...
RichDiesal Posted May 21, 2002 Author Share Posted May 21, 2002 Brand new shader file... I have two shaders in the same file (this and a skybox), actually... duel_kamino.shader (and yes, I added it to the shaderlist). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.