Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Ambiance of 100 looks like ambiance of 0

Author
Message
Qqite
16
Years of Service
User Offline
Joined: 28th Feb 2010
Location: Florida, U.S.
Posted: 16th Jun 2011 09:00
I have imported a level from FPSC and heres my problem:
The light mapping must be backwards because if I set the ambient lighting to 100 I get what I would see in FPSC with ambient lighting of 0.
With setting ambient lighting to 0, the lighted parts of the room get dark but is still visible.
WHA?!!?

I have also tried lights and they only seem to try to light up the already light parts, not the darker parts.

Seems my textures are painting black, not color.

Ambiance at 100:
-Level is lighted brightly where lights are and PITCH BLACK where there are no lights.

Ambiance as 0:
`Level is barely visible around lights and still PITCH BLACK where there are no lights.

Does anything know how to fix this/work around this?

Ventures of the worlds around us are limited only by our imagination.
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 16th Jun 2011 11:15
The scene is lightmapped though - so the chances are that the lightmapping is not affected by ambience. The lightmap texture will be applied with a mode that probably ignores ambience - because it's a lightmap - ambience should be taken into account with that.

Ambience at 0 means no ambient light - everything will be dark, or pure black - there is no indirect lighting anywhere.

Ambience at 100 means the ambient light is at maximum, so all models might be fully lit - but the lightmap still take over lighting, so your setting the scene to be fully lightmapped, or rather giving the objects 100% lighting.

Health, Ammo, and bacon and eggs!
Qqite
16
Years of Service
User Offline
Joined: 28th Feb 2010
Location: Florida, U.S.
Posted: 16th Jun 2011 20:49
Thanks but how do I work around this?

Ventures of the worlds around us are limited only by our imagination.
Uncle Sam
20
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 18th Jun 2011 08:01
If you are using dynamic lights in your game, you might not want to use light mapping (depending on how you are using it). If it is something like a flare from a gun during the day then keeping the lightmap would be fine. But if it's a darker map, and you intend to have a lot of dynamic lighting, having a lightmap may actually ruin the effect or cause the problems you are having.

That said, how are you applying the lightmap? Are you loading a level object and then also loading a lightmap level object and putting it on top (that's how Mapscape lightmapping works). If so, you're probably setting that lightmap object's ambience mode off.

Login to post a reply

Server time is: 2026-07-10 14:05:17
Your offset time is: 2026-07-10 14:05:17