Block like terrain, without voxels

hello guys I am trying to figure out how to make a terrain a chess board like terrain with blocks that can have different heights, and where I set set the top texture of a block, and the side texture differently, is there a solution with terra monkey for doing this? Or i have to make each block a Quad a texture them depoarately :confused:

any ideas?

You should make a custom mesh and just update that. Using separate geometries would be a waste of resources.

1 Like
@normen said: You should make a custom mesh and just update that. Using separate geometries would be a waste of resources.

Hello normen, thanks for your answer, what do you mean exactly by a custom mesh? there is something in JMonkey that can handle that, or I have to place pixels by code?

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:custom_meshes

1 Like
@normen said: https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:custom_meshes

annnnd that solves that :slight_smile:

thanks alot normen.

(to work now!) :wink:

Something like this:
http://book.jmonkeyengine.org/chapter-5/adding-character-to-your-game/attachment/teapot-model/

You can use a heightmap and have very sharp edges between the squares. Like if you just took a black and white image of a chess board. It will create raised levels for you with only very slight slopes. You can then paint the tops. And be sure to turn on Tri-planar mapping so the textures don’t appear stretched. The editor has a checkbox for this.