Author Topic: New Terrain Rendering possibility  (Read 6028 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
New Terrain Rendering possibility
« 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.


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

« Last Edit: 20 February 2013, 17:44:12 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
Re: A sneak peek of what I am working on ...
« Reply #1 on: 20 February 2013, 00:34:06 »
 :thumbup:

atze

  • Technician
  • ****
  • Posts: 119
    • View Profile
Re: A sneak peek of what I am working on ...
« Reply #2 on: 20 February 2013, 01:26:25 »
Looks great.  :thumbup:
this signature is not available in your country

MightyMic

  • Technician
  • ****
  • Posts: 150
  • To mod, or not to mod...
    • View Profile
Re: A sneak peek of what I am working on ...
« Reply #3 on: 20 February 2013, 01:54:48 »
Nice Titi, looks awesome  ;D

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: A sneak peek of what I am working on ...
« Reply #4 on: 20 February 2013, 08:41:51 »
Doh, which game is this?! ;-)
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: New Terrain Rendering possibility
« Reply #5 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 ...
 
« Last Edit: 20 February 2013, 17:58:40 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Hagekura

  • Archmage
  • ******
  • Posts: 524
    • View Profile
    • Hageus_Iaponicus(@Hageus_Hagekura)さん | Twitter
Re: New Terrain Rendering possibility
« Reply #6 on: 21 February 2013, 04:31:59 »
Looks Brilliant!
Bushido to iu wa shinu koto to mitsuketari.

Japanese Faction Mod

 

anything