Hacker News new | ask | show | jobs
by alexanderperrin 2687 days ago
A couple of years ago I produced this as a study into procedural heightmaps, shadow mapping and online geometry loading with Three.js. I had big plans for it but abandoned it half way.

I found it on my hard-drive the other day and thought it might be worth putting up in the case that it's of any use to anyone! The project is full of performance issues and other weird things but hey I hope it's worth something! Enjoy.

Code lives here: https://github.com/alexanderperrin/threejs-ballooning

Works on desktop and (most) mobiles. You can use the arrow keys or touch the screen to move the balloon.

3 comments

Im surprised, ever and ever again, how well this works on mobile.
Super glad it's working for you! May I ask what sort of device you're using? I'm quite curious.
To give you second data point, it crashes (probably OOM) on my $39 phone.
Where do you get a $39 phone?
It's myPhone Pocket, Android 6, 512MB ram, 4GB flash. I found it now cheapest for €42 [1], year ago I found it for €39. The only downside is that default apps cannot be uninstalled, that makes the phone almost unusable. It was never locked to any carrier. It's dual sim but I never had sim in it, I use it only as pocket-wifi-browser (102 grams!) and for app development.

[1] https://www.gigastore.sk/4-az-48-vcetne/myphone-pocket-cerny...

BestBuy has "disposable" androids - probably subsidized by the carrier they're locked to. Just checked - $25 for an ATT phone, used to be $30/$40 with/without sale.

I'm certain other places do too.

Works great on my iPhone SE–better than it does on my MacBook Pro.
Works great on my iPhone 7.
It runs beautifully on my Sony Xperia XZ1 compact. Firefox. Very nice.
Works flawlessly for me on a Pixel 2XL, quite surprised.
On a high end phone such as yours, it should not be all that surprising that the performance is good!

On my low end Samsung J3, it is rather choppy, but I feel it can be improved, given that this animation is lovely and smooth: http://campoallecomete.it/#!/en

I think people assume rather quickly that animation in a mobile browser will be janky. Truth is, if done well, it really doesn't need to be.

Gorgeous, and works better on my Ipad than my Macbook. Does anyone have any idea why?
Same goes with me actually. I'm not entirely sure but I think most of it is attributed to the huge amount of optimisations and refinements that have gone into the modern mobile GPU's. While the mobiles don't seem to be quite as diverse in their capability, they excel at what they can do!

The future is a strange place.

Runs about 7fps on budget Android Samsung J530F, which cost 160 euros.
Microsoft go/firefox working perfect. love it.
What so you use your Go for and does the battery life bother you?

I want one, but 4 hours seems too short for me

Was a present, and is treated as a play thing. General low level use gives about 6 hours, browsing and word etc, but if pushed by a game or couple of vbox nix v-machines (just to see if it could) about that 4 hour mark. As a secondary device it's not been a problem, and it charges pretty quick.

It's a nice thing. Best feature is the flap, imo. all tablet-like devices should have them! I've not got the proper keyboard, but am tempted.

€380 Pocophone F1 with Chrome. What an eye candy!
Moto g6 play smooth as can be
Works great on iPhone 6!
Works in my iPhone XR
iPhone X.
S7 here on firefox and chrome @ 15-20 frames, looks like my phone is a little dated!
This is awesome!!! Amazing work.
Nice pastoral-feeling work. In the readme you feature "Shore detection algorithms for boathouse placement". Does the algorithm have a name, or did you create it from scratch? I'd be curious to learn how it works.
Thanks! I actually can't remember exactly how it worked, but I think it was a pretty simple process of selecting points at the level of the water combined with some sort of normal calculation. Just used it for placing the boathouses in semi-logical locations.

I should probably take it out of the readme just in case someone gets all excited and then disappointed when they realise it's all smoke and mirrors and nonsense. Ha!