Creating terrain

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.

Creating terrain

Postby GoFor » Thu Nov 20, 2014 5:38 pm

Hi guys. Do you know maybe in what simple program can I creating terrain - for example?
GoFor
 
Posts: 9
Joined: Tue Nov 18, 2014 5:10 pm

Re: Creating terrain

Postby Seven » Thu Nov 20, 2014 11:21 pm

using the built in terrainscenenode, you can create terrain using almost any graphics file for the heightmap.

if you are wanting to use something like 3dmax then search youtube for it. Lots of tutorials on there for different modelling programs that can export and then be loaded by irrlicht as a regular mesh.

last but not least, search these forums for the 6 textured shader (triplanerterrain) so that you can texture it a little better.
Seven
 
Posts: 888
Joined: Mon Nov 14, 2005 2:03 pm

Re: Creating terrain

Postby GoFor » Sat Nov 22, 2014 3:01 pm

I cant find any good program to simple create terrain :( i cant do it in truespace - to o hard and 3dsmax isnt for my system like a few diffrend programs... guys please help me with find simple program to create terrain for x32 windows xp..... and do you know maybe in what enlargement of map can I load it to irrlicht?
Sorry for my English...
GoFor
 
Posts: 9
Joined: Tue Nov 18, 2014 5:10 pm

Re: Creating terrain

Postby Seven » Sat Nov 22, 2014 3:14 pm

using the built in terrainscenenode, you can create terrain using almost any graphics file for the heightmap.

check out the tutorials on how to do this
Seven
 
Posts: 888
Joined: Mon Nov 14, 2005 2:03 pm

Re: Creating terrain

Postby christianclavet » Sat Dec 06, 2014 3:50 am

If you only need to create a 3D terrain and nothing else (I mean no programming). You could perhaps check for Terragen. ( http://planetside.co.uk/ )

My last version of IRB ( http://irrrpgbuilder.sourceforge.net ) can create terrain, with tiles that are saved in .B3D (Blitz) 3D models, but the textures are generated with a shader, that use elevation to color the terrain.
User avatar
christianclavet
 
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Re: Creating terrain

Postby Mel » Tue Jan 27, 2015 11:20 am

How do you edit the terrain? i've been thinking about another way to edit terrains, but i think my approach is fairly dumb ^^U (editing a bitmap while the terrain updates in real time with this as source...) Sure you have quite a good thing going on. It is already very advanced, congrats! If perhaps you could swap the terrain textures with a properly splat mapping, or combine the height texture changes with a splat approach, it would definately enhance the looks of it :D And if you could add a shadow generation, it would be the last thing it needed to be perfect!.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
User avatar
Mel
Competition winner
 
Posts: 2273
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Creating terrain

Postby christianclavet » Tue Jan 27, 2015 5:02 pm

For IRB we don't use the terrain scene nodes but meshes. (In 0.3, we use generated HillMeshes) We access the mesh buffer and simply change the values of Y axis. To get the "click" position, we simply do a raycast from the camera to the mouse pointer. Once you get the position of the click, then with simple calculations from the points you can get a distance and "fade" the brush, or make it more rigid. There lots of way to do it.

I've not done the paint splatting (painting the mesh with the mouse) yet, as our terrain shader use elevation as parameters to splat textures. But in the long term, I would like if I know how to paint textures masks. but this will requires using shader passes (I don't know how to do this ATM). And once you get the position of the ray cast on the mesh, I think I will need to calculate this with a ratio (local coord + scale of mesh) to get the proper UV coordinate to write the pixel. (I think it should be between 0.0 to 1.0)

As Mel mentioned, we could also use a bitmap. If you use the terrain scene node, you could access the height map textures, change the values and regenerate the tile. But I'm about sure that method will not provide "realtime" feeback.
User avatar
christianclavet
 
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Re: Creating terrain

Postby hendu » Tue Jan 27, 2015 8:00 pm

The SuperTuxKart track editor has live splat painting like that. http://supertuxkart.blogspot.fi/2014/08 ... eased.html

It's GPL, so you can't copy directly to irrRPG, but could be useful to look at.
hendu
 
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Creating terrain

Postby christianclavet » Tue Jan 27, 2015 8:12 pm

Thanks Hendu!
User avatar
christianclavet
 
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Re: Creating terrain

Postby Mel » Wed Jan 28, 2015 6:31 pm

The same way you change the Y values of the terrains, you can change also the colors of the vertices, then, you can use a texture splatting shader selecting the textures with the vertex colors, unless you have something planned for the vertex colors, that is.

That is how other people does it, and also, it would enable you to add any amount of textures, because for each triangle, you would use, at most, three textures. When a fourth one came into play, you could split the meshbuffer into new meshbuffers, and each meshbuffer would just use three or four or as much textures Irr supported (yes, the drawback is that there would be aditional drawcalls...) but the good part is that you could add an unlimited amount of textures to your terrains :D
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
User avatar
Mel
Competition winner
 
Posts: 2273
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Creating terrain

Postby hendu » Wed Jan 28, 2015 7:03 pm

Or texture arrays ;)
hendu
 
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Creating terrain

Postby hiker » Wed Apr 22, 2015 3:54 am

hendu wrote:The SuperTuxKart track editor has live splat painting like that. http://supertuxkart.blogspot.fi/2014/08 ... eased.html

It's GPL, so you can't copy directly to irrRPG, but could be useful to look at.

A rather late reply - sorry, I only noticed this thread now.

Feel free to contact us about the editor. I can't speak for the student who wrote it, but you can certainly ask for a dual license release or so.

Cheers,
Joerg
hiker
 
Posts: 58
Joined: Thu May 31, 2007 5:12 am


Return to Everything 2d/3d Graphics

Who is online

Users browsing this forum: No registered users and 1 guest