Minecraft like animation

Jan 19, 2013 at 3:16 PM

Hello there,

did anyone think about how to code minecraft like animations? For example opening and closing chest animation? I wrote my own voxel based engine. That engine have for every chunk some vertex buffers (for solid, liquid etc...). These buffers are rebuilded with every change (someone change solid block => rebuild solid block buffer). But i have no idea how to implement to this structure smooth animation of some blocks without rebuilding buffer several times per second (it would take much time on CPU) i think that's not the right way to achieve this. Someone have some idea?

Jan 21, 2013 at 5:44 AM


Objects such as in game chests, might be better separated from the chunk buffers. In game objects aren't a part of the world per se, but rather population objects within the world. So the separation of both makes logical sense.

You could create buffers for game objects, and simply update and draw them after the world is generated each frame. In the Techcraft code, this can be seen in the water buffer, which is displayed after the solid blocks. The update and draw calls you make, could be animation of the game objects.