openage icon indicating copy to clipboard operation
openage copied to clipboard

convert: Support HD Edition terrain textures

Open goto-bus-stop opened this issue 8 years ago • 2 comments

HD Edition has different terrain textures than 1.0c. They're now pngs that are transformed during render to fit the terrain:

g_uwtr_00_color

Textures are found in <Age2Dir>/resources/_common/terrain/textures.

Older HD Edition versions also still shipped with 1.0c's terrain SLP files, but they were removed as of patch 4.8. Currently, users have to downgrade to patch 4.3 before running the conversion.

I suppose to convert these new textures, they need to be cut up and transformed to generate the same output as the SLP conversion.

Interesting data:

  • The texture names seem to be derived from the name1 attribute on Terrains. eg. the g_wtr texture name is g_wtr_00_color.png.
  • The SLP id of the obsolete textures is still present on Terrain data from HD 4.8. So that could be used to map the texture name to an appropriate output file.

goto-bus-stop avatar Jan 24 '17 22:01 goto-bus-stop

Which is actually cool in that far that we finally have to implement actual perspective terrain rendering and blending. Because we should rather convert the old perspective diamond to the actual square tile.

See #141.

TheJJ avatar Jan 24 '17 22:01 TheJJ

Squares would be good, then you can implement 3d terrain rendering with isometric transorms in the shaders. would make terrain elevation quite easy to implement too.

Jon0 avatar Jan 25 '17 01:01 Jon0

Should be implemented by https://github.com/SFTtech/openage/pull/1497

heinezen avatar Apr 02 '23 22:04 heinezen