Jump to content
The Dark Mod Forums

About Ambient Light and Immersion


Filizitas

Recommended Posts

Hello,

Recently while doing some stuff with light i asked myself a questions:

For the sake of immersion, should dark caves with 0 light sources be pitchblack?

You can ask this question multiple games: We see Ambient light in Skyrim in nearly all caves/dungeons-
I cant remember a single moment in thief [1,2,3] where there was full darkness.
Amnesia has ambient light in only a few levels, the rest is completly dark.
Splinter cell uses full darkness in only a few spots.

What do we do here, TDM doesnt use full darkness either.

Can we talk about why we use ambient light?
And why cant dark caves not be fully dark?
Should we have a setting for ambient light?

Please tell me what your experiences are i cant decide on what looks/is better.

I like this light more: https://www.nexusmods.com/skyrim/mods/72594

  • Like 1

Can we have more scary Zombie Horror maps?

Link to comment
Share on other sites

Mappers can disable ambient locally, if they want. However, I am of the same oppinion as New Horizon.

That being said, you can disable ambient via r_skipAmbient 2. Please note that it also disables SSAO, as that effect only applies to ambient.

  • Like 1
Link to comment
Share on other sites

Well, Doom 3 had pitch black darkness to force people to use the flashlight. But it breaks people's eyes to strain them at the monitor so I'm against it. A little ambient light never hurts to know where you're going.

"I really perceive that vanity about which most men merely prate — the vanity of the human or temporal life. I live continually in a reverie of the future. I have no faith in human perfectibility. I think that human exertion will have no appreciable effect upon humanity. Man is now only more active — not more happy — nor more wise, than he was 6000 years ago. The result will never vary — and to suppose that it will, is to suppose that the foregone man has lived in vain — that the foregone time is but the rudiment of the future — that the myriads who have perished have not been upon equal footing with ourselves — nor are we with our posterity. I cannot agree to lose sight of man the individual, in man the mass."...

- 2 July 1844 letter to James Russell Lowell from Edgar Allan Poe.

badge?user=andarson

Link to comment
Share on other sites

1 hour ago, Anderson said:

Well, Doom 3 had pitch black darkness to force people to use the flashlight. But it breaks people's eyes to strain them at the monitor so I'm against it. A little ambient light never hurts to know where you're going.

I think idsoftware also made pitch black shadows for performance reasons and not only to force people to use the flashlight but I agree, ambient light should always be present, pitch black scenes IMO artistically just look bad and like you said they just strain the eyes more, imagine traveling on a all pitch black level, where the only thing you saw was within the radius of your flashlight cone, in real life light bounces around, so a single flashlight or candle can light a entire room, but in games especially those using real time per-pixel lighting like idtech 4, you will just see a circle of light surrounded by pitch black.

Edited by HMart
  • Like 2
Link to comment
Share on other sites

One of the mysteries of Doom 3's development is the shadowDraw keyword. In D3 it exists in shaderdemos/shadowDrawLight in shaderDemo.mtr but the code to recognise it seems to have been stripped out at some point.

shaderdemos/shadowDrawLight {
	// this would default the same if not specified
	lightFalloffImage	makeintensity( lights/squarelight1a.tga )

	{
	// this stage will be drawn normally
		map lights/squarelight1.tga
		colored
		zeroClamp
	}

	{
	// this stage will be drawn on the shadows, still modulated by the lightFalloffImage
		shadowDraw
		map		lights/squarelight1.tga
		rgb		0.5
		blend	GL_ZERO, GL_ONE_MINUS_SRC_COLOR

	}
}

The leaked Doom 3 E3 demo comes with a variant of this material and will accept the keyword, but doesn't do anything with it that my eyes could discover. My guess is that id was experimenting with it as a way of reducing the black shadow effect on some lights.

I've only played through D3BFG, which apparently brightened some scenes, and when I played the leaked E3 demo I was struck by how oppressive its darkness was atmospherically. There is no flashlight in the demo; instead you can spawn light grenades from the console that work similarly to T2's flares. Constantine would have approved.

Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

Link to comment
Share on other sites

4 hours ago, Filizitas said:

I originally threw that idea out of the window, but now that you/sotha show me this.
I mean if that is ok?

