<div dir="auto">I have been assigning a matrix_local to EMPTYs. I can resume assigning matrix_world, if you think that will help. I can distinguish between an HAnim node to swap between matrix_local and matrix_world if there’s an algorithm that works.</div><div dir="auto"><br></div><div dir="auto">“Y Up” is an export option.</div><div dir="auto"><br></div><div dir="auto">I’m pretty sure that EMPTYs have names, because I can see them in the blender hierarchy. I pretty much know that one of the exports has DEFs ending in “TRANSFORM.” That’s because pretty much all EMPTYs are exported as Transform. The transform export code is not mine, I inherited it and I’m barely familiar with it. I’m thinking about doing python set comprehensions for HAnim, testing if HAnim* EMPTY’s “DEF” ends with a known HAnim name.</div><div dir="auto"><br></div><div dir="auto">We should be able to attach any geometry to EMPTYs currently, bones, IDK.</div><div dir="auto"><br></div><div dir="auto">At this point, I am too confused whether transforms work or centers work. I remember things rotating around the origin and not the center.</div><div dir="auto"><br></div><div dir="auto">John </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 11, 2024 at 8:40 PM Joe D Williams <<a href="mailto:joedwil@earthlink.net">joedwil@earthlink.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div style="font-family:arial,sans-serif;font-size:12pt;color:rgb(0,0,0)"><p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">> <span style="font-size:12pt;font-family:arial,sans-serif">For example, I can “turn off” Y up, if needed.</span></p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"><span style="font-size:12pt;font-family:arial,sans-serif">Why, Y is up. Don't let it be turned on in blend. That is first, know that the blender default cood sys is like x3d global and hanim local. </span></p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"><span style="font-size:12pt;font-family:arial,sans-serif"> </span></p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">> <span style="font-family:"Times New Roman";font-size:medium;white-space:normal;float:none;display:inline;color:rgb(0,0,0)">translating EMPTYs to something besides transforms.</span> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">The thing is called Empty because it does not have a name, then either a transform matrix or some mesh data. You make an Empty a Transform by giving it a default matrix to handle translation, rotation, scale, and other stuff that can make a Transform node that does something we want it to do.</p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">So, for default before animation in blend you want to see a hierarchy of named Emptys to handle the Humanoid, the Joint, The Segment, and Site Nodes. Jin has Joint center data and Site translation data. If an Empty won't do a transform center, then that is a problem that can be cleverly dealt with, I think.</p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">Should be able to create a replica of the 20 hierarchy.</p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">A section of the GUI shows you what it thinks it has, with indents, just duplicate that by import 20 or type it into the GUI. Then can start thinking about inserting certain Empties to put some geometry.</p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">See, the blend only has a GUI to show you what is happening (no readable user code)and let you create the node as you go input stuff by giving you these Empties to start with.</p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">You make the node from an Empty by giving it data. At some point fifure where to put geometry, and some animation. </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">For animation, each frame you just compute and update the the matrices then render the thing. </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">Thanks, John, more later. </p></div><div style="font-family:arial,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">Joe</p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
</div>
<div style="border-left-width:1px;border-left-style:solid;box-sizing:border-box;padding:10px 0px 10px 15px;margin:0px;border-left-color:rgb(170,170,170)">
<p>-----Original Message-----<br>From: John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>><br>Sent: Jun 11, 2024 3:43 PM<br>To: Joe D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>><br>Cc: Carol McDonald <<a href="mailto:cemd2@comcast.net" target="_blank">cemd2@comcast.net</a>>, GPU Group <<a href="mailto:gpugroup@gmail.com" target="_blank">gpugroup@gmail.com</a>>, Katy Schildmeyer KS APPAREL DESIGN <<a href="mailto:katy@ksappareldesign.com" target="_blank">katy@ksappareldesign.com</a>>, X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>><br>Subject: Re: Can you get this X3D animation imported into Blender?</p>
<p style="margin:0.1rem 0px;line-height:1"> </p>
<div dir="auto">For example, I can “turn off” Y up, if needed.</div>
<div><br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Tue, Jun 11, 2024 at 5:35 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div dir="ltr">Here are the Blender exports, from glTF/.bin exporter, x3d exporter and x3dv exporter. So you can see that the hierarchy is exported for Jin 20. Is there anything else you want me to do, except what I previously outlined?
<div>
<div> </div>
<div>Thanks!</div>
</div>
</div>
<div dir="ltr">
<div>
<div> </div>
<div>John</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Tue, Jun 11, 2024 at 12:38 PM Joe D Williams <<a href="mailto:joedwil@earthlink.net" rel="noopener" target="_blank">joedwil@earthlink.net</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div style="font-family:arial,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">I think the most important is to figure out how to get blender to export the stuff we need, hierarchy, shapes, and animations. These are all gltf asset types that blender should support. We would like a direct export of x3d syntax, but the gltf will be testable since a couple of browsers say they can import. </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">There should be a way to import the last transform hierarchy example you showed.</p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">That is a fine example that should show some patterns in the blender data. </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">Study the gltf assets along with other json to see what we can use. </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">So, I would like to see import/export of last jin-like no geometry loa4 example skeleton I sent, but a main item to advance x3d hanim and blender would be to get the ASCII exports of gltf and related working. For the .blend or from the internal stores the basic stuff for hierarchy, geometry, and animation are in there just needing to be extracted. The gltf and related are supposed to help us get these data types. </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">Otherwise, the main item would be to either import or type in a testable loa4 hierarchy skeleton, then figure out how to export it back to x3d. It would be ok to settle for gltf instead of pure x3d syntax. </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">What other work in x3d-to/from-blender is available?</p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">Thanks,John.</p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif">Joe</p>
<p style="margin:0.1rem 0px;line-height:1;font-family:arial,sans-serif"> </p>
</div>
<div style="border-left-width:1px;border-left-style:solid;box-sizing:border-box;padding:10px 0px 10px 15px;margin:0px;border-left-color:rgb(170,170,170)">
<p>-----Original Message-----<br>From: John Carlson <<a href="mailto:yottzumm@gmail.com" rel="noopener" target="_blank">yottzumm@gmail.com</a>><br>Sent: Jun 10, 2024 1:13 PM<br>To: Carol McDonald <<a href="mailto:cemd2@comcast.net" rel="noopener" target="_blank">cemd2@comcast.net</a>>, GPU Group <<a href="mailto:gpugroup@gmail.com" rel="noopener" target="_blank">gpugroup@gmail.com</a>>, Joe D Williams <<a href="mailto:joedwil@earthlink.net" rel="noopener" target="_blank">joedwil@earthlink.net</a>><br>Cc: Katy Schildmeyer KS APPAREL DESIGN <<a href="mailto:katy@ksappareldesign.com" rel="noopener" target="_blank">katy@ksappareldesign.com</a>>, X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" rel="noopener" target="_blank">x3d-public@web3d.org</a>><br>Subject: Re: Can you get this X3D animation imported into Blender?</p>
<p style="margin:0.1rem 0px;line-height:1"> </p>
<div dir="auto">First off, I asked for priorities to work on. Blender was one of the top priorities. So I’m working on it. If you are not interested, I will stop sending to you messages. Only a couple of people responded.</div>
<div dir="auto"> </div>
<div dir="auto">If you have something higher priority than Blender, that you are invested in, please bring it up.</div>
<div dir="auto"> </div>
<div dir="auto">John</div>
</div>
<p style="margin:0.1rem 0px;line-height:1"> </p>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
<p style="margin:0.1rem 0px;line-height:1"> </p></blockquote></div></div>