Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Light emitting shader?

Page: 1 of 1
 Psyk0Sith
11-09-2003, 4:11 PM
#1
This may sound weird, but i'm trying to find a light emitting shader, not a glow, more of a spotlight effect. Any suggestions?

I never mapped anything so im clueless when it comes to this stuff, tho ive looked at shaders and used some on player models.

I can try to dig up a screenshot of what im looking for if needed.

Thanx
 _PerfectAgent_
11-09-2003, 4:33 PM
#2
I think light emitting shaders only glow... But what you can do is that you can use a light entity and use an info_null to point where you want the spotlight to point to.
 Psyk0Sith
11-09-2003, 5:16 PM
#3
Thanx for the info.

Would it be possible to add this shader to a moving object, lets say a ship or a player model? I guess i should have mentioned that at first.
 _PerfectAgent_
11-09-2003, 5:36 PM
#4
:giveup: I don't know about that though.... I read somewhere that light in Quake 3 works by changing the way textures look (such as making a texture be "painted" darker), but I'm not sure about that...
 wedge2211
11-09-2003, 6:35 PM
#5
I don't believe the Q3 engine can handle moving lightmaps. The LIGHT phase of a map compile renders all lighting information at that time...leaving no room for the lightmap to change in-game. This makes it impossible for, say, players to carry flashlights. You can see this effect with the dynamic glow thrown off by the lightsaber: in a bright area, there's a nice glowy, flickery spot beneath the player. but, walk into a dark room, and said glowy spot disappears (the room remaining dark), when the saber SHOULD theoretically be throwing off enough light to see by. This is because the saber's glow is dependent on the lightmap calculated during compile, and the lightmap is prevented from changing in-game. At least, I thinkt hat's how it works.

Too bad, really...
 Emon
11-09-2003, 7:42 PM
#6
I think JO's (and Q3's) dynamic lighting is based off the lightmaps, so it doesn't light dark rooms well. JA, however, has a really awesome per-pixel dynamic light effect that fully lights up any dark room. You could make a flashlight with it.
 WadeV1589
11-09-2003, 9:32 PM
#7
One of the first things I noticed is leaving dynamic glow enabled (I was one of those fortunate to experience very little FPS drop with it enabled) lit up even the blackest areas of the map. I've been used to glows working poorly on black lightmap areas...JA has no such trouble. It really is a nice step up.
 idontlikegeorge
11-09-2003, 10:33 PM
#8
Too bad it doesn't work correctly for most users. :(
 Emon
11-09-2003, 11:17 PM
#9
Er, uh, dynamic glow is entirely seperate from dynamic light.
 idontlikegeorge
11-09-2003, 11:28 PM
#10
Oh, is it the dynamic light that kills framerate then?


And, to be on topic, what is this for? A vehicle model? Character? Sounds cool though, to have a spotlight object on the model. Like a armored infantry shoulder light, or flying craft's landing lights, and all that stuff. Be neat to see. :)
 Emon
11-10-2003, 12:14 AM
#11
Dynamic glow is the "light bleeding" effect, it has the biggest hit on performance.
 Psyk0Sith
11-11-2003, 10:25 PM
#12
Originally posted by idontlikegeorge
Oh, is it the dynamic light that kills framerate then?


And, to be on topic, what is this for? A vehicle model? Character? Sounds cool though, to have a spotlight object on the model. Like a armored infantry shoulder light, or flying craft's landing lights, and all that stuff. Be neat to see. :)

Well im wondering if it'd be possible to add a spotlight to the Kel-Dor soldier helmet.

I guess i'll have to try it myself but im just trying to locate an actual shader that can do it...and i think that would also require some polys to display the light rays.
Page: 1 of 1