Coder Social home page Coder Social logo

Comments (7)

gbiobob avatar gbiobob commented on August 29, 2024

Done, now I show object name on hover by default ;)
I just add two lines of code, already got a method to add text on object: HUD.addText(...)

from ed3d-galaxy-map.

konsumate avatar konsumate commented on August 29, 2024

Showing the names on-hover is good indeed, but I was also rather looking for a global option to set upon init to show/hide all system names by default in a certain range of the camera

from ed3d-galaxy-map.

gbiobob avatar gbiobob commented on August 29, 2024

ok I understand, I fear about performances for something like that,
actually there is only one single text object, I just move/change it according to mouse position.
As example on a map with all EDSM systems, if I show all systems names in a range around the camera, it will probably kill the app :) (huge system density).
I will try to made a test this evening, I could start with an option to show the 20-30 most close systems from the camera instead of using a range.

from ed3d-galaxy-map.

konsumate avatar konsumate commented on August 29, 2024

If you look at how Frontier circumvented the same problem in their galaxy map, you'll see that they have a bubble around the camera in which stuff is beeing display - if you leave that bubble, stuff gets flattened out.

Indeed the app is going to explode for databases such as EDSM - maybe stop displaying names/sprites at a certain distance X to the horizontal plane - routes on the other hand should still be visible from far outside.

from ed3d-galaxy-map.

AnthorNet avatar AnthorNet commented on August 29, 2024

The main concern is that the performance on WebGL aren't really the same as they are for a compiled application, doing the exact same things as they did in the game would be really performance killer

from ed3d-galaxy-map.

gbiobob avatar gbiobob commented on August 29, 2024

I just release a new option to show systems name near from camera, just set the "showNameNear" to true to test it ;) (I've add activate option in the demo_galnet.html)
At this time it's very experimental and should not kill the browser (not yet fully optimized),
it will show all names close to the camera with a limit of 50 systems to avoid issues on huge systems density. For performances I refresh names only every 1 second (less could cause lags).

from ed3d-galaxy-map.

gbiobob avatar gbiobob commented on August 29, 2024

As no feedback & work well on my side,
Close.

from ed3d-galaxy-map.

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.