Very lost and confused

Hey I am very lost and a complete noob at doing terrains and that stuff. I’m fine at the Java part I understand all that but I don’t have a clue what I’m doing when it comes to making a terrain for my game. I have been learning how to use Blender now for about 3 weeks and I’m picking it up pretty fast. In my game there will be a small city/town sort of like Grand Theft Auto but on a way smaller scale and not half as many things going on.



What I want to know is do I build the whole town/city on Blender piece by piece and then using the JMonkey Engine and Java load the city I built into the game all in one go at the start of the game or do you do it differently? I have been searching for the last 3 weeks for an answer but can’t find any. I’ve been doing loads of tutorials for Blender and that but still don’t know what I’m doing really when it comes to putting the game together at the end. Thanks.

The recommended approach for terrain is making a heightmap and then add buildings and stuff to it. I’m doing that for my game. I did the first parts in GIMP then finished it in Blender. But heightmaps may not be optimal for a GTA-like game if it takes place in the city. I suppose you want something like the town from https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_collision ? Not sure how to go about that but I’m sure someone else can help you.

Thanks for the reply. When you say that you did the first parts in GIMP do you mean that you made for example images with lets say wall textures on them? and then what did you do with the images in Blender?

I made this heightmap in GIMP: http://i.imgur.com/6VA7t.png



Then I loaded it into blender to finalize it.

If you want level of detail from your terrain, you should use TerraMonkey: https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_terrain

Just use the same heightmap in blender as in TerraMonkey

Ok thanks for the replies I’m going to learn about heightmaps next and take it from there. By the way is it good practice to make the whole terrain on Blender and then import the whole terrain and objects when the game is starting? or is there a different method for doing this that is more efficient?

Depends if you want good level of detail for your terrain, which you probably do. Then you just want the heightmap image, put it into a TerrainQuad directly.

I have been looking up about heightmaps for the last few hours now and I am starting to understand it but what do you mean when you say I want a heightmap image? As in I need a heightmap image for the whole city in the game? and what do you mean by put it into a TerrainQuad? Thanks.

@metallicalive said:
Ok thanks for the replies I'm going to learn about heightmaps next and take it from there. By the way is it good practice to make the whole terrain on Blender and then import the whole terrain and objects when the game is starting? or is there a different method for doing this that is more efficient?

You should make a heightmap from blender, http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/Landscape_Modeling_III:_Exporting_as_a_Heightmap
Then import that into jME.
@WASD said:
You should make a heightmap from blender, http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/Landscape_Modeling_III:_Exporting_as_a_Heightmap
Then import that into jME.

Does a heightmap only work for mountains and that kind of thing or does it work for buildings in a city aswell?

Heightmaps are for terrain only.

You can see an example of TerrainQuad and ImageBasedHeightMap here https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_terrain

Ok cool thanks for that. So for making hills and that stuff I will use a heightmap but then what about for making buildings on the side of the roads? Does that have to be done in Blender? and can you have both heightmaps and whatever you use to make buildings and cars combined in the same game and if you can is it difficult? Sorry for all the questions I just can’t find the answers I’m looking for anywhere it feels like there are loads of different ways to do things and lots to learn.