Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Global Ambient Lighting  (Read 2009 times)

0 Members and 1 Guest are viewing this topic.

ErV

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 54
  • I regret nothing!
    • View Profile
Global Ambient Lighting
« on: October 19, 2006, 03:36:27 PM »

Hello.
Is there any way to set "Global Ambient" value? I mean - the amount(color) of ambient lighting for whole scene, not just for a single light. I've already tried to do a simple hack and call IDirect3DDevice8->SetRenderState(D3DRS_AMBIENT, 0xFFFFFFFF). This didn't work. It looks like there is no mention about ambient lighting in documentation. *.3ds files doesn't have "ambient-related" chunks either. In current scene setting up many point lights is not an option.
How problem can be solved?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5681
    • View Profile
    • Dead:Code Site
Re: Global Ambient Lighting
« Reply #1 on: October 19, 2006, 05:22:49 PM »

Perhaps the omni lights would do the trick?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

ErV

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 54
  • I regret nothing!
    • View Profile
Re: Global Ambient Lighting
« Reply #2 on: October 19, 2006, 09:41:13 PM »

Perhaps the omni lights would do the trick?
Omni light is a spot light with an infinite radius, isn't it? Having ambient lighting would be great, since in that case every object is lit equally from all directions. Lack of ambient lighting creates an absolutely black shadows, that exists nowhere in reality, and can be found (probably) only in space/galaxy/some place with no air.
To achive same effect with omni light, ill probably need four or eight of them.
Logged
 

Page created in 0.888 seconds with 23 queries.