Scroller issues
by Alexander Loren · in Torque Game Builder · 07/12/2010 (12:08 am) · 5 replies
So I have just began to play with the demo of TGB to get a feel of how it all pieced itself together and the asset pipeline. While bringing in a few various assets and piecing together a test level, I had some issues with the two scroller objects I placed and displaying white blocks after the image had scrolled. I have thought it it could be that initially I brought in the images as non-pow x2, I have since changed them to pow x2 sprites; but that did not solve the issue. Below is the datablock that is used for creating the scroller, I dont see any errors within when compared to other scroller datablocks that I have seen. Is this by change a known issue, or possibly a driver issue on my end?

new t2dScroller() {
imageMap = "cloud001ImageMap";
repeatX = "3";
scrollX = "1";
scrollPositionX = "0.170348";
canSaveDynamicFields = "1";
Position = "0.000 -21.625";
size = "100.000 16.750";
Layer = "28";
mountID = "3";
};
About the author
#2
07/12/2010 (11:35 am)
So if I am understanding you correctly Kevin, you are saying that not only does the image need to be a pow x2 but that it must also be square (i.e. not 128x256), is this correct?
#3
07/12/2010 (12:03 pm)
Pow x2 is an optimization goal. For the scroller to scroll without the blank areas the image must be square and multiple of 32 (I always use 256 x 256 and it works fine). Perhaps it only has to be in multiples of 32 for the direction of the scroll, not sure about that. I was hoping someone who knows more about scrollers would chime in but the forums are dead today.
#4
So Kevin... are you saying that if I put my game on Alexander's system... the white boxes will reappear? Maybe a video card issue?
AAAH!
-Tim
07/13/2010 (10:23 pm)
I've used them without them being square... (64 x 256, scrolling upwards), but both dimensions did have to be pow2. They look fine currently in my game... on my system.So Kevin... are you saying that if I put my game on Alexander's system... the white boxes will reappear? Maybe a video card issue?
AAAH!
-Tim
#5
07/14/2010 (12:05 am)
No I'm not saying that. I think yours work because they are in multiples of 32. What happens when you scroll sideways?
Torque Owner Kevin James