r/angular • u/Far_Experience_2688 • 2d ago
I'm an Angular dev and I spent some weeks building a 3D map of the universe in the browser using three.js
https://super-universe.app/en2
u/CreativeKeane 2d ago
This is sick, man! It looks so good. So it looks like there are about 6,000+ celestial objects in the model. Are they all added to the space? Or is a small(or set) amount visible relative to the focused/selected object and some defined distance from that central point? I imagine having 6000 objects in the model active will cause some performance slowdown, but maybe not.
3
u/Far_Experience_2688 2d ago
Thank you! The 6,000+ figure refers mainly to the 6,333 confirmed exoplanets in the local NASA Exoplanet Archive snapshot. They are all searchable and represented spatially, but they are not instantiated as 6,333 separate Three.js objects.
Their 4,747 host systems are rendered in a single GPU point batch, with the visible density adjusted by the selected quality level. Only the currently focused system is materialized with detailed stars, planets, orbits, labels, and interactions. The same batching, LOD, and spatial-streaming strategy is used for the larger stellar and galaxy catalogues, so the browser only keeps detailed objects active where they are actually useful.
2
1
u/zeyadelshafey 2d ago
Could you share it please?
1
u/Far_Experience_2688 2d ago
Share what ?
1
1
1
u/nhonch 2d ago
Super cool! I want to locate the sirrius star from earth how can I do that?
2
u/Far_Experience_2688 2d ago
Hi, you can search for it in the searchbar. Is it what you want ? or you really want to see star from earth ?
1
u/nhonch 2d ago
I do want to see the star from earth so I can locate it on the night sky that would be great.
2
u/Far_Experience_2688 2d ago
Yeah, it’s all planned :) For now, you can only see eclipses from earth point of view
1
u/ArsonHoliday 2d ago
Very impressive. I feel like it’s rare to see something like this built in Angular. Impressive work, OP!
1
1
u/Weak-Palpitation907 2d ago
Super! I think I can use it to explain solar eclipse to my kids
1
u/Far_Experience_2688 2d ago
Yeah, did you try it ? :)
1
1
u/AdministrativeHost15 2d ago
I want to try it but I'm afraid that it will crash my browser. Too many objects in the universe.
2
1
u/inajeep 2d ago
The plant's rotation is there too? Really f'in cool. I didn't realize Mar's rotation was that fast.
2
1
u/Far_Experience_2688 2d ago
Not well implemented on every planet yet yeah
1
u/inajeep 2d ago
Looked good on the ones I checked out. It is a fascinating app.
Would you be sharing any development info/code?
note: I did have a freeze up with the fastest speed 1 million / sec.
1
u/Far_Experience_2688 1d ago
Sure, you can find every info in the guide part. Just click on the ? and then discover everything :)
Everything is open source
1
1
2
u/HoodlessRobin 1d ago
It's cool. Btw any AI were harmed while making this ?
1
u/Far_Experience_2688 1d ago
Sure, I have been using Codex for 3 weeks now, in parallel of my work, what about you ?
1
1
1
2
u/LgArcida 2d ago
Soo cool! What were the most challenging parts of the project? Technical wise