Create an account


Poll: What do you think?
You do not have permission to vote in this poll.
I like it
50.00%
2 50.00%
I don't like it
0%
0 0%
It's too much work
50.00%
2 50.00%
It is affordable
0%
0 0%
Total 4 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SUGGESTION] Fake dynamic Global Illumination

#1
Lightbulb 
Hi all.

I just got an idea while playing some egypt-like map with lightmaps calculated with bouncing rays.

My idea is to make players light up their environment while standing in a bright light. It would require just spawning a dynamic light in the center of a player object and calculating it's colour and brightnes. That wouldn't be too expansive for resources, but may look really cool.

Those images should view my idea:
http://www.mediafire.com/imageview.php?q...mwm3mdzkgm
http://www.mediafire.com/imageview.php?q...ggnuujmxwj
http://www.mediafire.com/imageview.php?q...aivtnyjqqj

There is another idea that would work much better and for all objects, but may slow down the game:

A light may be given the parameter IL (Indirect Ligting). The IL number is an amount of dynamic lights that are generated for this light:

IL = 0 - no indirect lighting for this light object
IL = 1 - one ray is being casted (for spotlights) and a dynamic omni light is being placed where the ray hits (with energy being calculated upon the hit distance)
IL = 8 - eight rays and eight dynamic lights (each carry the 1/8 of energy) are casted
and so on.

For sun lights this would generate a grid of lights that are covering the whole map. Some system to reduce their number would be required (where no one is moving)

For omni lights that would make a spherical grid.
I'm making Liblast - a FOSS online FPS game made with Godot 4 and a 100% open-source toolchain
Reply

#2
Well the light that most ppl use and see in Darkpalces/Xonotic is pre-complied as lightmaps, so you will not be able to affect things like GI/IL in-game. When it comes to map compile-time you have access to full gi tough -bounce and -bouncegrid. You can scale the "bouncyness" on a per material bases rather then per light basis with a shader command (q3map_bounceScale), witch is a far better way then per light. the drawback is that -bounce does cost you map compile time, often allot of it.
Reply

#3
I think you misunderstood me. I don't want to recalculate lightmaps each frame! Smile
I just want to put around some dynamic lights to fake raltime global illumination! I wouldn't require any more compiling calculation for maps. Just some more for the game each frame: trace some rays, check hit points and put dynamic lights in proper places (without shadows). Just that!
It would be working over the map's static lighting not with it.

When I say 'dynamic' I mean the same type of light that is spawned on explosion, Nex hitting a wall and a jumppad being used.
I'm making Liblast - a FOSS online FPS game made with Godot 4 and a 100% open-source toolchain
Reply

#4
no i understood you, but since the lights are static compiled theres no point in making it "half real-time". its far better to let q3map2 handle it as light wont change in game anyhow.
Reply

#5
So what are the dynamic lights then? Stuff that makes whole corridor go white when I use the Electro Combo?
The only information this would need is the same that is used for "realtime world lighting".
I'm making Liblast - a FOSS online FPS game made with Godot 4 and a 100% open-source toolchain
Reply

#6
Basically your saying get the game to do an old-school, but rarely used technique that involves only showing light if they do something to make it (example pop a shot off), or walk into a spot that has light. Sounds neat if it's doable, I've seen it done in older N64 titles like Turok 2 and it looked amazing.
ECKZBAWKZ HUGE LIST OF ACHIEVEMENTS GOES HERE....


Oh wait.
Reply

#7
I think I can make it work in Blender Game Engine, but I don't know the game or engine code Tongue
I'm making Liblast - a FOSS online FPS game made with Godot 4 and a 100% open-source toolchain
Reply

#8
Well the dynamic / real-time light lights are eh rel-time, but they are already rather "expensive" adding another weight to em is not something to many ppl will use and thus not a high prio. So unless someone with ze relevant skills take an interest its unlikely to happen anytime soon.
Reply

#9
(05-03-2010, 10:14 AM)tZork Wrote: they are already rather "expensive"
I found the realtime shadows to be most expansive about them. Those lights faking IL would work without shadows. So maybe they won't be such a pain for the GPU
I'm making Liblast - a FOSS online FPS game made with Godot 4 and a 100% open-source toolchain
Reply

#10
It might be possible to do some sort of realtime global illumination on the GPU shaders - I imagine though that you'd need to use OpenGL3/4 for the pipeline to be flexible enough.
Reply

#11
(05-09-2010, 07:17 AM)top_cat Wrote: It might be possible to do some sort of realtime global illumination on the GPU shaders - I imagine though that you'd need to use OpenGL3/4 for the pipeline to be flexible enough.

Why?
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [SUGGESTION] Dynamic LOD unfa 3 4,839 10-12-2010, 07:01 PM
Last Post: Lee_Stricklin
  [SUGGESTION] Dynamic skill information marcus256 10 11,128 07-10-2010, 12:44 PM
Last Post: The mysterious Mr. 4m
  [SUGGESTION] global tips for xonotic game od@r 8 10,360 04-19-2010, 09:18 AM
Last Post: od@r

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-