Voxel-engine in three.js for mobile devices

Previous Image | Next Image
Description: Working on this voxel engine for about a month now. A long time ago on the blitz basic forums I saw someone show a Minecraft like example. It took me a while to be able to do something like that.
There are now a whole bunch of tutorials on how to get started coding something like this. Nothing really in depth stil.

I now code on a ipad pro. This means the controls are touch(for now) The game runs inside the browser and uses the 3d library from that. This using three.js.

The screenshot shows a stil simple world. I have yet to add 'real' generators. I think I have the infinite* world working. I do need to test and investigate since long distances cause numbers to lose precision and I would need to build the world always from around the camera.

I just added a the initial test with ambient occlusion. This is the shadowy edges between blocks. This done through the vertex colors.

I sometime test the engine on slower devices. Ipad 2017 stil works, but slow. Android should work too.

The github repo :
https://github.com/Pakz001/html5examples/tree/master/3D/threeTest/Test

Here is a link to a page where each version and test is as web file(50+) The site might be gone soon as the company was bought and they are cutting on the freebies products.

https://cromdesi.home.xs4all.nl/html5/voxelthing/


Picture Stats:
Views: 11120
Filesize: 580.75kB
Height: 715 Width: 1024
Keywords: Voxel, voxel-engine, minecraft, threejs, javascript, browser, mobile, ipad, iphone, android, tablet 
Posted by: Pakz at December 18, 2022, 04:01:07

Image Linking Codes
BB Code
Direct Link
Show Html Link Code
0 Members and 1 Guest are viewing this picture.

Comments (0)



Powered by: SMF Gallery