Shader Help -1 reply

Please wait...

Akir

Hell's Guardian

50 XP

4th April 2004

0 Uploads

44 Posts

0 Threads

#1 13 years ago

Hey, I would like some help with shaders, i wonder if its possible to have a certain color of a texture act like a light and stand out, if so how would this be possible (for reference the color would be red (r=255 g=0 b=0)) thnx for any help




Trauma Sensei

The All Seeing Eye

50 XP

5th June 2004

0 Uploads

1,591 Posts

0 Threads

#2 13 years ago

Maybe its because I just woke up, but I can not understand your request, please try to be more specific.




Akir

Hell's Guardian

50 XP

4th April 2004

0 Uploads

44 Posts

0 Threads

#3 13 years ago

I want to make a certain color on a texture act as a light source




Trauma Sensei

The All Seeing Eye

50 XP

5th June 2004

0 Uploads

1,591 Posts

0 Threads

#4 13 years ago

Ah like dynamic glow, right? Anyway, I am pretty sure you can not add dynamic glow to a shader, the closest effect you will get is a shader that will make the texture not to be affected by global lighting, even on dark places it will look the same, but that might result in a bad looking effect if it is applied to the entire model. If you want to do that then you will need to learn how to create alpha channels on a .tga file.




se7enraven

Order of the Dragon Knight

50 XP

29th March 2003

0 Uploads

768 Posts

0 Threads

#5 13 years ago

Sorry for the necro, but I am having this problem also. First, it is possible to have a shader/texture emit light. A good example of this is the texture: impdetention/Light_blue (or ...light_red, light_white, ect). Those textures/shaders actually do emit light, and not just glow.

Now for my question: How to replicate this effect? I have searched for the shader file and I believe this is it:

textures/impdetention/light_blue { qer_editorimage textures/impdetention/light_blue q3map_surfacelight 2000 q3map_nolightmap { map textures/impdetention/light_blue rgbGen identity } }

I have managed to replicate this shader and use it in game, to an extent. The texture shows up and glows, but does not emit light. My question is how do I get a shader to glow AND emit light? Thank you!




.The Deviant

Second Tier Wise-ass

50 XP

6th March 2005

0 Uploads

1,444 Posts

0 Threads

#6 13 years ago

models/players/admin/officer_torso { { map models/players/admin/officer_torso rgbGen lightingDiffuse } { map models/players/admin/officer_torso blendFunc GL_ONE GL_ONE glow rgbGen identity } }

models/players/admin/officer_legs { { map models/players/admin/officer_legs rgbGen lightingDiffuse } { map models/players/admin/officer_legs blendFunc GL_ONE GL_ONE glow rgbGen identity } }

models/players/admin/boots_hips { { map models/players/admin/boots_hips rgbGen lightingDiffuse } { map models/players/admin/boots_hips blendFunc GL_ONE GL_ONE glow rgbGen identity } }

That's the shader to the admin skin. It's the closest thing you're gonna find, probably.




se7enraven

Order of the Dragon Knight

50 XP

29th March 2003

0 Uploads

768 Posts

0 Threads

#7 13 years ago

Thanks for the reply! Actually, I want to make a texture/shader for mapping...not charecters. And I not only need it to glow, but also emit light. Anyone have any experience with this? Thank you!




.The Deviant

Second Tier Wise-ass

50 XP

6th March 2005

0 Uploads

1,444 Posts

0 Threads

#8 13 years ago

Simply use the shader I gave you, and use a brush to emit lighting from whatever texture you're using.




se7enraven

Order of the Dragon Knight

50 XP

29th March 2003

0 Uploads

768 Posts

0 Threads

#9 13 years ago

Thank you! But again all this shader does is glow, it does not actually emit light. I am pretty sure you need a "q3map_surfacelight #" line in a shader for it to emit light, and I have yet to see it work. I suppose I may just be stuck using entity lights.




Inyri Forge VIP Member

[Insert User Title Here]

55 XP

15th March 2005

0 Uploads

25,940 Posts

0 Threads

#10 13 years ago

I know Lassev has experience with light-emitting shaders - he was all proud of himself the last time he talked to me about them - so you might consider trying to get in contact with him, or catching his attention.