-
Notifications
You must be signed in to change notification settings - Fork 26
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 exporting animation frames and scenery to OBJ with textures #158
Open
Almamu
wants to merge
16
commits into
cbhacks:d/new-load
Choose a base branch
from
Almamu:d/new-load
base: d/new-load
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
…o d/new-load # Conflicts: # CrashEdit/Controllers/Animation/OldFrameController.cs
Added OBJ export to normal scenery entries Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
…o d/new-load # Conflicts: # Crash/Formats/Crash Formats/Animation/OldFrame.cs # Crash/Formats/Crash Formats/Scenery/SceneryEntry.cs
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
This enabled 3D software with scripting capabilities (like blender) to display textures properly Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Frame export should keep filename length the same regardless of the amount of frames Added eid to texture export to prevent textures being overriden when they were indeed different Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
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.
This PR adds the following featurers
Once the OBJ is exported it can be imported in any 3D software. Due to the OBJ format being a bit lacking, there's some minor adjustements that need to happen once imported into your 3D tool of choice. I'd recommend using blender and this script to get the best results possible:
The script will update all the materials in use and create the proper Color Attribute and color mixing required for everything to display properly.
It might be possible to improve the export in the future, like using object groups for exporting all frames of an animation as one single obj file, instead of multiple, or pack the textures into one texture atlas to make better usage of the texture space, but it should be a good starting point for anyone looking to export animations and scenery.