Lets see what the others say

That trick is used in many AAA games so is something the pros also do.

Btw the problem with Sotha script is that when the player gets low the light doesn't follow the character, so it will stay higher than the player in that case: 

Perhaps something like this is better, but have not tested it. 

player_light_system {
	vector player_view_origin_bone_pos = '0 0 0';
	float player_view_origin_bone_handle = 0;
	vector eyesOffset = '0 0 15'; //tweek eye pos value has nedded

	player_view_origin_bone_handle = $player1.getJointHandle( "origin" );

	eachFrame {
        player_view_origin_bone_pos = $player1.getJointPos(player_view_origin_bone_handle);
        if( player_view_origin_bone_pos ){
        	$playerLight.setOrigin(player_view_origin_bone_pos + eyesOffset); 
        }
	}
}

 

Edited by HMart
Link to comment
Share on other sites

51 minutes ago, STRUNK said:

In my turret script I use getEyePos https://forums.thedarkmod.com/index.php?/topic/19601-the-trap-workshop/

 


vector head = $player1.getEyePos();			//Defines that vector (3 numbers) "head" wil be the position of the eyes of the player.

 

 

 

Yes that is certainly better, the script code I suggested was because I don't work with TDM, so when suggesting script code, I use Doom 3 original script functions, in that way I'm more or less sure every idtech 4 based engine supports those original functions in some capacity, in the case of that particular script function, original Doom 3 has no such thing, it exists in c++ but was not exposed to the script code for some reason but is a easy fix.  

Link to comment
Share on other sites

The ai_see spawnarg for lights allows mappers to attach a light to the player without affecting the lightgem.

I don't recall seeing mention of that in the video.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

9 minutes ago, nbohr1more said:

The ai_see spawnarg for lights allows mappers to attach a light to the player without affecting the lightgem.

I don't recall seeing mention of that in the video.

Ho yes that is definitely important such light should not affect the lightgem at all. 

Edited by HMart
Link to comment
Share on other sites

3 minutes ago, Filizitas said:

Can we go back to the original questions!

Can we talk about why we use ambient light?
And why cant dark caves not be fully dark?
Should we have a setting for ambient light?



1.  We use ambient light because it's not fun or entertaining to stare at a black monitor.
2.  They can be.
3.  We do.

  • Like 1
Link to comment
Share on other sites

To slightly expand on Springheel's (entirely correct) answers:

We have ambient light in dark areas because the object of this game is to hide in shadows, which means it is not feasible for the player to have to rely on a light source like the D3 flashlight. Although the Dark Mod player does have a hooded lantern, if you take this out you become extremely visible to all AI, so you can only use it when you are alone. While there are games which avoid ambient light and make caves completely dark, these are not typically stealth games in which the player needs to avoid emitting any kind of light.

If Dark Mod missions were completely dark, then you'd either be looking at a completely black monitor (as Springheel says), which would be pointless and entirely un-fun, or you'd have to carry around a light source and alert every enemy you see, which defeats the object of a stealth game and turns it into a (clunky and hopeless imbalanced) hack-and-slash adventure.

  • Like 3
Link to comment
Share on other sites

27 minutes ago, Filizitas said:

Can we go back to the original questions!

Can we talk about why we use ambient light?
And why cant dark caves not be fully dark?
Should we have a setting for ambient light?

Calm my young padawan. We are trying to help you. 

 

Now others and me already said why ambient lights are preferable than no light. 

Caves in TDM can be has dark has you want then to be, you decide but know that the main complaint that people add about Doom 3, was that it was pitch black.

If you bring a light into a cave in real life they light up fine, why because they are closed spaces where light can bounce around very well. TDM light system has no bouncing light, so if you bring a flashlight into a unlighted cave then in TDM the cave will be pitch black minus the place the flashlight cone shines.   

case in point:

 

Edited by HMart
  • Like 1
Link to comment
Share on other sites

On 3/29/2020 at 5:49 PM, HMart said:

Btw the problem with Sotha script is that when the player gets low the light doesn't follow the character, so it will stay higher than the player in that case:

Isn't it possible to actually bind the light source to the eye or head of the player's body - like it is done for a purse that is bound to the belt of an AI?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 4 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...