Support exporting animation frames and scenery to OBJ with textures#158
Closed
Almamu wants to merge 17 commits intocbhacks:d/new-loadfrom
Closed
Support exporting animation frames and scenery to OBJ with textures#158Almamu wants to merge 17 commits intocbhacks:d/new-loadfrom
Almamu wants to merge 17 commits intocbhacks:d/new-loadfrom
Conversation
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>
Author
|
Closing PR in favor of #178 as it should be up to date with the deprecated branch. |
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.
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.