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
0
Question by impurekind · Aug 11, 2018 at 01:46 PM · texturespritevrpixel artanti-aliasing

Correct sprite/texture resolution and settings for "2D" sprites in 3D game?

I'm making a 3D fps that's a bit like Wolfenstein with enemy characters that are simple pixel sprites (currently created at 32x32 pixel size so they have an "8-bit NES" look), and I'm wondering what's the best way to go about putting then in the game, such as using filtering or not when I import them into Unity, and the resolutions I should use and that kind of thing?

I want to show these enemy sprites looking like they are actually the proper 32x32 pixels (nice and clean), and they will be scaled or put onto objects that are roughly 2.5 units high in Unity's scale (which is around normal human height in real-world scale). And this game will be running on both PC and in VR too, so although I want them to look like pixel art (with blatant large pixels), I also want everything (the pixel edges) to look clean and smooth regardless of how near or far they are from the player (especially important in the VR mode).

Right now I'm initially drawing them in Photoshop at 32x32 and then changing the size to 512x512 using "nearest neighbor" so they are scaled pixel perfect, and then when I import them into Unity I turn on trilinear filtering (because they look jaggy in the game otherwise), set the aniso level to 16 (because some of the textures were causing pretty bad moiré at a distance otherwise, which is real obvious and sickness-inducing in VR) and the compression to high quality (just to make sure).

But I'm a little worried I'm doing things in a way that's taking up too much space for every single sprite, especially when I get into animating some of them, where I'll have sprites that can made up of many 515x512 images. And I have no idea what kind of memory we're meant to use for all the sprites/textures in our games, as in what any limitations on this might be.

So, any suggestions on the correct way to go about this would be appreciated.

Comment
Add comment · Show 6
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 brendanperry05 · Aug 15, 2018 at 01:21 AM 0
Share

I thought that using the point filter mode is best for pixel art. Have you tried it? Where is the jaggedness co$$anonymous$$g in without trilinear filtering?

avatar image impurekind brendanperry05 · Aug 15, 2018 at 08:58 PM 0
Share

I'm not sure what the point filter mode is but I'll have a look. The jaggies are co$$anonymous$$g from the texture art itself, all over it, when you view it at various distances and angles, but turning on trilinear filtering keeps them looking pretty nice and smooth regardless of the distance they are from you. And as long as they're imported at high enough resolution then they still look like proper pixel art.

avatar image RShields · Aug 15, 2018 at 01:27 AM 0
Share

Traditionally, pixel art is imported as follows:

  • Filter $$anonymous$$ode: Point (no filter)

  • Compression $$anonymous$$ode: None

Does that not work?

avatar image impurekind RShields · Aug 15, 2018 at 08:58 PM 0
Share

I'll have a look and see. . . .

Edit: Nah, it comes in quite jaggy when viewed my game with those settings. At least if I don't resize it in Photoshop first like I'm already doing with the other sprites.

The filtering def helps, but it's only useful if I import the sprite at a high enough resolution first, otherwise it's just all blurry.

avatar image RShields impurekind · Aug 15, 2018 at 10:06 PM 0
Share

That's the way games like Wolfenstein 3D imported their textures. If that's not the look you're going for, you'll have to give more info on what you're trying to do. Pictures help.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

233 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 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

Sprite filtering: Point/Bilinear 1 Answer

Anti aliasing with sprites 0 Answers

How can I access a sprites texture and add it to a GUI button? 0 Answers

Sprite.Create is not working 1 Answer

Can i Use Pixel Animations for My Top Down Shooter? 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