0 votes

Hello Godot Community!

So here's the use case. Your game is 2D. You made your character 3D because 2D animation is hard and you want to have a lot of fancy animations. Ok good, now that you have that, you gotta put it in the game. The thing is though, you don't want to pre-render it and just use the sprites. Why? Well, there are a lot of reasons why but the most important one is that it limits flexibility.

So here's your other option you came up with. Import your 3D character in Godot, render it with camera and use the result as the sprite in your 2D game.

Possible benefits:
* real-time
* less hassle having to sort through individual sprites
* can more efficiently blend animations

The question: Is this solution possible and is it real-time? Or is there another way that still has these benefits?
If you can provide any documentation or helpful resources that would be greatly appreciated.

Godot version v3.2.3 stable win 64
in Engine by (15 points)

1 Answer

+1 vote
Best answer

This is less of a Godot question and more of a Maya, 3dsMax or Blender question.
I literally Googled Blender 3D to 2D and got this with the added bonus of Godot being added

by (4,982 points)
selected by

They're asking to render the character to 2D inside Godot, not inside of a different software. So no pre-rendering - they want to do it in real time.

Ah I see, completely skimmed the pre-rendered part. Was wondering but in the tests i've done using 3D in 2D its very bad performance wise with multiple characters sprites are definately the way to go.

OP what you want todo is quite possible. Its easily achieved using viewports.

Thanks alot. I'll look into that then.

There is actually a nice Demo in the asset-library to get you started

Rendering to texture is not suitable for real-time animation in most cases, as it is horrendously slow in both 2D and 3D. I suggest pre-rending your textures, and flipping through them. You'll get orders of magnitude better performance.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.