Code Monkey home page Code Monkey logo

Comments (3)

judnich avatar judnich commented on September 16, 2024

Thanks! I completely agree and in fact had originally planned to implement realistic atmospheric scattering. Unfortunately though since I rewrote it in HTML5 fairly close to my school's project deadline at the time, I didn't have enough time to implement atmospheres in the web version.

It's definitely on my todo list, so it mainly comes down to how I can allocate my spare time projects. For example, I plan for the next version of Kosmos to be written in cross-platform native C++ (for better performance and reliability) -- so although I could add atmospheres to the web version of Kosmos, it might take away some development time from other such projects.

from kosmos.

fjcaetano avatar fjcaetano commented on September 16, 2024

Nice to hear that you'll keep improving it.

I understand your decision of rewriting it in C++, but it's sad that it has to be so. I think it would be awesome if it could be completely web, without any downloads or installations.

Anyways, congrats once again for the project. I'll keep myself updated.

from kosmos.

judnich avatar judnich commented on September 16, 2024

I agree it's kind of sad to move away from a web implementation, because web apps are so much more easily accessible than full native apps. If both approaches yielded equal quality results, I'd definitely prefer web.

For a variety of reasons though specific to the complexity of some of the 3D algorithms, it just isn't possible right now to make a web implementation whose visual quality matches a native implementation. It is definitely possible to make something, but if it's only 50% the visual quality I could otherwise get out of a machine with native, web becomes a rather difficult choice to justify (in this very specific case).

This quality difference is both because native code is much faster at memory manipulation and math (very important for some rendering algorithms dealing with large worlds), and because of the many compatibility issues I encountered with WebGL (which aside from being a huge hassle to work around, require work-arounds that further slow down performance significantly vs native OpenGL). Performance is important because more performance allows more visual details within a given frame time deadline.

In the future it's possible that WebGL and JavaScript will catch up -- likely, even. Combined with the existence of tools that can compile C++ to JavaScript makes an encouraging outlook. So at least it's safe to say that if in the future WebGL does catch up, I should be able to port whatever I have to web fairly straightforwardly.

from kosmos.

Related Issues (3)

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.