Voxels in Irrlich ?
Voxels in Irrlich ?
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 :/)
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 :/)
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.
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.
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
There is one for C++ in the irrExt repository. You'd have to port it to .NET.pixartist wrote:So is there a mesh batching class for .NET users for irrlicht or will I have to write my own?
"Whoops..."
-
- Posts: 10
- Joined: Sat Jul 19, 2008 12:27 pm
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
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
-
- Posts: 363
- Joined: Thu Dec 16, 2010 8:50 pm
- Location: Somewhere in the clouds.. drinking pink lemonade and sunshine..
not even kidding... like how many threads have we seen regarding a clone for that game this week?Adler1337 wrote:Yet another minecraft cloner I am starting to hate that game.pixartist wrote:Well, okay, I want an engine similar to minecraft etc. which often is called "Voxel Engine"
3?
agghhh i just got major dejavu
ent1ty wrote: success is a matter of concentration and desire
at a cost measure in computer resourcesButler Lampson wrote: all problems in Computer Science can be solved by another level of indirection