Skip to content

Add support for QuakeMDL palletes as a reader option #3386

Description

@lavenderdotpet

Is your feature request related to a problem? Please describe.
Add support for QuakeMDL palletes as a reader option.

Certain .mdl files should use a different palette of color but this must be choosen be the user.
Lets add support for both QuakeMDL.color_palette and QuakeMDL.color_palette_path reader option and takes them into account.

The available color_palette should be:

  • quake1 (already in master and should be the default)
  • hexen2 (see archive below)

pals.zip

Users could also set QuakeMDL.color_palette_path to read a text based .gpl file to load a custom palette.

Describe the solution you'd like

  • Add hexen2 and the QuakeMDL.color_palette reader option, update test and doc
  • Add .gpl file parsing capabilityies and the QuakeMDL.color_palette_path reader option, update test and doc

Contribution
We suggests contributors to do this in separate PRs.

========================================================================

hexen 2 mdls which im mostly sure are the exact same format just a different palette
load wrong in f3d and the exhibit f3d fork/front end due to it assuming the quake palette

attatched are photos of f3d and LunarViewer

as for fixes for this issue im not sure if it can be automated
LunarViewer has a drop down to swap palettes for mdl

and the hexen2 mdl has the same header as q1 mdl as far as i can tell (heres a screenshot of both of them ina text editor showing the headers look the same)

Image

the fix that i can think of that would also support mods that have their own palette
would be a launch option thats like --palette /home/lavender/palettes/hexen2.gpl

.gpl is the palette standard gnu image manipulation program uses as can be seen here developer.gimp.org/core/standards/gpl/

Image Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    • Status
      Discuss

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions