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

SurfaceSkin property for MODELDEF. #58

Closed
wants to merge 5 commits into from
Closed

SurfaceSkin property for MODELDEF. #58

wants to merge 5 commits into from

Conversation

StrikerMan780
Copy link
Contributor

@StrikerMan780 StrikerMan780 commented Jul 16, 2016

This is a new property for MODELDEF that allows one to override MD3 surface skins, this is useful if one wants to change textures on only one part of a MD3 model on demand, without needing to make duplicate MD3 files, nor having to split them into separate models. This can allow one to have multiple variants of high-poly, smoothly animated 3D Models without drastically bloating the filesize of a mod, and saves on memory.

The syntax is as follows:
SurfaceSkin int<model index> int<surface index> string<path>

Surfaceskin uses a full path to it's skin, instead of using the "path" property, this is for ease of use, and falls in line with how skins are defined in the MD3 format itself.

@arookas
Copy link
Contributor

arookas commented Jul 16, 2016

Line 703 uses surface for the < check, but index for the >= check. Is it supposed to be surface for both?

Regardless, this property would be 👌 to have.

@StrikerMan780
Copy link
Contributor Author

Oops, slight oversight. I'll fix that now.

@coelckers coelckers closed this Jul 16, 2016
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 this pull request may close these issues.

3 participants