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

Support SGM files, disable texture options, new modelcompiler tool #2962

Merged
merged 6 commits into from Jun 25, 2014

Conversation

fluffyfreak
Copy link
Contributor

Support SGM files:

@Luomu added the option to export a file from the ModelViewer called SGM which bundles all of the preprocessed model/material/etc data into a single file for quicker loading. However he never enabled loading of it by default in the engine

New modelcompiler tool:

This can convert individual models or it has two batch modes for processing ALL of the models in the ./data/models/ sub-folders.

"usage: modelcompiler [mode] [options...]\n"
"available modes:\n"
" -compile [-c] model compiler\n"
" -batch [-b] batch mode output into users home/Pioneer directory\n"
" -batch inplace [-b inplace] batch mode output into the source folder\n"
" -version [-v] show version\n"
" -help [-h,-?] this help\n"

Running it with -b inplace outputs the .sgm version of the file into the same folder as the .model originated from. This might not be what you desired as .sgm files are loaded in preference to .model files and will NOT automatically pick up any changes you make to your models, textures or other files.

Disable texture options:

This is in response to the issues #2829 & #2435. All textures checked into GitHub are now DDS so I have added warnings to check that the GPU/driver supports them and error out if not.
This comes along with the SGM support since it bundles the textures and materials into it thus making extracting them that little bit trickier.

Andy

@fluffyfreak
Copy link
Contributor Author

@robn or anyone with more Linux Automake experience than me, I need to some help with getting the modelcompiler built as a separate program.

@fluffyfreak
Copy link
Contributor Author

Ah ha! Nevermind I worked it out! :)
Been too long since I've done anything with Linux makefiles... no, wait... damn

fluffyfreak added a commit that referenced this pull request Jun 25, 2014
Support SGM files, disable texture options, new modelcompiler tool
@fluffyfreak fluffyfreak merged commit 7a50ca6 into pioneerspacesim:master Jun 25, 2014
@fluffyfreak fluffyfreak deleted the sgmload branch June 25, 2014 15:08
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.

None yet

1 participant