News:

Come Chat with us live! Learn how HERE!

Main Menu

Dynamic Lights Example

Started by Knowitall66, August 08, 2010, 12:26:37 AM

Knowitall66

(Ignore fps it's actually holding at 90)

Download - Mirror (Courtesy of Thorn)  <<< Includes the .map

/devmap dynamic

Hit the buttons to turn lights on and off.


How it works: Particles can produce light that effects world AND models. :D

Issue: May effect performance on low end computers. There must be some light in the areas the particle light will effect (Doesn't matter how low it is (The example map uses ambient lighting set at 10))

amz181

thats pretty awesome. On my comp my fps went down to 5 at one point :P

Thorn

FPS here did not vary much (at all that I noticed) with the dynamic lights triggered on or off.  Pretty genius method (and everyone should kick themself for not thinking about it).


Thorn

Alternate link for those who don't want to endure mediafire: Here

your face

know it all. >:(

definitely will try this epicness out, thanks for posting. :D
Quote from: dolby on February 19, 2003, 06:44:44 PM
spam spam spam, waste waste waste!

UniqPhoeniX

#5
AWESOME!
Quote from: Thorn on August 08, 2010, 12:58:21 AM
FPS here did not vary much (at all that I noticed) with the dynamic lights triggered on or off.  Pretty genius method (and everyone should kick themself for not thinking about it).
*UniqPhoeniX kicks himself *ouch*
NOTE: This requires /r_dynamicLight 1 if you don't already have it set.
EDIT: after some testing, it seems the renderer can display about 10 dynamic particle lights properly; if more are visible, then the first 10 will work.

gimhael

The limit should be 32 dlights, for each surface the renderer keeps a bit mask of the dynamic lights that hit it, and this mask is 32 bits wide.

Crava_Loft

#7
[deleted]

UniqPhoeniX

So is that 32 lights per map? Could be, since I had a bunch more lights off, but some were definitely affected by how many lights were in view (15 active, 10 worked always, 5 worked sometimes, for example when only those were in view).

Odin

It's too bad that the lighting looks like crap on walls, any other angle(besides straight up, it seems) works great though.