Create terrain with road

Hi Folks,

First of all, sorry for my current and the subsequent dummy questions, I am really new to game development, even 3D modelling too, however I have some solid knowledge in programming.

I have a project based on OpenDS that is a driving simulator based on this game engine. To complete this, I have to

  • create new scene
  • open existing and modify them

And till know, I don’t found tutorial that describes it for me correctly. So the questions would be:

  1. Textures in general are images, that I can download from internet or create in gimp / pain, whatever?
  2. How can I create a simple, flat terrain with grass texture with asphalt plane (not only road, but a larger parking) in the middle of it?
  3. In my OpenDs installation there is an “asset” folder with some scenes. How can I “use” this asset folder and modify some of scenes there?

Regards

Maybe this will help https://wiki.jmonkeyengine.org/jme3/beginner/hello_terrain.html . Terrain.j3md comes with jme, alphamap.png could be some random drawing in red, green, blue for this example. For mountains512.png I should do some reading about heightmaps or download one from internet for the tests.

The SDK also comes bundled with a compatible version of blender. That is the 3d modeller of choice, though it is possible to use others, even Google SketchUp. Support/documentation may be patchy in that instance.

Depending on the size of your model, for example if it’s a large terrain, you will want to split it into chunks, a lot like Minecraft does.

You cannot modify j3o files, they are jmonkey data files that cannot be reversed back. You import your models and they become j3o. You need the original model.

Thank you,
I have checked this tutorial, I also checked the terrain editor too, and I saw that I can create a grass plain, I can add second texture, but my problem is that I cannot add road / asphalt texture with sharp edges, but only smooth contours.

I have recently create some mesh with blender a.n.t landscape than I create heightmap from it if thats helps… Of course you can always create some mesh with blender and convert to j3o and add MeshCollisionShape in PhysicsSpace for example…

Take a look at this.

https://github.com/jayfella/TerrainWorld

Most games dont rely on their terrain system for the actual roads, and instead generate a road mesh that closely follows the terrain.
There isnt a built in system for this in jme, but it is easy to generate a mesh and extrude it along a curve. Youll need to write the mesh generation, curve and your own editor though.
Optionally you could make the road in blender and import it, it would be less intuitive but will get you going sooner

You can use splatting. I believe the jme one allows up to 4 channels.

I ran across these when searching for other things.

https://free3d.com/3d-models/road

1 Like

Just remembered something,

Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.