TorqueX 2.0 Maximum Sprites Displayed?
by David Helmer · in Torque X 2D · 05/14/2008 (6:23 am) · 2 replies
Right now I was just stress testing a puzzle game I'm working on, and I had added 76 falling puzzle pieces and when I add the 77th, the first puzzle piece disappears. This behavior continues as I add more. I checked the TorqueObjectDatabase, and the first puzzle piece doesn't seem to be any different. I then started unregistering the most recently added puzzle pieces and the previously invisible pieces began appearing. Is there some cap on the number of sprites displayed? Thanks for any help.
EDIT:
I just noticed that you can fix this by setting the Camera.FarDistance to 1000, is there an explanation of why this works?
EDIT:
I just noticed that you can fix this by setting the Camera.FarDistance to 1000, is there an explanation of why this works?
About the author
A C# developer by day and a TorqueScript developer by night...
#2
05/14/2008 (10:02 pm)
FYI, neither fix works for me Scott. I can zoom in further before objects start disappearing, but they still disappear. FarDistance is the only 'fix' that seems to work on my game.
Torque Owner Scott Goodwin
I'm pretty sure I identitfied the bug causing the problem. If you have Pro, you can fix it.