Conversation
An additional layer of abstraction to expedite multi-file conversions. Ideally, multiple files will be loaded, then processed (creating a common data store when applicable), then saved.
Arguments will be sorted out later. For now, a hardcoded test has been added, as well as a new function: objex_resolve_common(). It doesn't do anything yet, but it is intended to be where most of the remaining logic takes place.
Doesn't support palettes yet. Supporting palettes in this way may may prove to be a highly involved process. We shall see!
z64convert is now capable of accepting OBJEX2 input files containing multiple game rooms defined using special tags. To save space, it determines which assets (textures, palettes, and materials) are shared among rooms, and it optimizes them into a common data bank. All rooms, including the data bank, are exported as separate files. This commit satisfies the test condition `test/CommonSimpleSingle`. This feature isn't limited to game worlds, but those will be the most common use-case. In the future, we may extend it to support external animation banks for skeletal meshes. Should we wish to, test files must be created first.
A new command line argument has been added for embedding a binary header/footer. This will make it easier for other tools to work with assets generated by z64convert.
Generates and embeds the bare minimum header data required to produce scene/room files that work in-game. I'm running the following command as I test this: z64convert --in test/CommonSimpleSingle/complete_room.objex --out bin/CommonSimpleSingleWorld --world-header '0,0,0' --scale 10.0
The model was inside out. Thanks for the fix on such short notice! @Zeldaboy14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New features
z64convertis now capable of accepting OBJEX2 input files containing multiple game rooms defined using special tags. To save space, it determines which assets (textures, palettes, and materials) are shared among rooms, and it optimizes them into a common data bank. All rooms, including the data bank, are exported as separate files. This commit satisfies the test conditiontest/CommonSimpleSingle.z64convert.z64convert --in test/CommonSimpleSingle/complete_room.objex --out bin/CommonSimpleSingleWorld --world-header '0,0,0' --scale 10.0type 2mesh header format when doing so.