6 ms·
Gravity.js
- valentinvichnal 10y agoGravity WebGL experiment in the Solar System Source: https://github.com/valentinvichnal/gravity.js https://github.com/valentinvichnal/gravity.js
- NickBusey 10y agoThis is really cool, big fan of the lo-poly look. I just wish the camera didn't have so much (random?) movement. And maybe a way to change which way the balls fall from and also their size/weight?
- elsherbini 10y agoIt took me a while to figure out, but the camera centers around the white ball. If you use the arrows you are controlling the white ball, not the camera. Spacebar seems to make it go "up".
- NickBusey 10y agoOk whoa, this just got way cooler. Hold the left and right arrows alternately for a bit each side, you can build up a pretty big orbit..
- valentinvichnal 10y agoThanks, the low-poly planet models was created by others but they are really cool. The controls can be frustrating because I use velocity for the movement and it is connected to the ball not the camera.
- bananaoomarang 10y agoAwesome, a little confusing how to interact with it (it wasn't clear to me what the arrow keys were moving for a bit). Might be better with some controls/brief tutorial message. First time I've seen Playcanvas too, looks neat!
- valentinvichnal 10y agoThank you, I will try to come up with some advanced movement in the future which is connected to the camera because this one isn't really good. Control keys: https://github.com/valentinvichnal/gravity.js#controls https://github.com/valentinvichnal/gravity.js#controls
- tedmiston 10y agoThat would explain why I couldn't figure out how to use it on mobile.
- phantarch 10y agoI see on your github that the assets for the planets & background come from https://playcanvas.com/project/375395/overview/into-deep-space https://playcanvas.com/project/375395/overview/into-deep-spa... Is this a common asset pack?
- valentinvichnal 10y agoI believe they are the creators, I don't know how to import these assets to your project but you can fork their project and use the models.
- splintercell 10y agoHow does this work? Arrow keys don't do anything. All I see is this: https://api.url2png.com/v6/P4DF2F8BC83648/af98f60a5846961e027c8bb95f203054/png/?thumbnail_max_width=851&url=https%3A%2F%2Fvalentinvichnal.github.io%2Fgravity.js%2F&viewport=1280x2000 https://api.url2png.com/v6/P4DF2F8BC83648/af98f60a5846961e02... and nothing to interact with.
- valentinvichnal 10y agoThis didn't load correctly, try it with a different browser.
- splintercell 10y agoDid, it didn't work. If it helps, I am behind a corporate firewall.
- valentinvichnal 10y agoPerhaps playcanvas needs different port than 80 so a firewall could block it.
- sillysaurus3 10y agoHere's a screenshot, in case it's helpful: http://imgur.com/JOdJDZs http://imgur.com/JOdJDZs
- dreamfactory2 10y agodoesn't work w uBlock
- tckr 10y agoYour browser needs WebGL support.
- dcmininni 10y agoI'm kinda disappointed that Jupiter is so small.
- valentinvichnal 10y agoYes planet sizes aren't realistic but I will change it.
- muwaisaac 10y agoDidn't know play canvas was this capable
- valentinvichnal 10y agoYes its awesome, I really like their editor.
- softwarefounder 10y agoLoving the music. I have it in a minimized tab, playing in the background.
- valentinvichnal 10y agoIt is Stellardrone, they have many Space Ambient kind music all for free you should check out: https://stellardrone.bandcamp.com/ https://stellardrone.bandcamp.com/
- voiper1 10y agoGorgeous!
- valentinvichnal 10y agoThanks! :)
- asimuvPR 10y agoSimply beautiful. What are your plans for the library?
- valentinvichnal 10y agoThank you, nothing special just some minor changes to make this scene more realistic.
- AdeptusAquinas 10y agoNo New Zealand on the map - Typical north-hemisphere neo imperialism :)
- worik 10y agoAnother success for Clan McGillicuddy's defence strategy. To be clear, to all the non-fun foreigners, there is no New Zealand. Move right along, nothing to see here....
- oldboyFX 10y agoYou're not fooling anybody. I'm coming to visit your beautiful country whether you like it or not! Suck it New Zealand people.
- ithinkso 10y agoHow do you know? I was trying to rotate the scene in a usual 'arcball' fashion but I'm not able to see southern hemisphere.
- perilunar 10y agoNo UK, Japan or Antarctica either.
- Hinrik 10y ago> Typical north-hemisphere neo imperialism :) Where's my Iceland then!?
- uptownhr 10y agowish you could make the sun and planets size to actual scale :)
- haddr 10y agoDo you have also this glitchy background when you open the webpage on mac & chrome?
- oldboyFX 10y agoControls are bad but nevertheless I find it amazing, sweet soundtrack!
- valentinvichnal 10y agoSource: https://github.com/valentinvichnal/gravity.js https://github.com/valentinvichnal/gravity.js
- exception_e 10y agoWork of art!
- rymohr 10y agoAnyone know how playcanvas handles antialiasing? Their scenes are beautiful.
- MayorOfMonkeys 10y agoPlayCanvas is built on WebGL which leverages hardware antialiasing by default.