Scroller trouble
by Vern Jensen · in Torque Game Builder · 12/11/2007 (12:47 pm) · 12 replies
I've used scrollers before and never had a problem, but right now, when I try to get an image to scroll, there are blocks of white in it when I turn scrolling on. At first I thought this was because my image was not an even power of 2 (i.e. not something like 32x128), but even when I changed the image to be 32x128, or 64x256, it still had blocks of white in it when it scrolled.
Any idea what's causing this? Do scrollers have to be the same width as height or something like that? Or some other restriction I'm unaware of?
Version: 1.5.1, latest build.
EDIT: Just noticed that all my working scrollers are the same height and width. Otherwise, they seem to have white blocks in the middle, the size of which seems to be based on the difference between the object's height and width. So is this an unwritten requirement (or one I haven't read about) for scrollers, that their width and height must be the same?
Any idea what's causing this? Do scrollers have to be the same width as height or something like that? Or some other restriction I'm unaware of?
Version: 1.5.1, latest build.
EDIT: Just noticed that all my working scrollers are the same height and width. Otherwise, they seem to have white blocks in the middle, the size of which seems to be based on the difference between the object's height and width. So is this an unwritten requirement (or one I haven't read about) for scrollers, that their width and height must be the same?
#2
Is this documented anywhere?
12/11/2007 (2:03 pm)
In further testing, I've found it seems to need to be both a power of two *and* the same width as its height. Can anyone confirm?Is this documented anywhere?
#3
12/11/2007 (2:39 pm)
I'm using scrollers where the height is not equal to the width.
#4
12/11/2007 (6:49 pm)
Huh. What are their dimensions? I wonder why mine aren't working unless the width equals the height.
#5
PS: im also using uneven width/height imagemaps, and their scrollers are ok.
12/12/2007 (5:44 am)
Maybe you're leaving the padding option on, and since that adds some pixels to the imagemap, it might be the cause of those "blank" fields in the scroller... PS: im also using uneven width/height imagemaps, and their scrollers are ok.
#6
12/12/2007 (10:45 am)
Nope, tried turning off filter pad just now, didn't help. Huh. Besides that though, it's *blocks* of white, not just a line or two. The size of the block seems to depend on the image's dimensions... sometimes it's maybe 1/5 of the image's size, sometimes nearly equal in side to the image. (That is, the image will scroll off being replaced entirely by white, then right as the image is nearly all-white, the normal image starts to scroll on again.)
#7
In my project, white boxes are in perhaps 20% or more of them.
12/12/2007 (4:28 pm)
Here's a quick thing anyone could check and report back here: go to your project, and in the "Scrollers" section, move your mouse over each one that is there. Do white boxes appear in any of them?In my project, white boxes are in perhaps 20% or more of them.
#8
12/12/2007 (4:47 pm)
I see it too, but only on irregularly sized textures such as 50 x 8, 112 x 64, 44 x 37.
#9
12/13/2007 (11:09 pm)
I have the same case than Joe, only with the odd sized pix, i experience the white borders.
#10
12/14/2007 (7:46 am)
It could be that they are being resized to power-of-two textures for faster GPU processing.
#11
12/15/2007 (7:12 am)
Post one of your problem images here and I'll test it.
#12
12/15/2007 (9:24 am)
I have the same case than Joe, only with the odd sized pix, i experience the white borders.
Associate Phillip O'Shea
Violent Tulip