Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert: Support HD Edition terrain textures #720

Closed
goto-bus-stop opened this issue Jan 24, 2017 · 3 comments
Closed

convert: Support HD Edition terrain textures #720

goto-bus-stop opened this issue Jan 24, 2017 · 3 comments
Labels
area: assets Involved with assets (images, sounds, ...) area: renderer Concerns our graphics renderer lang: python Done in Python code nice new thing ☺ A new feature that was not there before

Comments

@goto-bus-stop
Copy link
Contributor

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.
@TheJJ
Copy link
Member

TheJJ commented Jan 24, 2017

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 TheJJ added area: assets Involved with assets (images, sounds, ...) bug Behaving differently as it should behave lang: python Done in Python code labels Jan 24, 2017
@Jon0
Copy link
Member

Jon0 commented Jan 25, 2017

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.

@TheJJ TheJJ moved this from TODO to input in renderer Feb 15, 2017
@TheJJ TheJJ added this to conversion in convert Apr 5, 2017
@TheJJ TheJJ added nice new thing ☺ A new feature that was not there before and removed bug Behaving differently as it should behave labels Aug 25, 2017
@TheJJ TheJJ moved this from input to todo in renderer May 2, 2018
@TheJJ TheJJ added the area: renderer Concerns our graphics renderer label Aug 25, 2020
@heinezen
Copy link
Member

heinezen commented Apr 2, 2023

Should be implemented by #1497

@heinezen heinezen closed this as completed Apr 2, 2023
convert automation moved this from conversion to done Apr 2, 2023
renderer automation moved this from todo to done Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: assets Involved with assets (images, sounds, ...) area: renderer Concerns our graphics renderer lang: python Done in Python code nice new thing ☺ A new feature that was not there before
Projects
No open projects
convert
  
done
renderer
  
done
Development

No branches or pull requests

4 participants