Source SDK

Source SDK

Zarginnia Nov 19, 2017 @ 7:10am
light_enviroment and light_directional
So i just started to build a map in the L4D2 Authoring Tools, and im really fresh with SDK.
So i made a big cube with walls, floor and roof and started to build inside then i added a skybox to the roof and walls and added light_enviroment and light_directional and i have HDR checked and i compile in normal. I have watched some tutorials and i have googled to get a better understanding about the SDK but i cant find the solution, so im asking here.

And now comes my problems:

1. when i add vehicles they get chrome colored.

2. the map shifts from semi dark to light to daylight when looking around and when i looking down on the ground its like a sunny day (and thats what im after regarding the light on the map)

3. do i really need to check HDR if im gonna do a sunny day map?
Last edited by Zarginnia; Nov 19, 2017 @ 7:14am
< >
Showing 1-10 of 10 comments
Zarginnia Nov 19, 2017 @ 7:22am 
Light_Enviorment properties im using right now is
Pitch Yawn Roll -45 0 0
Pitch -45
Brightness 255 255 255 500
Ambient 255 255 255 100
BrightnessHDR -1 -1 -1 1
BrightnessScaleHDR 0.5
AmbientHDR -1 -1 -1 1
AmbientScaleHDR 0,5
SunSpreadAngle 0
Zarginnia Nov 19, 2017 @ 7:25am 
When i tried to add a Light_Directional i had these in the properties

Pitch Yawn Roll -45 0 0
Pitch -45
Brightness 255 255 255 200
BrightnessHDR -1 -1 -1 1
BrightnessScaleHDR 0.5
SunSpreadAngle 0

And i still hade the exact same problems as without it.
Last edited by Zarginnia; Nov 19, 2017 @ 7:26am
Zarginnia Nov 19, 2017 @ 7:58am 
when i didnt use HDR i notice that some textures where black but the vehicles had the right textures and no chrome tho it looked kinda bleak and dull without HDR.
Zarginnia Nov 19, 2017 @ 8:07am 
tried to add -StaticPropLighting but didnt help, also ran different compiles and non worked still chrome cars.
Wazanator Nov 19, 2017 @ 8:10am 
Can you provide a screenshot? Also run your compile log through this error checker http://www.interlopers.net/errors/
Zarginnia Nov 19, 2017 @ 8:15am 
checked my compile through the website you linked and got no errors at all.
Rectus Nov 19, 2017 @ 8:31am 
The chromed vehicles come from the default cubemaps, you need to place env_cubemaps and build them from in-game. Rememeber to restart the game to see the results.
https://developer.valvesoftware.com/wiki/Cubemaps

The HDR autoexposure system tries to keep the image at a ceratin brightness, so if you look at something that's really bright, it will adjust it down. If it adjusts it to be brighter, you might have something really bright in the normal scene, although those values look pretty normal (with HDR values set to 0.5). You can use the inputs on the env_tonemap_controller entity to adjust the autoexposure settings.
https://developer.valvesoftware.com/wiki/Env_tonemap_controller

A screenshot might be a good idea.

L4D2 doesn't really support LDR, so it's best to desingn the map with HDR in mind, you can even disable the LDR compilation completelty from VRAD to get a faster compile and lower file size using the -hdr paramter.
Last edited by Rectus; Nov 19, 2017 @ 8:31am
Zarginnia Nov 19, 2017 @ 9:25am 
Sweet, will take a look at it soon, 40h in the hammer tool and almost nothing done... well it takes time.
Wazanator Nov 19, 2017 @ 9:52am 
Don't worry it takes a lot of time to get the hang of it!
Zarginnia Nov 19, 2017 @ 10:26am 
The Cubemap did the trick, thanks a lot! and now for the rest...

saw that something could get corrupted if something bad happend to the tonemap so i think i dont want to mess with it. guess i will just have to tweak the enviormental and directional light.
Last edited by Zarginnia; Nov 19, 2017 @ 10:42am
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: Nov 19, 2017 @ 7:10am
Posts: 10