Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View culling of sprites broken if the sprite is within a certain rotation range #273

Closed
justStand opened this issue Nov 21, 2018 · 2 comments
Labels
area-Graphics bug Something isn't working good first issue Good for newcomers

Comments

@justStand
Copy link

Release Type: Official Release

Version: 3.0.0.6

Platform(s): Windows

Describe the bug

If the rotation is set to -1 radians, whenever the center of the sprite goes off screen, the entire sprite will stop being rendered.

To Reproduce
Steps to reproduce the behavior:

  1. Start with default project.
  2. Set camera projection to orthographic.
  3. Set position to 0,0,5
  4. Set rotation to 0,0,0
  5. Remove the plane / sphere.
  6. Create a new sprite. Add any texture that you want to it.
  7. Set the rotation in the inspector to 0, 0, -57.2958
  8. Run the project and use the camera controls q / e to get the sprite towards the edge of the view port.

Expected behavior
Sprite should be rendered if partially visible.

Screenshots
rotbug

@justStand
Copy link
Author

Here's a gif demonstrating the issue a bit better.

rotbug2

@xen2 xen2 added bug Something isn't working help wanted good first issue Good for newcomers area-Graphics labels Dec 6, 2018
@dklompmaker
Copy link

I'll take this one. It should be relatively easy to solve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Graphics bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants