Coder Social home page Coder Social logo

Add ambient light at nighttime about cesium-unreal HOT 5 OPEN

j9liu avatar j9liu commented on June 11, 2024 2
Add ambient light at nighttime

from cesium-unreal.

Comments (5)

magiclamb avatar magiclamb commented on June 11, 2024 1

Completely agree with Janine. A nighttime ambient mode would be incredibly useful. Since for usability in unreal in a real-time setting we've had to either turn off the day cycle (which is a very useful feature) or be left with not being able to access the dark side of the earth.
So an ambient light during night time that resembles a moonlit sky would be fantastic!
And Janine's suggestion for having variables in control of the light level and other relevant details for the night mode would also be great.
We're putting in a demo application that we've worked on for 4 months for work in 2 weeks for the deadline and if we get approved we'll have the green light to keep working on it and releasing a game that has cesium as a core system. It would be awesome if at least a first version of this was put out soon so we could showcase it (being optimistic haha)!
Also thanks for the effort you guys have put in, we've been impressed consistently by the features built in 🍻

from cesium-unreal.

csciguy8 avatar csciguy8 commented on June 11, 2024

+1 for this.

I encountered this problem when creating scenes from C++ code (performance tests). For locations very far from me (like Japan), the scene started out as completely black. I changed the time zone to fix it. Although looking back, I probably should have just set the time, and ideally the time zone would get set automatically based on where I am.

Regardless, having some ambient lighting in this case would have been less disorienting.

Also, not sure if the SkyLight would help us here, but here's a related issue,
#1173

from cesium-unreal.

gianni35011 avatar gianni35011 commented on June 11, 2024

I completely agree, The pitch-black night-side rendering causes a lot of unnecessary concern. Some basic ambient lighting, even if not strictly physically accurate, would be a huge win.

A built-in option with adjustable brightness would be the ideal solution in my opinion.

from cesium-unreal.

r-veenstra avatar r-veenstra commented on June 11, 2024
  1. Would it make sense to automatically update the time zone of a Cesium Sun Sky based on lat/lon changes? Seems like this may reduce the scenarios where users enter a new lat/lon and find themselves in the dark?

  2. This is a common problem not just with Cesium, but also the base Unreal SunSky. One potential solution I found:

Add a second directional light to represent the moon, or in our case it could just be generic light from above

  • Set the Intesity to something low. I used 5000 lux.

  • Set the Light Color to a blueish tint. I used (B=255,G=181,R=164,A=255)

  • Set the lights Atmosphere Sun Light Index to 1, this way it contributes to the Sky Atmosphere (giving us a nice dull blue night sky). This also ensures this night light will be calculated in the SkyLight used for indirect lighting, contribute to fog, etc.

  • Set Atmosphere Sun Disk Color Scale to 0,0,0,0, otherwise you'll get a second sun rendering in the sky at night

This is the result from my very quick test

image

Disclaimer that this was a 5 minute test and is no way meant to represent a physically based accurate setup. Better configurations may be found in threads such as this one.

from cesium-unreal.

kring avatar kring commented on June 11, 2024

Would it make sense to automatically update the time zone of a Cesium Sun Sky based on lat/lon changes?

I think so! We have an issue for it:
#1258

This is the result from my very quick test

Nice!

from cesium-unreal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.