Dynamic environment lighting

Plugins + Scripts Dynamic environment lighting

Download [<1 MB]
  • ambient light placement is improved in outdoor and indoor settings
  • key light angle adapts to location in respect to target, getting wider when closer. They also spawn higher now and angle towards the target, mimicking real lighting more realistically.
  • rig detects ceiling and floor better for much better and more consistent light placement
  • light output (luminance and intensity) now adapts better to the room. You will see more color now, and you can adjust with the saturation slider (although the default is pretty accurate already)
  • changed shadow bias on keylights, default was too high (you can still set it yourself if you want with SpotShadowBias slider)
  • fully excluded person atoms (was missing colliders before) from hit detection which speeds up light calculation

I think that's all I can think of for now. NOTE: the light placement depends on colliders in the environment. Walls w/out colliders can't be found. Like some rooms, the ceiling doesn't have a collider, so the ambient light will spawn above, which kinda isn't a big deal (cause light will still make it through), but it can happen. If this is a problem, place a collider in the position of the ceiling (like a box or something).

Enjoy!
- Reworked how ambient light brightness is calculated so it's not so bright in some scenes.

Plans for next update:
- going to attempt some more dynamic intensity for key lights instead of fixed. It will be subtle with the goal of added realism
  • Ambient light is brighter and now adapts to how bright the environment is
  • Ambient light no longer occasionally jumps to an odd position
  • Brightness slider no longer affects the ambient light, preventing blown-out scenes
- You can now set spot shadow bias in the UI with a slider
- Default spot shadow bias is now .004 instead of the default .002 which produced shadow artifacts
- You can set intensity and saturation in the UI w/out the lights recalculating! Much easier now to get the look you like

Enjoy!
- Fixed an issue where the plugin could stop responding to scene changes after being disabled and re-enabled
- other minor code cleanup
prevent camera recreation if already created
- fix trying to set wrong parameter name (shadowBias -> pointBias) that was putting entries into VaM output_log.txt). This wasn't causing any issue but it's worth cleaning up. Thanks to grendel69 for finding it 👍
- added ability to freeze the rig in place, useful for small rooms where you don't want the light rig to follow or update
- updated so rig will do a full recalculation on scene load
- new 3-light mode that may improve performance or give a preferred look
- Improved color sampling
- VR performance improvement, sampling camera no longer runs through the VR stereo pipeline

Future plans:
- lock rig in place and don't recalculate: this will be useful for maybe like small rooms where you move the character but don't really want the light recalculating
- follow target: this is useful for mocaps where the person control stays in place, but the body moves around, allow the light to follow but do not update
- Changed some calculations for the ambient light.
- Fixed several bugs, one of which wasn't detecting new person atoms added to the scene
- you can now uncheck and recheck the plug-in to recalibrate instead of reloading (still calculates automatically though on person atom moving)

You will have to re-add this to your scenes as the path inside the VAR changed.
Back
Top Bottom