DEV Community

Cover image for Solar system with Three.js

Solar system with Three.js

Mykhailo Toporkov πŸ‡ΊπŸ‡¦ on August 22, 2024

Hi! Today, I’m going to build a solar system using Three.js. But before we begin, you should know that the inspiration for this article came from a...
Collapse
Β 
srbhr profile image
πš‚πšŠπšžπš›πšŠπš‹πš‘ πšπšŠπš’ β€’

Wow, it's a great way to get started with Three Js. Another addition would be if you could explain some functions, how you're using them and the matrix multiplications.

Great work!

Collapse
Β 
cookiemonsterdev profile image
Mykhailo Toporkov πŸ‡ΊπŸ‡¦ β€’

Thx! Next time definitely will do!

Collapse
Β 
srbhr profile image
πš‚πšŠπšžπš›πšŠπš‹πš‘ πšπšŠπš’ β€’

Sure, I'll be looking forward to it. ^^

Collapse
Β 
rk_gnanesh profile image
rk gnanesh β€’

Try setting the pixel ratio, it will increase the quality of the rendering.

renderer.setPixelRatio(window.devicePixelRatio);

Collapse
Β 
cookiemonsterdev profile image
Mykhailo Toporkov πŸ‡ΊπŸ‡¦ β€’

Good catch! Though the simplest way to improve quality of the rendering is to pass antialias: true in render that will smooth out jagged edges. Updated for both, thx!

Collapse
Β 
tqbit profile image
tq-bit β€’

Love how the motivation is a con against a flat earther.
Sir this project is awesome, great job

Collapse
Β 
ben profile image
Ben Halpern β€’

Wow

Collapse
Β 
tojacob profile image
Jacob Samuel G. β€’

And the moon? :(

Collapse
Β 
jnp95 profile image
Jean-NoΓ«l β€’

Which moon ? There are lot of moons in the solar system :p

Collapse
Β 
charlesr1971 profile image
Charles Robertson β€’

I was about to say there are a lot of stars, as well, in a solar system! 🀣
Although technically, you can get binary stars πŸ€”

Thread Thread
Β 
evan_langloisuudruid74 profile image
Evan Langlois (UUDruid74) β€’

No, there are not a lot of stars in our solar system. Our "solar" system has a single star, the sun, aka sol. The rest of the stars belong to their own solar systems.

Thread Thread
Β 
prophesierc profile image
Brian Knowles β€’

I guess it's a good thing he said, 'a solar system' and not 'our.'

Thread Thread
Β 
evan_langloisuudruid74 profile image
Evan Langlois (UUDruid74) β€’

A solar system is only going to have one star unless its a binary system. There are not "a lot of stars ... in a solar system". There is 1, rarely 2.

Collapse
Β 
charlesr1971 profile image
Charles Robertson β€’ β€’ Edited

Here is one I did, of the inner planets, a few years ago, just with jQuery & GSAP:

codepen.io/charles1971/pen/BaNyqYE

Of course, it doesn’t use real 3D, like three.js, so you cannot zoom, pan, tilt or rotate.

I have used three.js before and it is great!

Collapse
Β 
gourav_sharma profile image
Gourav Sharma β€’

Hello πŸ‘‹ I am new to ThreeJs and want to build cool and amazing 3D stuff like you but my pc does not support webGL2 and only supports WebGL1 and because of this its been difficult to do follow along any documented projects and Tutorials. I have build some projects with WebGL1 and they are amazing to me. My question is can I use my written scripts to run WebGL2 on some remote server through some application ?? if so please give me URL I need that

Collapse
Β 
cookiemonsterdev profile image
Mykhailo Toporkov πŸ‡ΊπŸ‡¦ β€’

I don't see mutch meaning in doing such thing, sice problem in your PC or rather Browser. If the browser does not support the newer version, there is nothing you can do...

Collapse
Β 
annavi11arrea1 profile image
Anna Villarreal β€’

Yay! thanks for sharing! I can't wait to learn threejs!

Collapse
Β 
avanichols_dev profile image
Ava Nichols β€’

Wow

Collapse
Β 
aimitsumori_noreply_43367 profile image
Aimitsumori Noreply β€’

So good

Collapse
Β 
javicodev11 profile image
Javico11 β€’

So good!....

Collapse
Β 
articburn profile image
Artic Burn β€’

Wow! Should be try it.

Collapse
Β 
gregory_magnusson profile image
Gregory Magnusson β€’

Very good. Keep exploring.

Collapse
Β 
d1vyanshukumar profile image
divyanshu_Kumar β€’

Wow

Collapse
Β 
roshan_khan_28 profile image
roshan khan β€’

that was great project. can you maybe try the interstellars blackhole next time? that would be a sight to see!

Collapse
Β 
codex_arch profile image
Codex Arch β€’

wow really amazing ,, congrats

Collapse
Β 
spaghetticoderyyz profile image
Marc LP β€’

Wow great job!

Collapse
Β 
shotlom profile image
Sholto Maud β€’

next you can do a vortex model youtube.com/watch?v=0jHsq36_NTU

Collapse
Β 
taranka profile image
Sivak Ihor β€’

U are God)))))))

Collapse
Β 
tarunkumarkale profile image
Tarun kale β€’

Amazing buddy

Collapse
Β 
cb86at profile image
Christian β€’

Awesome!

Collapse
Β 
vladkens profile image
vladkens β€’

Cool. Reminded me of a very old project I did.

Collapse
Β 
elsyng profile image
Ellis β€’

Chrome only?

Collapse
Β 
gargeebanerjee profile image
Gargee Banerjee β€’

It looks so cool

Collapse
Β 
blessedtechie profile image
Blessing Emejulu β€’

This is awesome

Collapse
Β 
ashar_majeed profile image
Ashar Majeed β€’

Good work

Collapse
Β 
mark-myer profile image
Marcus Myer β€’

Nice work. If you want some more work to do, put in the moons around the planets. :)

Some comments have been hidden by the post's author - find out more