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 chillfok · Apr 11, 2012 at 12:34 AM · 2d gameplanemap

Map jpg to plane question

Hi,

I'm new to Unity and I'm trying to map a JPG to a plane. I managed to do that with a little dragging and dropping but I'm running into the following issue:

I can't seem to find a way to make the image to be "crisp". It's always smoothed out and kind of blurry. And also the size is different than the original file pixel wise. As for the latter I understand that this is related to the size of the orthographic camera I'm using but I can't find a way of making this work other than trial and error. I was hoping there would be an easier way of doing 2D (but this maybe just me being too stubborn in using a 3D software to do 2D work). Still, after getting the size to be close to the original image by playing with the plane and camera's size, the rendered quality is still not good as when I drop the image say in like Cocos2D and just use it. Messing with project settings' quality doesn't help much.

Any help is greatly appreciated.

Comment
Add comment · Show 1
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 garner · Apr 11, 2012 at 12:50 AM 0
Share

you have to set the quality settings of the view

http://unity3d.com/support/documentation/Components/class-QualitySettings.html

and also quality settings of the texture by changing the compression settings or removing compression in the inspector of the image.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Dunkhan · Apr 11, 2012 at 05:55 AM

Actually it's not the quality settings. It is the image texture settings. Assuming you are using pixel art and you want square and blocky pixels (I know I do), you click on the jpg asset in the project view in the editor. There should be an option near the top of the inspector called "filter mode". Change this to "point". If this is too crisp for you (ie you didnt want blocky pixels), you can try changing the texture type from "texture" to "advanced". There you will find an option called "non powers of 2" which can change to "none". This will only help if the texture is not a square with dimensions equal to a power of 2(eg. 64x64 or 128x128). If neither of these help then the answer in the comment above was probably right.

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 Kryptos · Apr 11, 2012 at 09:30 AM 1
Share

Using pixel art along JPEG image is quite contradictory, because of the way JPEG does its compression.

You should consider using PNG or even Bitmap images ins$$anonymous$$d.

avatar image chillfok · Apr 12, 2012 at 05:25 AM 0
Share

O$$anonymous$$, I'm almost there but can't quite get this. Using the above suggestions made a big difference though. I think my problem now boils down to how to relate Unity units to actual pixels as I think the texture is O$$anonymous$$ now but it's getting messed up because my camera settings are stretching/shrinking the texture. I made a simple project with one plane, one material, and one camera. Do you think you could take a look at it and see what's wrong with it? http://mnd.com.ar/test.rar

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

6 People are following this question.

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

Related Questions

Is there a more efficient way for me to make a map with modular pieces? 2 Answers

,Identifying direction of GameObject in Range 0 Answers

2D Top-Down RPG Levels 0 Answers

How to design a "game map" for 2d "finite" runner 0 Answers

How could I make a fog of war on a tilemap 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