• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.
Dynamic environment lighting

Plugins + Scripts Dynamic environment lighting

Download [<1 MB]
The most realistic lighting I think you can get in VaM, automatically. The goal of this plug-in from the start is to light the people in the room as if the light is really coming from the room. That means it takes on the characteristics of the room itself, like real light would. And doing all this automatically without you having to tweak or move a single light.

We all want to play VaM, not spend hours tweaking it! That's what my plug-ins try to do, allow you to enjoy the game w/out f'ing around with a billion settings 🤣

How it works:

- Samples the actual live scene color from each light's position, so your lights inherit the real colors of the world around your character
- Raycasts in every direction to map the room geometry, placing lights at optimal distances and heights without clipping through walls or furniture
- Continuously watches your character's position and recalculates the entire rig when they move
- Exposes brightness and saturation controls if you want to tweak, though the defaults are tuned to be as physically accurate as possible

To use:
- load as a scene plug-in
- Keep existing lights in scene or remove all and just use this
- Don't worry about configuring light anymore!

This plug-in simulates real ray traced lighting, by sampling the real environment instead of guessing

Ray tracing:
- shoots rays into the scene
- reads surface color, brightness, and direction
- uses that to compute lighting
- produces color‑accurate lighting
- environment‑aware illumination
- directionally correct light contribution

This plug-in:
- shoots raycasts into the scene
- reads surface color and brightness
- uses that to compute light color and intensity
- produces color‑accurate lights based on sampled surfaces
- intensity based on environment brightness
- directionally meaningful light placement (key/fill/rim based on sampling)

It's gathering real scene data, not relying on arbitrary presets, exactly like ray traced lighting.

This is the same goal as ray tracing: make the character look like they belong in the environment.





Notes on the video: it is showing that when the room changes, the lighting will also change by adapting to the new colors and intensity of the room (Paris Room 4 not on the Hub unfortunately). The buttons I click switch between the different versions of the room assets, at the same time it calls the recalculate on the lighting so the lighting updates to the new room (environment). The point is the light adapts to the room as you can see here!

Share this resource

Latest updates

  1. small bug fix

    prevent camera recreation if already created
  2. minor bug fix and one feature

    - fix trying to set wrong parameter name (shadowBias -> pointBias) that was putting entries into...
  3. New features and bug fixes

    - new 3-light mode that may improve performance or give a preferred look - Improved color...

Latest reviews

Positive
Version: 6
Posted:
Yo! This is a great pluggin, I love it!

I do have a suggestion: Could it be possible to add a setting in the plugin to adjust all the light's shadow resolution? Thank you!
D
dafalconer
thanks for the review! I will respond to your suggestion in the discussion area.
Upvote 0
Positive
Version: v5
Posted:
Creates great lights that gives depth to the charachters. Brightenss adjusments are a little hard though, it's always a little to bright or a little to dark.
D
dafalconer
you can adjust by 0.01, so I can't replicate what you're saying. Do you have it in an already very bright environment? The lighting system samples from the surrounding environment to determine how bright it is.
Upvote 0
Positive
Version: 2
Posted:
Great plugin and allows me to jump into a scene and move around without having to reposition lights. Does indeed look realistic but what I am most surprised about is it does not tank my FPS. With using normal light I could use 2 or 3 max before my fps would drop noticeably. With this plugin I have my light count set to max and the scene is still playable and immersive.
D
dafalconer
Thanks, and glad it's not tanking FPS. I was wondering how others systems would respond to five lights.

I still want to work on the option to disable one spot and the ambient though.

Thanks for the review!
Upvote 0
Positive
PVP
Version: 2
Posted:
Quick and good light source. Better naming your file to match the title or vice versa?
D
dafalconer
lol yeah, kinda decided to put "Dynamic" in the name to make it sound more exciting. Thanks for the review!
Upvote 0
Positive
Version: 1.0
Posted:
Very easy and convenient from the get go. Sometimes, lights clip through the 2nd person, so I would love to be able to center them around multiple people.
But I love it.
D
dafalconer
the new version prevents that! Just waiting for it to get approved.

Thanks for the review!
Upvote 0
Back
Top Bottom