MegaGlest Forum

MegaGlest => MegaGlest => Topic started by: titi on 20 February 2013, 00:33:04

Title: New Terrain Rendering possibility
Post by: titi on 20 February 2013, 00:33:04
A new kind of terrain rendering which is fully compatible with old one and gets us one step closer to use shaders one day.
(http://www.titusgames.de/tmp/screen40.jpg)

(click to show/hide)
(click to show/hide)
(click to show/hide)

Title: Re: A sneak peek of what I am working on ...
Post by: MuwuM on 20 February 2013, 00:34:06
 :thumbup:
Title: Re: A sneak peek of what I am working on ...
Post by: atze on 20 February 2013, 01:26:25
Looks great.  :thumbup:
Title: Re: A sneak peek of what I am working on ...
Post by: MightyMic on 20 February 2013, 01:54:48
Nice Titi, looks awesome  ;D
Title: Re: A sneak peek of what I am working on ...
Post by: tomreyn on 20 February 2013, 08:41:51
Doh, which game is this?! ;-)
Title: Re: New Terrain Rendering possibility
Post by: titi on 20 February 2013, 17:53:14
I checked in a first version now. I know blending is not perfect, but currently I see no way to make it better:

How to use:
in the tileset xml now you can have a texture node which looks like this;
Code: [Select]
<tileset>
<surfaces>
<surface partsize="64">
<texture path="textures/512.png"/>
                </surface>
<surface partsize="64">
<texture path="textures/gg.png"/>
</surface>

<surface>
<texture path="textures/stones_01.png" prob="0.2"/>
<texture path="textures/stones_02.png" prob="0.2"/>
<texture path="textures/stones_03.png" prob="0.1"/>
<texture path="textures/stones_04.png" prob="0.1"/>
<texture path="textures/stones_05.png" prob="0.1"/>
<texture path="textures/stones_06.png" prob="0.1"/>
<texture path="textures/stones_07.png" prob="0.1"/>
<texture path="textures/stones_08.png" prob="0.1"/>
</surface>
<surface partsize="64">
<texture path="textures/dirt.png"/>
</surface>

The partsize must be the same for all textures and must fit to the other tile sizes  in the tileset ( typically 64 )!

here are 3 images you can use to test:
http://www.titusgames.de/tilesets/gg.png
http://www.titusgames.de/tilesets/512.png
http://www.titusgames.de/tilesets/dirt.png

Restrictions for the Images:
allowed is 64x64 128x128 256x256 512x512 1024x1024 ...
A good size to use is 512x512 ( bigger ones need a lot of memory )

This image must be tilable! Use gimp to make this .
In gimp you have two options which give different results:

- the build in "make tilable" option
- or Resynthesisze which has a lot more options and always gives you different results ...
 
Title: Re: New Terrain Rendering possibility
Post by: Hagekura on 21 February 2013, 04:31:59
Looks Brilliant!