Reverse Lights? |
by Razgriz
on 07/25/2009 15:18, 17 messages, last message: 01/16/2010 02:15, 1747 views, last view: 05/05/2024 10:42 |
|
As anyone knows the light that a light entity emits varies from RGB 0 to 255. the less the values the more fading light. If a light value is less than ambient then no light is emitted making the light entity useless.
SO i came to ask why isn't there reverse engineering on this? like blacklights.
A feature that you can set lamp's color more precisely. Making a dark red or green or blue color without having to keep the whole map dark and using faded colors to make a scenery
That way a value less than the ambient will make the area that it affects darker than the ambient, like draining light! that could be used for some nice effects :D
|
|
Board Index
|
|
#1: shadow lights |
by Hirato Kirata
on 07/25/2009 16:39
|
|
we call them shadow lights
simply just substitute the RGB values for -ve ones, such as /newent light 512 200 -200 -200 for a deeper red.
and just for stating the obvious, the value for ambient is the absolute minimum a value a pixel in a lightmap may hold
reply to this message
|
|
#2: .. |
by Razgriz
on 07/25/2009 23:43
|
|
that's something i wouldn't think of. neither would lots of other people so it would be good to have such a feature in the press of a button in the next release.
reply to this message
|
|
#3: Re: .. |
by tentus_
on 07/26/2009 06:54, refers to #2
|
|
How would you make that a single button? If I'm reading your post correctly, you want more control over lighting... this is seriously the most elegant way to do that.
reply to this message
|
|
#4: .. |
by Razgriz
on 07/26/2009 10:29
|
|
to make the button you could allow this reversing without having to subtract the other values to help the one you want, like it toggles values that in -255 is totally dark and in 0 its faded light.
Idk how it could be done so i'm only suggesting. I'm no programmer yet no one other is a fortune teller to find out how to do darker lights :/
reply to this message
|
|
#5: Re: shadow lights |
by Razgriz
on 07/26/2009 23:12, refers to #1
|
|
oh and this doesn't work. forgot to mention that >.>
reply to this message
|
|
#6: Re: shadow lights |
by tentus_
on 07/27/2009 00:42, refers to #5
|
|
I just confirmed that it does in the current version. Please provide a screenshot of how it doesn't work.
reply to this message
|
|
#7: .. |
by Razgriz
on 07/27/2009 11:48
|
|
my previous post got lost since the forum died with an error again for several minutes... but anyway, i took a pic and wrote the stats on it. maybe you gouys use SVN version or something?
http://i294.photobucket.com/albums/mm88/8924th/screenshot_111284.png
reply to this message
|
|
#8: Re: .. |
by Megagun_
on 07/27/2009 12:15, refers to #7
|
|
It does work there...
Do you see any blue or green light in the box on the right? No, you don't! :)
reply to this message
|
|
#9: Re: .. |
by baby~rabbit
on 07/27/2009 13:11, refers to #7
|
|
As Hirato said in the first post: ambient is the absolute minimum. So negative/shadow lights can only subtract from other lights, not from the ambient.
reply to this message
|
|
#10: Lighting |
by LeftClicker
on 01/10/2010 02:35
|
|
Basically what he wants is to have shadows without lighting or cubes, just so we're all on the same page. Like a "black light". What Hirato and baby-rabbit are saying is that no, you can't exactly do that, you can only a black light that detracts from other lights. You must have ambient (surrounding) light at a minimum. Right?
reply to this message
|
|
#11: Re: Lighting |
by tentus_
on 01/10/2010 06:37, refers to #10
|
|
Right, the ambient is the minimum.
reply to this message
|
|
#12: .. |
by Q009
on 01/10/2010 11:30
|
|
but it can affect lighting for light ents:
http://leetclan.lua.pl/revlight.jpg
reply to this message
|
|
#13: .. |
by Q009
on 01/10/2010 11:31
|
|
lighting FROM light ents
*hates his keyboard*
reply to this message
|
|
#14: .. |
by Razgriz
on 01/10/2010 23:43
|
|
its still a good idea to have negative value lights for darker ones. -255 -255 -255 for totally black lights anf for adding shadows LOL
reply to this message
|
|
#15: Re: Q009 |
by LeftClicker
on 01/12/2010 01:21
|
|
> but it can affect lighting [from] light ents
That's exactly the point. You need ambient lighting, provided by the light ents, at a minimum. If you have no light ents, I'm assuming that the shadow light creates a minimal amount of some.
reply to this message
|
|
#16: Re: Q009 |
by tentus_
on 01/12/2010 05:00, refers to #15
|
|
No, ambient lighting is an absolute. What I think people are trying to do is create absolute black, which is a terrible idea in many ways. It can't/shouldn't be done in Sauer. A negative light that has no normal lights to subtract from will do nothing, as it is supposed to.
reply to this message
|
|
#17: Re: Q009 |
by LeftClicker
on 01/16/2010 02:15
|
|
OK, thanks tentus. I sorta kinda sorta get it now... sorta.
reply to this message
|
|
|
Board Index
|
|