Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bone Names are not exported #67

Open
StanleySweet opened this issue Apr 30, 2018 · 2 comments
Open

Bone Names are not exported #67

StanleySweet opened this issue Apr 30, 2018 · 2 comments
Labels

Comments

@StanleySweet
Copy link

StanleySweet commented Apr 30, 2018

Hey there,

I'm one of 0 A.D.'s devs I might have met some of you in Lyon this year, and I have an issue with the script. I'm using a script I made there to generate game specific skeletons for my game, and when using the default exporter it works fine, but when doing so with yours it messes up every name by generic ones is it something I'm doing wrong ? (Since it messes up names I can't use it for the game)

https://github.com/StanleySweet/0AD-Skeleton-Generator

@bojidar-bg bojidar-bg added the bug label Apr 30, 2018
@StanleySweet
Copy link
Author

StanleySweet commented Apr 30, 2018

To be more specific here is the same dae in the zip file with both exporters For some reason Blender now adds the armature name too. I fixed that in the next commit I'll make to my script
Original Exporter

                            <bone name="Deer01_Deer01_Head">
                                <bone name="Deer01_Deer01_Ponytail1">
                                    <bone name="Deer01_Deer01_Ponytail1Nub"></bone>
                                </bone>
                                <bone name="Deer01_Deer01_Ponytail2">
                                    <bone name="Deer01_Deer01_Ponytail2Nub"></bone>
                                </bone>
                                <bone name="Deer01_Deer01_HeadNub"></bone>
                            </bone>

With Godot Exporter

                            <bone name="id-bone-8">
                                <bone name="id-bone-9">
                                    <bone name="id-bone-10"></bone>
                                </bone>
                                <bone name="id-bone-11">
                                    <bone name="id-bone-12"></bone>
                                </bone>
                                <bone name="id-bone-13"></bone>
                                <bone name="id-bone-14"></bone>
                            </bone>

Maybe that's because I'm using ids instead of names
Deer.zip

@setzer22
Copy link

setzer22 commented Mar 10, 2020

I also have encountered this issue. Is there any known workaround I could do to fix this in the meantume?

I've just named my bones manually in blender but when using assimp to load my model I cannot see the original bone names.

EDIT It seems my problem is slightly different. In my export, no <bone> tags are generated, and the <node> tags in <visual_scene> have both name and id fields. The problem is assimp ignores the name and uses the id directly. Since all the information is there in the XML, I've set up a custom auxiliary parser to work around this limitation in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants