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 ragnaros100 · Oct 28, 2014 at 12:01 PM · 2dtexturesmetaspritemanager

sprite bug

Sorry if I'm confusing I have a problem where my stuff de-renders when I zoom in with an orthographic camera. I'm making a 2D game using pre 2D tools stuff and so far no textures have been dissapearing, since I've had the camera zoomed out quite a bit. But now that I need a closeup of the characters, they dissapear.

The wierdest thing is that the farther away the character is from world zero, the more frequent this happens.

I think this might be a unity bug or I'm just stupid. Anyone got any ideas?

I'm using the free spritemanager to animate my characters.

(I started on the project before 2D tools and I have waay too much code grounded in that, so it's very unlikely that I can change to the "new" 2D tools)

Picture of what happens: http://imgur.com/jgim4f2 (I didnt imbed it, since It's pretty annoying to have running whilst reading)

EDIT:

I figured out that the free spritemanager apparently centers ALL sprites to world zero. And once the orthographic camera can't see world zero anymore, the sprite de-renders!!

Now... How do I fix this? Turning off occlusion culling doesnt work

Comment
Add comment · Show 2
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 Itaros · Oct 28, 2014 at 12:19 PM 1
Share

What are your far and near camera clipping plane settings? For example, I prefer using -1 for near and 100 for far.

avatar image ragnaros100 · Oct 28, 2014 at 12:24 PM 0
Share

The near and far clipping planes are fine. (0.3 - 60) The sprites mesh is within those. The problem is the occlusion culling. I figured out that the spritemanager, that I use center it's sprites according to world space and therefore their position center is allways (0,0,0). That's why when the camera goes too far away, they de-render. I'm currently trying to fix this by childing the spritemanager to the player and update the vertecies position according to local space ins$$anonymous$$d of world space.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by ragnaros100 · Oct 28, 2014 at 12:33 PM

Fixed it. I just went through the spritemanagers' documentation and found a method that fixed the problem

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

27 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

Related Questions

Is there any benefit to slicing in power of two dimensions inside a sprite sheet? 1 Answer

Multiple alpha maps / moving alpha maps 1 Answer

Transition Texture or Material horizontally 0 Answers

Retina textures on 4.3 2D Sprite Packer? 0 Answers

Changing texture depending on angle to another player 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