question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request for bone length to be exported

See original GitHub issue

Bones have a concept of length in Blender, which currently is not exported. This is useful, particularly when trying to load another object in-game at a location relative to the end of a bone. You can parent an object to a bone in Blender, and it is rendered in Blender relative to the end of the bone. But there is no way to get it in the correct place after it has been exported without the offset along the length of the bone.

To get the data I needed in-engine I simply added the following to gltf2_generate.py at line 1913 in generate_nodes()

node['length'] = blender_bone.length

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
donmccurdycommented, Dec 3, 2018

One thing we could do, though, would be to add “leaf” bones — just another node at the end of the last bone in the chain. The FBX exporter has an option for this, and it allows you to attach things there for instance. Marking as an enhancement, would be good to hear if there are other use cases…

1reaction
setpixelcommented, Jan 8, 2019

Yes - this is a pretty important thing to visualize the bones. For now I’m just adding a bone to the end of every dangling bone. +1 for leaf bones

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQs for the Commerce Categories I-III (final rule) - BIS.doc.gov
55: When determining whether License Exception LVS can apply to an export, do you consider the value of the commodities at the ECCN...
Read more >
China - Food Safety and Inspection Service - USDA
U.S. facilities can only export to China beef, pork, or poultry that are slaughtered and further processed after the facility has been added...
Read more >
Importing into the United States A Guide for Commercial ...
import and export laws and regulations and implements immigration ... If the goods are to be released from CBP custody at the time...
Read more >
Monitoring compliance of CITES lion bone exports from South ...
(2015) [9] over five years, and observed changes in the broader lion trade industry, international politics and consumer demand, the utility of ...
Read more >
Fetal nasal bone length: reference range and clinical ...
Fetal nasal bone length: reference range and clinical application in ultrasound screening for trisomy 21. V. Bunduki,.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found