Voxels

Published May 04, 2007
Advertisement
I've spent the last two days working on a voxel model editor called VoxelSharp, just for the hell of it. It's not done yet, but it is functional.









If anyone feels like giving it a whirl, you can download the current version here.

It requires .Net 2.0 and MDX 1.1(Febuary 2006, I think). I haven't encountered any crash bugs, but it wouldn't surprise me. The thing is a mess of statics and events, so there might be some threading issues. I've tried to speed up the rendering, the largest model I made consisted of over 262000 vertices and while slow, it was still useable.
Previous Entry More Quake
0 likes 5 comments

Comments

Ravuya
I want to write a voxel engine now!

Voxels with "antialiasing" would be pretty cool for making organic surfaces.
May 04, 2007 10:19 AM
Scet
Yeah, I've been trying to figure out a way to use voxels with modern hardware acceleration(that won't kill framerates) instead of having to build a software renderer.

My idea is to create a texture map from the voxel model using the 6 views and then transform any connected faces into triangles/quads. The texture map would elimate the need to check each voxels color while making the connections, plus you could use it to check for occluded faces. It would only work for "hollow" models, but it would speed things up while maintaining the "voxel vomit" look.

Another problem though is that modelling large animated characters would be extremely tedious, if not impossible. In this case it would be better to just build one frame using voxels and then convert it to a "proper" smooth triangle mesh and use bone animation and the have a mesh->voxel converter to convert the animations back to voxels.
May 04, 2007 10:51 AM
Ravuya
I dunno if a voxel engine is really amenable to easy parallelism, but if it is we could probably do most of it on the GPU.

What I meant was that you could add interpolated voxels to smooth out the scene, so stuff doesn't look all pixelly and rough up close, and you could collapse the voxel bundle when far away. Pretty much an LOD scheme, but it seems really simple to do with voxels, so I'm wondering why it hasn't been done (other than that you'd have to have a really fine voxel size).
May 04, 2007 11:06 AM
Scet
I know what you meant, but I consider smoothing out voxels to be heresy.
May 04, 2007 01:13 PM
HopeDagger
Very cool Scet. I'm glad I'm not the only voxaholic around here. [grin]
May 04, 2007 10:27 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement