Environmental lighting?

Talk about Valve games and mods.
Post Reply
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Environmental lighting?

Post by Gary »

Why does my environmental shadows suck so bad? Also isn't lightmaps static? So if I move a entity that casts lightmap shadows, when it moves the shadow won't?

My current shadows:
Image
There a way to fix this?


Also, thought for the future, a setting that would have the light_environment cast something besides lightmaps, such as dynamic light? And if someone just doesn't have the power to run something, we could also fix that:

Low would be light maps.

Med would be dynamic light but now quality.

High would be better then low quality dynamic, but not perfect.

Full would be high quality soft shadows.

Image
shiftey
npc_combinegunship
npc_combinegunship
Posts: 705
Joined: Thu Oct 09, 2008 4:45 pm
Contact:

Post by shiftey »

The lighting thing in the first picture is due to the way light is calculated. The value of the light is added to the texture. Change the orange texture to something like white or gray and you'll see it shows differently.

As for the light, dynamic light the way you are talking about it wouldn't work in the source engine. Source does not have good optimized code for its dynamic lights like other games.
User avatar
Shana
Lead Developer
Lead Developer
Posts: 2971
Joined: Tue Aug 29, 2006 8:12 pm
Location: Germany
Contact:

Post by Shana »

What Shiftey said. Fully dynamic environmental lighting and shadows in a sourceMOD? Very, VERY unlikely.

But who knows how much valve is gonna extend the source engine in the future.
User avatar
Tysn
Former Developer
Former Developer
Posts: 358
Joined: Thu Oct 26, 2006 1:57 am
Location: Minnesota, USA
Contact:

Post by Tysn »

Turn the lightmap scale on those brush faces down and set the sunspread angle to 5 in the light environment and it should look better.

Also, you might want to go off of this as a baseline for light_environment settings: http://developer.valvesoftware.com/wiki/Sky_List
Image
shiftey
npc_combinegunship
npc_combinegunship
Posts: 705
Joined: Thu Oct 09, 2008 4:45 pm
Contact:

Post by shiftey »

Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary »

Ah, thanks for the help with the map shadows.

Also, C17 is using dynamic lights instead of the old lightmap.
User avatar
Shana
Lead Developer
Lead Developer
Posts: 2971
Joined: Tue Aug 29, 2006 8:12 pm
Location: Germany
Contact:

Post by Shana »

Gjsdeath wrote:Also, C17 is using dynamic lights instead of the old lightmap.
Wrong, they still use lightmaps.
They use dynamic lights to some extend, but env lighting and most other static light sources are still using lightmaps.
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post by fug4life »

What thay said lol^
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
User avatar
Vasili
npc_helicopter
npc_helicopter
Posts: 901
Joined: Wed Aug 02, 2006 8:22 pm
Location: England

Post by Vasili »

BigFoot
prop_static
prop_static
Posts: 86
Joined: Thu Dec 03, 2009 11:57 pm

Post by BigFoot »

i once heard dev textures have another parameter that automatically turns down the lightmaps to lower quality?

but basically you should do what Tysn said and it will look better
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary »

Yes, I know what I need to do already. I am just not going to compile it like that until the pre-release build as it will take for ever.
Post Reply