Comments (4)
I agree with @AkeluX assessment, utilizing the time property when available is logical and can be done in a way which still allows the explicit position definition using the lightLocation property. The inconsistency between light position definition is highlighted in the Starfield.js example. The StarfieldLayer and AtmosphereLayer are both environment layers and a common property interface (not necessarily inheritance based) makes sense.
I've implemented an initial approach in the branch: feature/#100-atmosphere-time for discussion and review.
from webworldwind.
@AkeluX and @zglueck we're in agreement that the time property will be the primary mechanism for defining the sun location for both AtmosphereLayer and StarFieldLayer. Also, @zglueck has shown that the changes are straightforward to implement.
That said, I have a reservation about lightLocation and I think we ought to remove it. It exists as a stopgap measure before automatic sun location was available. Although I can easily imagine the use case @AkeluX describes, there isn't a real need for this capability that I'm aware of. The complexity introduced by the interaction between time and lightLocation then seems more trouble than benefit.
Should a real use case arise, my experience has been that it's almost always slightly different than we imagined. By leaving this interface in now, we may find our options unnecessarily limited in the future.
from webworldwind.
@zglueck I've discussed this with @AkeluX. We will remove lightLocation, with the expectation to reintroduce it, or something like it, should a real use case come up.
from webworldwind.
@pdavidc @AkeluX I've got the changes pushed, I'm working on the pull request. Should be available shortly.
from webworldwind.
Related Issues (20)
- Strange behavior for polygon surface on the globe when longitude is larger than 180 degree HOT 1
- WMTS Tile Flicker
- Misleading naming in GeoTiffReader.js HOT 1
- Poor error messages in proj4-src.js HOT 2
- kmlSubstyle balloonStyle display support for kmlFile layer placemarks HOT 9
- KML LabelStyle tag with scale 0 does not impact label.
- Placemarks not showing below surface
- Load potree point cloud in world wind web.
- Hosted library files missing for 0.10.0 release HOT 1
- Documentation examples reference outdated 0.9.0 worldwind.min.js version HOT 1
- Standalone example out of date HOT 1
- Error downloading map data SEVERE: Error attempting to retrieve https://worldwind22.arc.nasa.gov/geoserver HOT 1
- SurfaceShape picking is unpredictable HOT 2
- Free camera navigation is missing
- Investigate changing our headless browser toolchain for Selenium
- npm module does not work with webpack HOT 4
- Complete 0.11.0 release process
- Not all shape files supported?
- Get Started Documentation References Wrong WMS Address HOT 1
- Are there any plans for integration of GLTFLoader?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webworldwind.