Aller au contenu

Photo

Modifying Layout Sunlight -> Color Multiplier via script


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Kilrogg_

Kilrogg_
  • Members
  • 296 messages
Is this possible? Here is the setting I'm talking about:

Image IPB

I was able to modify atmosphere and cloud settings in-game via SetAtmosphericConditionsCustom(), but I can't find any function in core_h for the Color Multiplier of the sunlight. To clarify this is the sunlight that hits the ground, not the sunlight that lights up the skybox.

It changes in real time in the level editor and I'd like to use it to simulate lightning flashes (it looks perfect when set to high intensity and white color).

Thanks!

#2
Craig Graff

Craig Graff
  • Members
  • 608 messages
Unfortunately, I believe that value is baked into the area lighting (or at least not accessible by script). Instead, you could try increasing Earth Reflectance and setting new values for the da_HSVMatrix frame buffer effect (using FB_SetEffectResource and FB_SetEffectEnabled). Cranking up the brightness and lowering the contrast will likely give you the effect you are looking for. For good measure throw in some increased GlowIntensity from da_bloom. You could even try ending with a brief negative Saturation in the da_HSVMatrix for a photo negative effect.

#3
tmp7704

tmp7704
  • Members
  • 11 156 messages

Craig Graff wrote...

Cranking up the brightness and lowering the contrast will likely give you the effect you are looking for.

Might work better to increase the contrast actually, together with ramping up the brightness? The lighting flash seems to be commonly portrayed with just black/white image, the sort produced by running Threshold filter with low value, to indicate sharp shadows produced by the bright light source. Lowering the contrast sort of gives the opposite effect, by softening everything towards uniform grey...

#4
Craig Graff

Craig Graff
  • Members
  • 608 messages
Yup, the basic idea is just to play with the values until you get something that looks right. There are enough parameters to play with that you can achieve what you want with a number of combinations.