Support exporting animation frames and scenery to OBJ with textures (ported to deprecated branch)#178
Support exporting animation frames and scenery to OBJ with textures (ported to deprecated branch)#178Almamu wants to merge 17 commits intocbhacks:deprecatefrom
Conversation
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
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>
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>
|
Why not also have option to export directly to a .blend or .fbx for import in Blender 3.6 LTS or above? For those who want to skip the .obj step and jump straight into the blender step. |
.obj is easier to work with and easier to understand (for example, making a plugin to take the CrashEdit export, import into Unity and use the animations right as they are from the export is trivial, without the need of complex operations or adjustments). Not to mention that regardless of where you export the model to, you'll need to do some manual processing on the model for it to look right. |
|
Firstly @Almamu this is really cool I couldn't find any working builds of this fork - there is a dropbox link but it seems to be restricted. If anyone else comes across this, this was how I built it locally (as someone with zero .NET knowledge). Assuming you already have the .NET SDK installed (v8+)
Have provided a binary here |
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.
Things left to consider this PR completed: