I spent this weekend coding on something to draw 3d images, minecraft like.
I do admit that the code itself is terrible and does very little optimizations. Despite it lacks just about everything, I still decided to share the small ugly uncommented code.
https://www.dropbox.com/s/3y3i2bjhovrw3zf/Blockers.cpp?dl=0
https://www.dropbox.com/s/o20kistka3bkjh2/Blockers.h?dl=0
white.xml
<material>
<technique name="Techniques/NoTexture.xml" />
<parameter name="MatDiffColor" value="1 1 1 1" />
</material>
textured.xml
<material>
<technique name="Techniques/Diff.xml" />
</material>
Here is some pictures:
14.12.15 http://i.imgur.com/xJEeCWe.png
27.12.15 http://i.imgur.com/b28a1yq.png
07.01.16 https://i.imgur.com/WbyDw6v.jpg
F5 shows some button instructions.
Edit: 27.12.2015
- added skeletal structures, still missing animations.
- Some minor optimizations of removing missing faces, if there is another face next to it.
5.1.2016
-
updated mostly animation things, like ability to add/remove animations
-
Still lacking the ability to actually save animations.
7.1.2016
- Animation saving
- Changed the texture to make the blocks have darker edges, so they are much more visible.
- Squashed quite some bugs.
10.1.2016
- Added file-menu
- Added button to try different textures.
- Fixed a bug when the drawing canvas is moved, it was drawing cubes on wrong place.