Voxel editors and normals

Published September 20, 2016
Advertisement

I want to use Voxel editors to create graphical assets for my game. It is easy to use them and create relatively good looking 3D objects. Plus with a little bit of work the game can look quite "stylized" and that it is what I am going for. I played around with number of Voxel editors and ended up with two contenders.

VoxelShop - free and has very user friendly interface. I just loved using it and could quickly mock up stuff I need.

MagicaVoxel - again free but not as easy to use. I found it quite hard to create something fast. Maybe I just need to get use to it or man up and read the manual.

It all was nice and dandy until I got to the exporting part. VoxelShop can export to a .dae format and that is what IrrLicht can load. At first I though that it was going to be all I need but then I tried to light it up. I exported a simple cube, loaded it into a scene and set up a moving light source. The light on a cube was all over the place and when I enabled debug render for normals I understood why.

coladatyak.png

As you can see above the normals are all over the place! At first I thought that because of compression for vertices, but even without it the normals apparead super strange. Actually not that strange, more like averaged. And that is not what I really need.

bla1.png

As I understood once again a lot of duplicate points were removed during the export and what we left with is a lot of missing normals. It seems like it is a command problem for .dae. I actually got the source code for VoxelShop to try and fix it myself, but then decided not to bother. It will take me ages to understand what is going on.

So I moved on to MagicaVoxel and it can export into .obj which got all of points, vertices and normals I will ever need! I will stick with it for now as I do not want to spend to much time on trying to export everything perfectly. I will try to learn MagicaVoxel and see where it takes me.

In the next post I will talk about a simple shader I made to light up my nice normals. I have not used shaders in ages, was nice to check them out once again.

P.S Anybody knows good, free or cheap Voxel editors? That can export in a lot of different game related formats?

2 likes 4 comments

Comments

TheChubu

Exporters seem to be pretty isolated, here https://github.com/simlu/voxelshop/tree/master/PS4k/src/com/vitco/export/collada

Not a lot of code. It does the vertex handling in the ColladaFile class, but I dont see any normal handling. Actually, it seems it exports planes instead? I'm not sure.

You could try any of the other export formats to see if any works. They seem to be specific voxel formats. Or adding an OBJ exporter.

There is Qubicle, which costs money and it has "mixed" reviews (with a bunch of people saying its pricey and incomplete, price ranges from 20 USD to 100+ USD if you want the extra tools).

So you're out of luck I guess.

October 02, 2016 11:33 PM
Bigdogco

ColladaFile is strange. I grabbed VoxelShop to check it out and it was very confusing :) I am itching to try to write an OBJ export for VoxelShop, but I am afraid it will take me too long. OBJ is a simple format but all that material exporting might be pretty tricky.

I been using MagicaVoxel and getting really used to its UI and it exports nicely in OBJ format.

I looked at Qubicle and reviews kind of scared me away. If it had more exporting options I would consider it but I think only usefully format they export to is OBJ again, so I will stick with MagicaVoxel for now.

October 04, 2016 01:02 AM
voxelshop

@TheChubu @Bigdogco

Exporters seem to be pretty isolated, here https://github.com/simlu/voxelshop/tree/master/PS4k/src/com/vitco/export/collada

Not a lot of code. It does the vertex handling in the ColladaFile class, but I dont see any normal handling. Actually, it seems it exports planes instead? I'm not sure.

I've just improved VoxelShop so that normals are now correctly exported. This is live in version 1.7.06 (currently only available through the java downloader "latest version").

Warning: Blender might not correctly import COLLADA files and ignore the normals contained.

Note: Publishing native installers is time consuming, so I don't do it too often. If you always want to have the latest version and best performance I recommend the Java installer!

October 21, 2016 05:33 AM
Bigdogco

@TheChubu @Bigdogco

Exporters seem to be pretty isolated, here https://github.com/simlu/voxelshop/tree/master/PS4k/src/com/vitco/export/collada

Not a lot of code. It does the vertex handling in the ColladaFile class, but I dont see any normal handling. Actually, it seems it exports planes instead? I'm not sure.

I've just improved VoxelShop so that normals are now correctly exported. This is live in version 1.7.06 (currently only available through the java downloader "latest version").

Warning: Blender might not correctly import COLLADA files and ignore the normals contained.

Note: Publishing native installers is time consuming, so I don't do it too often. If you always want to have the latest version and best performance I recommend the Java installer!

Thanks! It works perfectly now!

October 21, 2016 09:11 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement