Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

Unity Will/Would you add support for 2D if your system already working in 3D?

This topic is 504 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For any system that already worked in 3D, is it worth the hassle to support 2D again for whatever reasons....

For example, in Unity, they support 2D and 3D games....

But when you editing stuff, they can well do it in 3D, and they don't have special support for 2D.

They just throw out a dimension in 3D so that you work as if in 2D....

I am considering to drop the 2D support for RAM save.

Thanks

Jack

Share this post


Link to post
Share on other sites
Advertisement

I am considering to drop the 2D support for RAM save.


Are you talking about writing an engine and removing the code for 2D systems to save code space? Or something else?

The vast majority of a game is its textures, sounds, and other big asset files. Unless your engine code is really crazy, I doubt any 2D subsystems will make a noticeable impact on RAM use compared to those.

Share this post


Link to post
Share on other sites

Nowadays all is quad based for sprites, so it's simply a quad batching.

Edited by Alundra

Share this post


Link to post
Share on other sites

In my opinion the only difference between 3D and 2D is the 'projection' matrix. You even need a z-buffer if you have two objects that overlap each other regardless if it is in 3D or 2D and so will always have a Z index in your coord system otherwise this wouldnt be possible or you need to sort draw-calls by your own what is a waste of CPU power.

Share this post


Link to post
Share on other sites

What you say about Unity isn't true. The whole rendering process is optimized for 2D when using the relevant component (SpriteRenderer). An engine supporting 2D games doesn't just "lock" the 3D dimension, it also performs a lot of optimizations when rendering 2D objects. It certainly doesn't submit 1 draw call per sprite/quad. You could do everything with a pure 3D engine but you would need to do all the batching work by yourself.

TL;DR; a modern 2D engine can be considered a 3D engine that performs heavy optimizations under the hood intended to improve rendering performance of 2D objects.

Whether or not you want to have that feature in your engine is entirely up to you.

Since you mention Unity also consider that they have a few more 2D features like sprite packing (automatic creation of sprite atlases), 2D animation support and even an upcoming integrated tile editor (which looks quite powerful)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!