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

Multi texture support #79

Open
helloer opened this issue Dec 27, 2021 · 0 comments · May be fixed by #80
Open

Multi texture support #79

helloer opened this issue Dec 27, 2021 · 0 comments · May be fixed by #80

Comments

@helloer
Copy link
Contributor

helloer commented Dec 27, 2021

Game renderer supports multi texturing for polygons, but we need to update .PMS map format to make use of it. Ideally, this update to map format should be backwards compatible.

To make it usable, we need to store:

  • Textures array of texture filenames that are being used. Maybe we could reuse Scenery array?
  • TextureIndex new per-polygon field with an index to the Textures array

Currently, we set TextureIndex for all polygons to the default texture of the map here and here.

After updating .pms we will have to update PolyWorks and polywonks map editors to support this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant