Voxels in Irrlich ?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
pixartist
Posts: 25
Joined: Thu Apr 14, 2011 4:58 pm

Voxels in Irrlich ?

Post by pixartist »

Hi, I just installed the Irrlicht engine + .NET wrapper, and I was wondering if you could give me a little advice how to create a voxel-based engine in irrlicht. I'm not familiar with irrlicht and not too familiar with 3d-programming, but I still would like to try.

I don't want help on physics/collision/other gameplay stuff yet, just what the best way would be to translate a 3d array of voxels into a "renderable" object in irrlicht. Thanks ;)

sure, I could use a billions box-meshes, but I guess that would kill the performance, since it will still draw ALL faces...
(I tried 256x256x1 and it lagged quite a bit :/)
Luben
Posts: 568
Joined: Sun Oct 09, 2005 10:12 am
Location: #irrlicht @freenode

Post by Luben »

You might want to implement the marching cube algorithm.
The main reason that 256² cubes lagged for you is probably how you implemented it; it'd result in just as many draw calls. Better to make a big mesh(or many of a nice size) and render it.

Note that a voxel is not the same as a cube. A voxel can be seen as a 3d pixel, It has a position and a color. It's not textured, is not necessarily of a certain shape or size. A lot of people seem to confuse voxels for textured cubes in a grid.
pixartist
Posts: 25
Joined: Thu Apr 14, 2011 4:58 pm

Post by pixartist »

Well, okay, I want an engine similar to minecraft etc. which often is called "Voxel Engine"
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

C4
Luben
Posts: 568
Joined: Sun Oct 09, 2005 10:12 am
Location: #irrlicht @freenode

Post by Luben »

Incorrectly called a voxel engine. Even if i and everyone i know called the moon a star, we'd be wrong. Now you know, please help spread the truth to the ignorant masses :wink:

@Seven
C4 ?
pixartist
Posts: 25
Joined: Thu Apr 14, 2011 4:58 pm

Post by pixartist »

Luben wrote:Incorrectly called a voxel engine. Even if i and everyone i know called the moon a star, we'd be wrong. Now you know, please help spread the truth to the ignorant masses :wink:

@Seven
C4 ?
yeah, still that post did not help me at all :/
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

Luben wrote:@Seven
C4 ?
I guess he meant http://www.terathon.com/c4engine/index.php
"Whoops..."
pixartist
Posts: 25
Joined: Thu Apr 14, 2011 4:58 pm

Post by pixartist »

So is there a mesh batching class for .NET users for irrlicht or will I have to write my own? :(
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

pixartist wrote:So is there a mesh batching class for .NET users for irrlicht or will I have to write my own? :(
There is one for C++ in the irrExt repository. You'd have to port it to .NET.
"Whoops..."
Luben
Posts: 568
Joined: Sun Oct 09, 2005 10:12 am
Location: #irrlicht @freenode

Post by Luben »

pixartist wrote:
Luben wrote:...
yeah, still that post did not help me at all :/
I didn't think you were still looking for help, i gave you sound advice in my first post. :p
kalvinorama
Posts: 10
Joined: Sat Jul 19, 2008 12:27 pm

Post by kalvinorama »

You can do that with this method :
http://developer.nvidia.com/node/158

you've have to be a little comfortable with GPU programming.
i've made something like that, but i can release because it was for my work.

Hope it can help you
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

pixartist wrote:Well, okay, I want an engine similar to minecraft etc. which often is called "Voxel Engine"
Yet another minecraft cloner :roll: I am starting to hate that game.
multum in parvo
ChaiRuiPeng
Posts: 363
Joined: Thu Dec 16, 2010 8:50 pm
Location: Somewhere in the clouds.. drinking pink lemonade and sunshine..

Post by ChaiRuiPeng »

Adler1337 wrote:
pixartist wrote:Well, okay, I want an engine similar to minecraft etc. which often is called "Voxel Engine"
Yet another minecraft cloner :roll: I am starting to hate that game.
not even kidding... like how many threads have we seen regarding a clone for that game this week? :roll:

3?



:shock: :shock: agghhh i just got major dejavu
ent1ty wrote: success is a matter of concentration and desire
Butler Lampson wrote: all problems in Computer Science can be solved by another level of indirection
at a cost measure in computer resources ;)
pixartist
Posts: 25
Joined: Thu Apr 14, 2011 4:58 pm

Post by pixartist »

I'm not planning on making a minecraft clone, I just like the concept a an entirely destructible environment
hayate
Posts: 43
Joined: Mon Feb 16, 2009 9:38 pm
Location: Brescia, Italy

Post by hayate »

OT
Adler1337 wrote:
pixartist wrote:Well, okay, I want an engine similar to minecraft etc. which often is called "Voxel Engine"
Yet another minecraft cloner :roll: I am starting to hate that game.
Did you prefer the average "how-to-do-MMORPG-fast" thread ? :lol:
/OT
Sorry for my awful english ^_^'
Image
Post Reply