Has anyone acheived a Minecraft-like voxel engine?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
LaserGuns
Prole
Posts: 33
Joined: Sun Apr 29, 2012 12:55 am

Has anyone acheived a Minecraft-like voxel engine?

Post by LaserGuns »

I know it's possible, I'm just not sure how it would be done. Is anyone working on something like this?
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Has anyone acheived a Minecraft-like voxel engine?

Post 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.
LaserGuns
Prole
Posts: 33
Joined: Sun Apr 29, 2012 12:55 am

Re: Has anyone acheived a Minecraft-like voxel engine?

Post 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?
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Has anyone acheived a Minecraft-like voxel engine?

Post by slime »

http://stabyourself.net/orthorobot/
bGxNd.gif
bGxNd.gif (1.06 MiB) Viewed 440 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.
Last edited by slime on Tue Aug 21, 2012 3:19 am, edited 1 time in total.
User avatar
Inny
Party member
Posts: 652
Joined: Fri Jan 30, 2009 3:41 am
Location: New York

Re: Has anyone acheived a Minecraft-like voxel engine?

Post 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.
User avatar
Xgoff
Party member
Posts: 211
Joined: Fri Nov 19, 2010 4:20 am

Re: Has anyone acheived a Minecraft-like voxel engine?

Post by Xgoff »

cheater tier: use a luajit build and an opengl ffi binding to get direct access to opengl functions and the gl context
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Has anyone acheived a Minecraft-like voxel engine?

Post 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.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Has anyone acheived a Minecraft-like voxel engine?

Post 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
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Has anyone acheived a Minecraft-like voxel engine?

Post 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.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Has anyone acheived a Minecraft-like voxel engine?

Post 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
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Post Reply

Who is online

Users browsing this forum: No registered users and 95 guests