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

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 3,981
    • 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: 414
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
    • Email
Re: A sneak peek of what I am working on ...
« Reply #1 on: 20 February 2013, 00:34:06 »
 :thumbup:

atze

  • Technician
  • ****
  • Posts: 117
    • 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

  • Horseman
  • ****
  • Posts: 150
  • To mod, or not to mod...
    • View Profile
    • Email
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,675
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
    • Email
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: Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon video driver
intelbox: Core Duo U7300 (2 cores @1.30Ghz), 4 GB RAM, Intel GMA X4500MHD (GM45 Express chipset, 256 MB shared RAM) @1360x768; latest stable Ubuntu release, (open source) i915 video driver
network link: VDSL2

MegaGlest resources · MegaGlest primer · Support tool: Linux System Report · How YOU can contribute to MG · Try the latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 3,981
    • 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
    • Email
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