godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.42k stars 20.24k forks source link

Support parenting setups in Collada I/O #2283

Closed Ace-Dragon closed 8 years ago

Ace-Dragon commented 9 years ago

Currently

Godot will import the parent object, but discard the child object. This might be due to a lack of support of the import of object parenting setups in both the better collada exporter and Godot's importer.

Proposal

Support all forms of parent/child relationships in both the exporter and the importer (and have the generated nodes resemble that setup as seen in the 3D application)

Benefits

It will make it a lot easier to create things like unique moving platforms (made just for a certain level), make it easier to create level-specific objects and allow one to increase the amount of level building work in the 3D application

I hope adding this will be seen as useful

Thanks.

romulox-x commented 9 years ago

Can you give an example of when the parent child relationship isn't maintained? I just tried importing a mesh as a child of another mesh that I exported from blender with bettercollada, and it worked fine, as far as I can tell.

slapin commented 9 years ago

Works for me, too

On Tue, Jul 21, 2015 at 2:55 AM, romulox-x notifications@github.com wrote:

Can you give an example of when the parent child relationship isn't maintained? I just tried importing a mesh as a child of another mesh that I exported from blender with bettercollada, and it worked fine, as far as I can tell.

— Reply to this email directly or view it on GitHub https://github.com/okamstudio/godot/issues/2283#issuecomment-123098259.

Ace-Dragon commented 9 years ago

The situation I saw was that parenting setups weren't imported properly when I added it to an existing collada file and a did a re-import with the keep materials, merge with new option.

Maybe the issue is it doesn't work with all import modes.

slapin commented 9 years ago

Nothing but Overwrite existing scene really works, but that is different issue.

On Tue, Jul 21, 2015 at 4:56 AM, Ace-Dragon notifications@github.com wrote:

The situation I saw was that parenting setups weren't imported properly when I added it to an existing collada file and a did a re-import with the keep materials, merge with new option.

Maybe the issue is it doesn't work with all import modes.

— Reply to this email directly or view it on GitHub https://github.com/okamstudio/godot/issues/2283#issuecomment-123127933.

akien-mga commented 8 years ago

Can you still reproduce this issue @Ace-Dragon?

Ace-Dragon commented 8 years ago

Hi Akien; Yes, it seems to be working now (even though I have to completely close the scene by clicking the X and re-open it to see any changes made).

akien-mga commented 8 years ago

(even though I have to completely close the scene by clicking the X and re-open it to see any changes made).

Yep, I believe that would be #2307