Jump to content


Photo

Ambient Lighting


  • Please log in to reply
3 replies to this topic

#1 Newly Discovered

Newly Discovered

    Harmonious Genius

  • New Member
  • 2467 posts
  • Version:GM8

Posted 23 May 2010 - 12:40 AM

D3D AMBIENT LIGHTING
Utilizing SurfaceFix by amd42.

I've never really seen a great ambient lighting effect in GM that didn't require several lights in every corner of the room.
Here we create ambient lighting by rendering a "lighted" map and drawing it to the screen with an alpha value.
Now you don't need several lights to brighten the entire room, only the lights you want and a global ambiance.
Includes colored lights as well!

Screenshot.
Posted Image
Try it with a single light in the corner of the room and lower the ambiance!

Download.
http://host-a.net/Jo...entLighting.zip

p.s.
If current blend modes do not work with your video card (does not look like the screenshot - colors are random)
Please post working blend modes here along with your video card specs. Thanks!

Edited by Newly Discovered, 31 May 2010 - 08:29 PM.

  • 1

#2 Phantom107

Phantom107

    Engineer

  • GMC Member
  • 2600 posts
  • Version:GM:Studio

Posted 23 May 2010 - 09:41 AM

Looks pretty good. :)
  • 0

#3 link3000

link3000

    Link3000

  • GMC Member
  • 1129 posts
  • Version:GM8

Posted 16 October 2010 - 03:53 PM

Looks nice and smooth (other than the box texture being 120/120) but is it really more efficient to render the scene twice to avoid using multiple lights?
  • 0

#4 Newly Discovered

Newly Discovered

    Harmonious Genius

  • New Member
  • 2467 posts
  • Version:GM8

Posted 17 October 2010 - 10:44 PM

probably not. this isn't an example of how to make efficient ambient lighting, just to make it.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users