• 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
0
Question by Septien · Nov 28, 2010 at 02:24 PM · game

2D Game - Special Effects

I am searching for reference (books, online tutorials) about 2D Special effects, in the style of the ones seen in 2d titles such as Castle Crashers, Zombieville USA.

Both a listage of common solutions + techniques would be great, as I am kind of lost on how to start learning this topic properly.

Can anyone point me in any?

Thanks in advance

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

4 Replies

· Add your reply
  • Sort: 
avatar image
-1

Answer by IJM · Nov 28, 2010 at 02:51 PM

Google for "Graphics Gems" books.

Comment
Add comment · 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
0

Answer by Jay_Adams · Nov 28, 2010 at 05:35 PM

Depends on what you mean by '2d effects'.

I'm pretty sure they are both 3d games (not old school 2d sprites). So they are built just like the Unity 2d platform tut.

The artwork is cell shaded. Couple ways to do that.

Worst but easiest way: 1- Unity has a built in cell shader, though I'm not too happy with it. First it can double your draw calls. Every model is turned inside out, rendered a solid color (usually black) and pushed out for line thickness. The major issue is any polys with hard edges get split (try a cube) and it leaves gaps in the outline. Plus it also only shows outline around the entire object, hard to outline details.

Best way: 2- You can do this in a modeling program just as easy really. If you use a separate material for the outline color you'll get double draw calls, but you can always hide a little square of black on your texture, then shrink the uv's of the outline model down to nothing and put them on the same sheet, that'll save a draw call and ALOT of performance. You can also use thick outlines on your texture to outline things like pockets, glasses, hats... Stuff that wouldn't show with the outline model.

Then still use a cell shade material in Unity, but not an 'outlined one'. That'll give you the flat colors, and with a ramp you can get the 'blocky' highlights. (makes the shading in chunks of color, not smooth real shading so it looks cartoony)

Comment
Add comment · 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
0

Answer by Thom Denick · Feb 04, 2011 at 08:31 PM

You can get some nice effects in 2D Games by using the built-in Particle Renderer.

Here are some tutorials to get you started: http://unity3d.com/support/documentation/Manual/Particle%20Systems.html http://forestjohnson.blogspot.com/2007/12/particle-effects-tutorial.html http://www.burgzergarcade.com/tutorials/game-engines/unity/23-particle-effects-unity3d-tutorial

Some pre-built packages: http://www.unifycommunity.com/wiki/index.php?title=Particle_Library

It looks like Zombieville actually uses these particle effects in some areas for the explosions and the like, but generally the gibs and such are hand-animated or at least single cels drawn and thrown into Unity's Physics system.

Comment
Add comment · 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
0

Answer by bernardfrancois · Oct 20, 2011 at 08:12 AM

There are several ways of doing 2D in Unity3D, but to achieve a rich set of graphical effects, you'll need to do them in 3D and use an orthographic camera to make it flat 2D.

The fact that you're still using the 3D engine gives you access a myriad of graphical effects, including particles, physics and animation blending.

Comment
Add comment · 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

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

getting udp package info inside unity (GlovePIE) 0 Answers

Porting existing C/C++ codebase 0 Answers

How Do I Could I Make Ragdoll Out OF This Model!? 1 Answer

How To make game installer ? 3 Answers

Object move back to first position 4 Answers


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