GithubHelp home page GithubHelp logo

Comments (4)

zglueck avatar zglueck commented on May 16, 2024

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.

pdavidc avatar pdavidc commented on May 16, 2024

@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.

pdavidc avatar pdavidc commented on May 16, 2024

@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.

zglueck avatar zglueck commented on May 16, 2024

@pdavidc @AkeluX I've got the changes pushed, I'm working on the pull request. Should be available shortly.

from webworldwind.

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.