OGEX Blender exporter updated for 2.8 mesh api#1
Conversation
|
First thanks for this, been waiting to have a way to export OpenGex from Blender for a long time, to try it out. A few things though.
I'm not a python expert, I just looked it up. I'm not sure what the other plugins (Max and Maya) do for it, maybe it should be an export option if the user wants hex or floats. This also makes the file smaller. EDIT: I just noticed, the attributes say float but you're writing doubles, so you're adding way more precision, for reference: EDIT 2: I downloaded a free blender 3d model with some animations, tried to export it and failed :( Looks like every call: After that I managed to export, no idea if it exported everything from the .blend file imported, but at least it looks valid. |
|
I've been using it in batch mode on static scenes so I didn't test the export selection or much animation. I'll take a look at these issues in a couple of weeks when I'm back from vacation. The WriteFloat... stuff is from the old plugin, but adding the hex format shouldn't be too hard. Thanks for testing! |
This updates your blender exporter to use the new 2.8 mesh API and to use Node based materials (using Principled BSDF shader), as blender internal render is no longer supported.
I'm just using this for static scenes so I'm not sure if it works on animated characters. I didn't update the API for shape keys (morph targets) yet, so right now it just ignores shape keys, I'll try and go back and fix that in the future if I have a chance.
Thanks for the OpenGEX pipeline and all the resources you provide!