Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
2
Question by Chris Lightfoot · Feb 01, 2011 at 01:19 PM · pixelbitmap

How to simulate/display 2D pixelated graphics?

Is it possible to render say a 320x240 window at 640x480 and just double up the pixels? I'm going for a retro feel; In flash I just render everything to a Bitmap object and scale it up; was thinking it might be possible to somehow "render" to a Texture/Mesh (still learning unity sorry) and then just scale that up...

I did find this: http://answers.unity3d.com/questions/26853/can-i-scale-up-screen-pixels but it's only for Unity pro

This is just for a 2D platformer (Think Sonic 1 :-p, but not... heh)

Thanks, Chris

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
2
Best Answer

Answer by Jessy · Feb 01, 2011 at 01:44 PM

Any texture that you want to look like that, just use Point filtering. I don't have Unity Pro, so don't have experience with Render Textures, but I assume that would work. What is the exact effect, here? You want to use 3D models, but have their edges sampled at a frequency much lower than what the screen resolution offers?

Comment
Add comment · Show 5 · 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 Borgo · Feb 01, 2011 at 02:16 PM 0
Share

I guess what he want is a post effect. just to get a effect like this: http://www.pixelgraft.co.uk/wp-content/uploads/2007/08/pixelate.jpg

avatar image Chris Lightfoot · Feb 02, 2011 at 12:16 PM 0
Share

Yep; although it seems a waste to get the GPU to do all that hard work and then remove it -- I've seen a bunch of 2d platformer games that have what appear to be low resolution and then scaled up; was just wondering how they were doing it.

avatar image Chris Lightfoot · Feb 02, 2011 at 12:34 PM 0
Share

Point filtering seems to do the trick; at least to get pixellated textures! Just have to figure out the coordinate system to achieve a 320x240 feel :-D.

avatar image Chris Lightfoot · Feb 03, 2011 at 10:52 AM 0
Share

Had a further play with this and I think I'll end up scripting the camera to do it all automatically; trying to tweak the camera using the editor just doesn't seem to get it right... I'm also not sure what scale to use; Whether to use a scale of 320x240 or use 1/320 x 1/240... it seems there's some limits on the values Unity will use...

avatar image Jessy · Feb 03, 2011 at 11:05 AM 0
Share

I'm not sure what you mean by that. Are you just having problems with integer division? Those fractions are equal to zero unless you put the letter F after them.

avatar image
-2

Answer by e-bonneville · Feb 01, 2011 at 03:26 PM

No, Unity doesn't work like that, sorry. You have to manually create all the textures at a low resolution if you're going for a pixelated effect.

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 Chris Lightfoot · Feb 02, 2011 at 12:27 PM 0
Share

All my graphical assets are already scaled for 320x240; This is purely for 2d not 3d;

avatar image
0

Answer by thomasfriday · Jul 13, 2021 at 08:45 AM

Here's a short Youtube video that covers exactly how to get a pixelated look: https://youtu.be/Sru8XDwxC3I


pixelated cube

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

Turn off texture filtering completely? 1 Answer

Is there any kind of Bitmap API available? 0 Answers

2D Games with C#? 3 Answers

Trying to create 2D pixel art lighting 1 Answer

Change Sprite size in pixels. 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