Game Development Community

3.1.5 AnimateZoom function

by Raymond Ku · in Torque X 2D · 06/29/2010 (10:43 am) · 9 replies

I'm using the default scene camera's AnimateZoom function.
When I do this my sceneobject dissappears.

Other AnimatedSprites on the scene are appearing fine.
The sceneobject will reappear when the camera's zoomlevel is back to 1.0f.

If I turn off animatezoom everything works fine.

Not sure if I'm missing something with layer sorting or if this is a bug.

Ray

Edit: turns out there were some changes to layer sorting and my objects were being placed behind, Sorry all!

#1
06/29/2010 (5:12 pm)
Dang, i cant seem to figure it out. During the period when i zoom in and then zoom out, depending on what zoom level i have the camera set to zoom till, different animated sprites are dissappearing.
When i have the zoom set to something less, animated sprites that were gone before now play fine yet others in the camera view are gone.

Trying my luck looking through the source code but a lot i dont understand. Have a suspicious something to do with whats being rendered when the camera is Zooming in, but still ... headache >.<
#2
10/22/2010 (3:50 am)
sorry to bring this up again but disappearing animated sprites are plaguing my zooms again. This time i have some video.


the dissappearing sprites, is the static for the screen on the tv, and then the tv itself. You can see them appear as i zoom out, returning to the original zoom. Any suggestions of what i can do?
#3
10/22/2010 (6:15 pm)
Check out the first item in this post: www.torquepowered.com/community/forums/viewthread/115707 - Background & Particles Disappear When Lots on Screen

Not sure it's the solution, but it sounds similar to what we were experiencing.
#4
10/22/2010 (9:08 pm)
Thanks Josh, I had tried this a while back. no go =(. It seems to me that if the animated sprite is larger then the viewable window set by the camera (Camera.Extent?) then the sprite is not rendered, until the entire object fits within the camera range. Trying to sort through the engine to see if there is anything i can do, but my lack of understanding is killing me XD

i think if i can't figure it out, i might just enlarge all the objects and shrink them over time, or something like that
#5
09/16/2011 (10:43 am)
@Raymond: Did you ever figure this issue out? All my animations are also flickering or vanishing after the camera has been zoomed in.

Edit: turns out there were some changes to layer sorting and my objects were being placed behind, Sorry all! <- Not the case for me, I have tried this with no objects behind my animations (blank scene with just animations and the zoom function) and the problem still exists :(
#6
09/23/2011 (2:38 pm)
Aaron, do you also have this problem with 3.1.5? I am experiencung similqr problems with the CEV version but not with 3.1.5. I am however not sure what change led to this behaviour.
#7
10/07/2011 (12:51 pm)
@Christian: I havnt tested 3.1.5, but this is definitly "Broken" in the CEV. I found that cloning the animations fixes the issue. So whatever is different in the clone vs non cloned is the cause. I havn't had time to investigate fully. I will try to update the CEV if I get around to fixing the issue.

FYI: I also have a fixed version of the Storage Manager if you need it, the CEV version is also broken.
#8
10/10/2011 (1:12 pm)
@Aaron: What sort of issues did you find in the Storage Manager? It would be great to get your new version. My email is john@supersoul.co
#9
10/20/2011 (10:50 pm)
@John Meister: Email sent. I want to also give credit to John Nieder for pointing out some MU Pull preventions (important for Peer Review)! Our solutions matched up almost identical, so I can safely say this is a good Storage Manager fix. Anyone else can contact me via twitter @AaronScovel