Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by Lego · May 03, 2011 at 07:40 PM · 2d-gameplay

2D GAME - Pixel - OnGUI/GUITexture/2D planes ... ? best solution ?

Hi,

I'm new to unity ! The crazy thing about the unity community and 2D games is that there is no real clear answer except "SM2" ...

I saw different things :

  • The good old plane with a texture on it After hours of research & test I managed to display a descent 32x32 texture (Filter mode to "Point" and all) on a 1x1x1 Cube with an orthographic camera. But the result isn't perfect...

alt text

And

  • OnGUI + GUI.DrawTexture()
  • The GUITextures

But is GUITextures/GUI.draw very suited for that kind of development ? (even for iOS ?). I'm thinking about the framerate (didn't tried this method yet).

How does people makes pixel-art games with unity ? is it even possible ?

Thanks !

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by loopyllama · May 03, 2011 at 08:43 PM

SM + edit it yourself. SM2, no additions needed but costs $$. or, Flat planes in 3d package with joints to animate things like arms, legs, head. Search zombieville in forums for details. The dev team was super cool about releasing how they did it.

Do not use unity gui anythings for this. they do not batch at all. you will have a draw call for each gui element.

you can get pixel pefect art. yes, set to point filtering, but also set to advanced and turn off mipmaps and turn off compression.

Comment
Add comment · Show 2 · 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 Lego · May 03, 2011 at 10:02 PM 0
Share

Just tried S$$anonymous$$. Not that easy to use. What is the "3D package" ? UnityPro package ?

When I set everything like that (point filtering, mipmap off, comp off) Unity render what I'm showing in my screenshot. This is far from perfect.

For others > Zombieville info : http://www.thecareergamer.com/braaaains-zombieville-usa-tech-review/

Thx for your help !

avatar image equalsequals · May 04, 2011 at 01:04 PM 0
Share

By 3D package he means a modeling suite such as $$anonymous$$aya, Blender, 3DS$$anonymous$$ax, etc.

avatar image
0

Answer by equalsequals · May 03, 2011 at 09:04 PM

I list a lot of best practices in this post: Universal Apps and Graphics Best Practices

Cheers

==

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 Lego · May 03, 2011 at 09:56 PM 0
Share

Very interesting. Thx.

avatar image
0

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

Both using Unity's GUI class or a sprite manager system, you can achieve 'pixel perfectness'. This should give better results than doing it in 3D with point filtering (especially when moving objects).

More info about this can be found here: 2D Game Development in Unity3D: Overview.

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.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Is it possible to make a game that looks 2d in Unity? 3 Answers

how can I create a virtual command prompt GUI for my game? 1 Answer

Automatically resize quad to match texture, in the editor 1 Answer

I need help with moving a character in Unity2D c# but just along a path 0 Answers

Having some stuck issues on the 2D infinite runner 0 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