Page 1 of 3
Has anyone acheived a Minecraft-like voxel engine?
Posted: Sat Aug 18, 2012 11:48 pm
by LaserGuns
I know it's possible, I'm just not sure how it would be done. Is anyone working on something like this?
Re: Has anyone acheived a Minecraft-like voxel engine?
Posted: Sun Aug 19, 2012 1:37 am
by Jasoco
I don't think Löve would be nearly fast enough. Nor does it have the ability to warp images like Java can. The best people have been able to do in Löve 3D related is raycasting, 3D untextured polygons and a faux-textured-like dice roller. The first two which I did myself.
The problem is all the math involved and not really the drawing part. If you can create an optimized engine that can quickly calculate the location of every point for every triangle and feed it to a table for the graphics portion, you could have something. But then again, no texture warping. And math takes a lot of processor power.
Plus there's no "clipping" since there's no actual 3D support. Clipping is when two triangles intersect each other and the renderer clips the un-visible portions of the triangle.
Something like the original Star Fox or old first-generation 3D games with no texturing (Just colored shapes) could be done. And has been. In prototype form.
Re: Has anyone acheived a Minecraft-like voxel engine?
Posted: Sun Aug 19, 2012 1:46 am
by LaserGuns
Yea I've seen your WolfenLove game, it's awesome. I hope in the next version of love they include OpenGL support or something. Has anyone written unofficial support for OpenGL yet?
Re: Has anyone acheived a Minecraft-like voxel engine?
Posted: Sun Aug 19, 2012 2:40 am
by slime
http://stabyourself.net/orthorobot/
- bGxNd.gif (1.06 MiB) Viewed 1105 times
LaserGuns wrote:Yea I've seen your WolfenLove game, it's awesome. I hope in the next version of love they include OpenGL support or something. Has anyone written unofficial support for OpenGL yet?
No, but LÖVE has something
better than unofficial support.
Re: Has anyone acheived a Minecraft-like voxel engine?
Posted: Sun Aug 19, 2012 3:15 am
by Inny
There's a project that's doing minecraft-voxels with Lua as the scripting language called
C55 Minetest, have a look.
As for what love can do, 3d is certainly possible, but not
natural in the sense that it'd be really pushing love beyond what it's intended for and you'll run into corner cases everywhere. Terraria and Minicraft are more natural.
Re: Has anyone acheived a Minecraft-like voxel engine?
Posted: Sun Aug 19, 2012 5:08 pm
by Xgoff
cheater tier: use a luajit build and an opengl ffi binding to get direct access to opengl functions and the gl context
Re: Has anyone acheived a Minecraft-like voxel engine?
Posted: Mon Aug 20, 2012 4:29 am
by Jasoco
Not the same. Orthorobot, like Fez, is orthogonal. Non-perspective. i.e. further blocks don't appear smaller. There's no depth. It's all flat.
The images wouldn't be possible in a real 3D calculated version due to no texture warping. Löve has skewing, but sadly no actual texture perspective warping. Which would be required for anything remotely Minecraftian.
Speaking of which, Minecraft has to calculate the 3D spacial location of thousands upon thousands of points every frame and then draw thousands upon thousands of warped images. Somehow Java is really really really fast at this stuff. Sadly Löve is not. How I wish Löve were as fast as Java. I know Lua. I don't know Java. I've watched Notch program a 3D game engine from scratch (Prelude of the Chambered) and I'm still amazed.
Re: Has anyone acheived a Minecraft-like voxel engine?
Posted: Mon Aug 20, 2012 8:53 am
by Nixola
I don't know why, but that image manages to semifreeze Chrome, I have 1/0.5 FPS until I manage to delete its <img> tag
Re: Has anyone acheived a Minecraft-like voxel engine?
Posted: Mon Aug 20, 2012 4:27 pm
by Lafolie
Nixola wrote:I don't know why, but that image manages to semifreeze Chrome, I have 1/0.5 FPS until I manage to delete its <img> tag
I've been trialling Chrome recently, it displays fine for me. Must be your hardware.
Re: Has anyone acheived a Minecraft-like voxel engine?
Posted: Mon Aug 20, 2012 7:31 pm
by Nixola
I can reach 25+ pages at teh same time, but a single page with that image almost freezes everything, even if it's the only page