[x3d-public] Someone please double check my work, Re: exporting Hierarchies in Blender X3D export

John Carlson yottzumm at gmail.com
Sat Sep 16 10:55:06 PDT 2023


Making this small change to the Blender X3D export plugin is revealing. I'm
hoping someone with previous Blender submission experience can do a pull
request, but I will try.

$ git diff .
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index d4c9d523..dbbbd619 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -1451,7 +1451,7 @@ def export(file,
                 else:
                     writeDirectionalLight(ident, obj, obj_matrix, data,
world)
             else:
-                #print "Info: Ignoring [%s], object type [%s] not handle
yet" % (object.name,object.getType)
+                print(f"Info: Ignoring {obj.name}, object type {obj.type}
not handle yet")
                 pass

         #
---------------------------------------------------------------------


Results from my file:

$ bash runexport.sh
Blender 3.6.2 (hash e53e55951e7a built 2023-08-16 23:35:13)
Read prefs: "C:\Users\john\AppData\Roaming\Blender
Foundation\Blender\3.6\config\userpref.blend"
Universal Material Map: Registered Converter classes.
Read blend: "C:\Users\john\X3DJSONLD\blend\LILY_7_3_BLEND.blend"
Info: starting X3D export to 'fooLily.x3d'...
Info: Ignoring World, object type EMPTY not handle yet
Info: Ignoring World.001, object type EMPTY not handle yet
Info: Ignoring lily_7_3_animate, object type EMPTY not handle yet
Info: Ignoring CINEMA_4D_Editor, object type EMPTY not handle yet
Info: Ignoring node_t_Lily_RV7_Shape, object type EMPTY not handle yet
Info: Ignoring humanoid_root, object type ARMATURE not handle yet
Info: Ignoring Environment, object type EMPTY not handle yet
Info: Ignoring SkinnedMeshes, object type EMPTY not handle yet
Info: finished X3D export to 'fooLily.x3d'

So there are several "EMPTY" objects which look like Transforms in glTF.
I'm not sure what to do for those.

And yes, I'm working on ARMATURE!

John

On Sat, Sep 16, 2023 at 12:22 PM John Carlson <yottzumm at gmail.com> wrote:

> Okay, replacing the Blender X3D plugin seems to have helped, but the full
> HAnim hierarchy is not there, like it's there for glTF. Now I'm researching
> the X3D export plugin more.
>
> On Sat, Sep 16, 2023 at 11:33 AM John Carlson <yottzumm at gmail.com> wrote:
>
>> Please compare X3D exports when unchecking versus checking Hierarchies in
>> Blender X3D during export.
>>
>> Maybe use an HAnim figure in FBX for input.
>>
>> Thanks!
>>
>> There is a difference, but I don't think it's related to Hierarchies, see
>> below:
>>
>> $ diff lily_73.x3d lily_73xxx.x3d |fold|grep =
>> <               <meta name="filename" content="lily_73.x3d" />
>> >               <meta name="filename" content="lily_73xxx.x3d" />
>>                         vector="-0.667034 -0.638692 0.383586 -0.908024
>> -0.329782
>>                         vector="-0.667034 -0.638692 0.383586 -0.908024
>> -0.329782
>>
>> Full diff can be provided, but I don't think lots of numbers are useful
>> in comparison.
>>
>> Now you know why we can't pull HAnim out an X3D Blender export!
>>
>> John
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230916/2d6c7fbb/attachment.html>


More information about the x3d-public mailing list