Converting 3D animated object into 2D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By supagu

I’ve been using COA tools (GitHub - ndee85/coa_tools: COA Tools is a 2D Animation Suite for blender. It offers a 2D cutout animation workflow similar to programs like spine or spriter.) to export an animated character to godot and then have used the dragon bones module (GitHub - sanja-sa/gddragonbones: Plugin module for Godot 2.1 ... Godot 3.4 Game Engine to use DragonBones) to load and play the animations.

Now I have run into a problem where I want some form of skeleton to attach weapons and what not to the character, but the dragon bones implementation has no way to do that.

My idea has been to take the COA tools blender file and export to godot using a normal animated mesh. This works, but it is coming into godot as a 3D mesh/skeleton.

So I am wondering how I might be able to display that in a 2D world, or possibly to convert it from 3D to 2D myself? I’ve seen this: https://forum.godotengine.org/11440/3d-objects-in-a-2d-node but displaying my characters as 3D in a 2D world seems a bit overkill, and I’m not sure how if the z-ordering of sprites will work etc…

Does anyone have any ideas/ thoughts?

:bust_in_silhouette: Reply From: Antilo

You have the solution in demos as “3d_in_2D” . You should put the 3d player inside a viewport and call Sprite.texture= viewport.get_texture()