Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by sabertigersab · Feb 02, 2020 at 07:01 PM · 2d game2d spritesvectorpixel art

Vector Graphics versus Raster Graphics in Unity 2019.3

Now that Unity can import Vector Graphics (like SVG files) instead of just Raster Graphics (like PNG files), which Graphic type is more efficient to use in the software? As in, how to optimize for loading speed without losing art quality.

For example, let's say I want to make a 2D game that has a 'hand-painted' style. But, if one Scene has several different images imported then which Graphics type would be better suited for that game? Or at least in terms of maintaining speed and quality.

I'm wondering how to maximize using high-quality art while optimizing the speed of the engine. Especially optimization to prevent lags and/or over-heating of the physical device when playing the 2D game.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by sacredgeometry · Feb 02, 2020 at 08:55 PM

All graphics need to be rasterised in order to be displayed. Vector graphics are smaller, more convenient for storage, easier to modify, lossless when scaling.

But will incur a conversion cost, that said unless you are using a bitmap format you will probably be incurring some sort of decompression cost anyway.


Vector graphics are also not aesthetically the same as all rasterised graphics so your art style may be a limiting factor.

That said modern computers (let alone gaming computer) are not going to struggle in rendering 90% of 2D applications either way.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sabertigersab · Feb 03, 2020 at 04:16 PM 0
Share

Thank you for your response! I'm still a newbie in the game-making and coding sphere.

I'm curious, though, what do you mean by conversion cost for Vector?

Definitely understand the aesthetic differences between vector and bitmap art styles. I know I prefer bitmap programs for their ease and style of use. But I also wondering if it'd be worthwhile to learn Vector art programs in case the loss-less scaling was more beneficial for 2D games.

Another thing I wonder about vector versus bitmap graphics is the size of the image. Since vector is lossless in scaling then the original image size, when drawn in the art program, is irrelevant. But when drawing in bitmap, it's better to draw in a larger file size, right?

So then, how big is too big for big for a bitmap image in a 2D game? Especially if modern computers won't struggle to render most 2D applications like you said?

Again, thank you for your time and response!

avatar image
-1

Answer by LeFlop2001 · Feb 02, 2020 at 08:51 PM

Unless your making a physics focused game and or you have thousands of spawned entities in a scene performance won’t be an issue for 2d games

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sabertigersab · Feb 03, 2020 at 04:22 PM 0
Share

Awesome! That's good to know. Thank you for your time and response!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

158 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Problem With Pixel Art Pixel Size 2 Answers

Pixel Art with blurry outline in Game Window 1 Answer

Sprites blurring slighly when camera moving, even with Pixel Perfect 0 Answers

Why are my pixel art black in game window but not in scene windows? 2 Answers

Default Contact Offset Problems 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges