Hello Guest

Author Topic: Weird rendering on sprite when I rotate on y-axis - Please Help  (Read 4422 times)

Vordas

  • Newbie
  • *
  • Posts: 1
    • View Profile
Weird rendering on sprite when I rotate on y-axis - Please Help
« on: December 03, 2014, 11:36:25 am »
Hi, I just start working with 2D Toolkit and I need to say that it's great tool for 2D games. I just start to devoloping new 2D game for Android market but I have one issue. I mean to create 2D Memory MatchUp game. So I have cover sprite and card sprite which is child of cover sprite. On both sprites is atlas texture from 2D Toolkit and one material on both sprites. On material I set shader like is on defult "tk2d/PremulVertexColor". My problem is when I rotate cover sprite in inspector panel on y-axis I get weird rotation and also when I animate rotation with animation view on y-axis. Rotation is not 3D it's like spin out. To see what I mean see image:
https://www.dropbox.com/s/2j7ggz2ft999m8z/2DToolkit_Rotation-Problem.png?dl=0

It's weird rendering in game view when I rotate cover sprite which is on top-right corner in scene view.

Please can I solve this problem and how do I solve it? I was trying to solve by changing shaders and I was trying them all but still nothing changes. I build game for web player so you can see how sprite weird rendering when it's rotating on y-axis: https://googledrive.com/host/0B5uli9YhlHZxQmlpQWhlMm1wcGM

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Weird rendering on sprite when I rotate on y-axis - Please Help
« Reply #1 on: December 04, 2014, 10:00:53 am »
Just reposting from the Unity forums -
Hi,
It looks like the sprites are too close / too far away from the camera. Pull the camera away from the sprites and it should work better, make sure there is enough room for the object to rotate in the z axis, you might need to change the far clip plane too.