<div dir="auto">Progress report on animation export.</div><div dir="auto"><br></div><div dir="auto">This is broken English and more like notes.  Apologies!</div><div dir="auto"><br></div><div dir="auto">Action items from last night:</div><div dir="auto"><br></div><div dir="auto">1.  Get lighting and/or texture working</div><div dir="auto">2.  Verify segment location on gramps</div><div dir="auto">3.  Validate all output with glTF to X3D converter </div><div dir="auto">4.  Try transforms instead of joints, especially if there aren’t skin weights.</div><div dir="auto">5.  Animate mesh.  Attach mesh to humanoid (move humanoid end tag, look up object.bone_parent, add skin/skinCoord fields).</div><div dir="auto">6.  Get non-armature animation examples.</div><div dir="auto"><br></div><div dir="auto">Details:</div><div dir="auto"><br></div><div dir="auto">Animation code converted from x3d.py to XML output.  ROUTEs and interpolators present, but keys and keyValues not validated. <br>Duplicate adjoining positions and rotations removed for humanoid interpolators.  Humanoid with Joints exported.  <span style="font-family:-apple-system,helveticaneue">Joint export with centers and skin weights not validated yet.</span></div><div dir="auto"><br></div><div dir="auto">Segment/Site geometry <span style="font-family:-apple-system,helveticaneue">(injected Boxes) </span>is animated to test Joint animation export.  The injected segment geometry looks like it’s in the wrong location, particularly for gramps, perhaps because I removed a Transform.  I should bring over center computation from my exporter, or remove non-center transform attributes in HAnim export.  I should look to see how Transforms are exported.</div><div dir="auto"><br></div><div dir="auto">My examples only have humanoid animation that I know of.  More .blend and .glTF animation examples desired with non-armature animation.  The difference is that animation won’t be attached to an armature in the Blender hierarchy.</div><div dir="auto"><br></div><div dir="auto">Mesh export works.   Textures aren’t present (it’s dark) because I don’t have the texture pull request.  I do have ImageTexture with image file  exported. Could be a lighting or material issue.  Please provide a URL to texture git branch (not pull request).</div><div dir="auto"><br></div><div dir="auto">Mesh doesn’t animate with humanoid yet, the code only animates the skeleton.  My suggestion is to put mesh or mesh references inside the humanoid and add skin and skinCoord fields.  I’m not sure how to accomplish this for multiple geometries in sandrunner.  Another option might be to distribute geometries to the sites and segments by examining object.bone_parent.  This will require some thinking about how to link mesh output code to bone/joint output code.  Perhaps traversing the object hierarchy looking for bone_parent while creating a joint would be quick and dirty.  If no bone_parent is present, put mesh into skin field.</div><div dir="auto"><br></div><div dir="auto">Exporting bones as Transforms remains to be tried. Comments?</div><div dir="auto"><br></div><div dir="auto">The good news is the scenes are loading without validation errors, and Joints are animating.</div><div dir="auto"><br></div><div dir="auto">Suggestion is to translate glTF example to X3D to validate.  I’ve not downloaded the example glTF yet.</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Jan 5, 2025 at 8:40 PM <a href="mailto:vmarchetti@kshell.com">vmarchetti@kshell.com</a><<a href="mailto:vmarchetti@kshell.com">vmarchetti@kshell.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Responding to the request for test .blend or .gltf files that demonstrate animation:<br>
<br>
There is an animated "sandrunner", some kind of turbine powered hovering moped from Star Wars, that's been incorporated as a gltf inline in an X3D scene here: <a href="https://metagrid1.sv.vt.edu/~bsandbro/gltf" rel="noreferrer" target="_blank">https://metagrid1.sv.vt.edu/~bsandbro/gltf</a> <br>
<br>
The scene.gltf, scene.bin, and texture files can be downloaded from this folder : <a href="https://metagrid1.sv.vt.edu/~bsandbro/gltf/bike/" rel="noreferrer" target="_blank">https://metagrid1.sv.vt.edu/~bsandbro/gltf/bike/</a><br>
<br>
This model is originally from SketchFab : <a href="https://sketchfab.com/3d-models/hover-bike-the-rocket-8b2e5bfca78e41c791b4e5b5e8c04512" rel="noreferrer" target="_blank">https://sketchfab.com/3d-models/hover-bike-the-rocket-8b2e5bfca78e41c791b4e5b5e8c04512</a><br>
<br>
After downloading the scene.gltf and the resources (scene.bin, textures folder) I was able to import into Blender 4.2.1  There were some odd artifacts which were handled as discussed by others at <a href="https://projects.blender.org/blender/blender/issues/117812" rel="noreferrer" target="_blank">https://projects.blender.org/blender/blender/issues/117812</a><br>
<br>
I have put the resulting .blend file in the "submitted files" folder for the Jan 7 call. The url to download this sandrunner_bike.blend file is <br>
<a href="https://drive.google.com/file/d/1n4_Nb-7SdjnGFFIGSX4Tm5kJ4pWZamwk/view?usp=sharing" rel="noreferrer" target="_blank">https://drive.google.com/file/d/1n4_Nb-7SdjnGFFIGSX4Tm5kJ4pWZamwk/view?usp=sharing</a><br>
<br>
I've added a Blender and a camera and it renders fine as a static model. I don't know if the animation works, because I don't know how to make any animation work in Blender :) I hope to learn enough from Michalis Tuesday to find out.<br>
<br>
I hope these files help to test your exporter code<br>
<br>
Vince Marchetti<br>
<br>
<br>
<br>
<br>
<br>
> On Jan 5, 2025, at 2:50 PM, John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br>
> <br>
> I do hope this code can help someone export  animations from Blender.  There’s both bone and object export.  I’m not saying it’s complete yet.  .blend or .gltf animated files are welcome for me to test:<br>
> <br>
> <a href="https://github.com/coderextreme/BlenderX3DSupport/blob/main/io_scene_x3dv/blender/exp/export_interpolators.py" rel="noreferrer" target="_blank">https://github.com/coderextreme/BlenderX3DSupport/blob/main/io_scene_x3dv/blender/exp/export_interpolators.py</a><br>
> <br>
> Position and Orientation Interpolators are supported with a single TimeSensor.<br>
> <br>
> John <br>
> <br>
> On Sun, Jan 5, 2025 at 5:49 AM Vincent Marchetti via X3D-Ecosystem <<a href="mailto:x3d-ecosystem@web3d.org" target="_blank">x3d-ecosystem@web3d.org</a>> wrote:<br>
> Reminder about Blender-X3D meeting, with corrected link to agenda<br>
> <br>
> Date/Time is Jan 7 2025. at 12:00 PM EST, 17:00 UTC<br>
> <br>
> Zoom: <a href="https://us02web.zoom.us/j/81634670698?pwd=a1VPeU5tN01rc21Oa3hScUlHK0Rxdz09" rel="noreferrer" target="_blank">https://us02web.zoom.us/j/81634670698?pwd=a1VPeU5tN01rc21Oa3hScUlHK0Rxdz09</a><br>
> <br>
> Agenda Document: <a href="https://docs.google.com/document/d/1UmZ8f26cP4ZuG4kgDVT5YYzbGW-9fUY_qw0Asg4vEww/edit" rel="noreferrer" target="_blank">https://docs.google.com/document/d/1UmZ8f26cP4ZuG4kgDVT5YYzbGW-9fUY_qw0Asg4vEww/edit</a><br>
> <br>
> The code in the pull-request <a href="https://projects.blender.org/extensions/io_scene_x3d/pulls/49" rel="noreferrer" target="_blank">https://projects.blender.org/extensions/io_scene_x3d/pulls/49</a> also correctly exports a TextureTransform in the context of the HAnim example submitted by Joe Williams in email of Dec 27 "JoeKick...". To be accurate, the static TextureTransform is exported, the interpoolator nodes and ROUTE statements which serve to animate the TextureTransform fields are not exported. I hope that reviewing, with Michalis' help, the Blender way of handling animation will help guide how to export this animation to X3D.<br>
> <br>
> <br>
> Vince Marchetti<br>
> <br>
> -- <br>
> X3D-Ecosystem mailing list<br>
> <a href="mailto:X3D-Ecosystem@web3d.org" target="_blank">X3D-Ecosystem@web3d.org</a><br>
> <a href="http://web3d.org/mailman/listinfo/x3d-ecosystem_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-ecosystem_web3d.org</a><br>
<br>
</blockquote></div></div>