About Store Forum Documentation Contact



Post Reply 
Trying to create night environment but it looks so wrong
Author Message
tipforeveryone Offline
Bronze Supporter

Post: #1
Trying to create night environment but it looks so wrong
At daylight setting for environment, everything goes well. But when I try to create a night environment. I realized problem of material render without light

I turn off Sun and Ambient in Environment setting. Expect getting a pit black map because there is no light at all, but look at all material, they are shining

[Image: 036f93fec821c57c8ce315c525a48a4c.png]

It is worse if material has high Smoothness and Refectivity value. setting both of them to 0 does not help. Reducing Normal value can make material look much "dark" but it affects material quality on "day light".

After reduce all above 3 values to 0, the ground material still look shiny at far range.
Anyway, I cant reduce every material because it make my game's material broken

[Image: 88da78c8cd05d0dfd8c15d8a07d205fc.png]
[Image: d15597aa05711252bec4419abed0bdb3.png]

How can I create a real night ? how to solve the shiny material problem
btw, why does the cloud look so ugly, and many partical effect is broken at night time
(This post was last modified: 12-05-2021 10:00 AM by tipforeveryone.)
12-05-2021 09:44 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Trying to create night environment but it looks so wrong
For shininess, adjust D.envColor(..); based on time of day (based on amount of ambient light)
For cloud gradients, try the following: D.litColRTPrecision(IMAGE_PRECISION_16);
12-05-2021 01:05 PM
Find all posts by this user Quote this message in a reply
tipforeveryone Offline
Bronze Supporter

Post: #3
RE: Trying to create night environment but it looks so wrong
Thanks for quickreply, Those code solved problem of shininess and cloud, but how about particles grin, they use the same texture as cloud but litColRTPrecision does not work

https://streamable.com/nofl4f
12-05-2021 01:50 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Trying to create night environment but it looks so wrong
First you can try disabling texture compression on your particle image.
If won't help, please attach here sample esenthel project with particle image and particle object params included.
12-06-2021 04:23 AM
Find all posts by this user Quote this message in a reply
tipforeveryone Offline
Bronze Supporter

Post: #5
RE: Trying to create night environment but it looks so wrong
Here you are,
Switching compression to "Full" does not help

.zip  smoke problem sample.zip (Size: 71.19 KB / Downloads: 2)

btw, I want smoke not so bright at night too grin how can I do that
(This post was last modified: 12-06-2021 05:05 AM by tipforeveryone.)
12-06-2021 05:03 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Trying to create night environment but it looks so wrong
Please update engine source : https://github.com/Esenthel/EsenthelEngi...cd50dd5edb
and in your game enable:
D.highPrecPalRT(true);

You will still have some small banding, it's because your texture alpha channel has only 0-11 range (out of 0-255 possible).

You can also convert your particle from palette mode to blend mode, it will be slightly faster.

As for brightness: particles are unaffected by lighting, so you'd have to manually modify Particles object color parameters.
12-07-2021 11:26 AM
Find all posts by this user Quote this message in a reply
Post Reply