Export Bones Blender

I have a simple skeletal grid created using Blender, and I'm trying to export it for rendering in OpenGL.

My question is: what is the simplest export format to use to analyze the mesh (especially reinforcement / bones) and visualize it in a C / C ++ program?

I managed (without any problems) to display the object in the grid, so this is not a problem. I searched a lot, and I tried different formats, but in fact I run into difficulties with all of them. It would be great to use .obj , but, in my research, it does not support bones.

So what format should I use to (easily) parse bones?

+4
source share
2 answers

The best solution is to create a custom script to export the grid in a very convenient format for analysis.

The blender has a Python interpreter, and it's pretty easy to write a script, especially if you just want to export your grid and don't want to provide the community with a new export script.

A good place to start is Blender 3D: Noob to Pro / Python Scripting

Unfortunately, the Blender API has changed a lot from version 2.4x to 2.5 and higher, so the tutorial is no longer updated (even if it may be useful).
So the best place (until the moment I write, I have not found many good Blender 2.6x scripting guides) is where to find the Blender Documentation material.
It is also Python, so anyone can rely on the syntax and constructs of Python, and the Internet is full of Python tutorials.

+2
source

The DirextX.X format supports bones.

I don't know if the Blender exporter supports bones.

In general, people tend to write their own file formats to fit their needs.

0
source

Source: https://habr.com/ru/post/1389327/


All Articles