1.7.2 Filter pad default setting
by Vern Jensen · in Torque Game Builder · 10/01/2008 (11:43 am) · 4 replies
It seems to me that if an imageMap is "FULL" instead of "CELL" then its filterPad setting should be 0, not 1. Is there *any* purpose in ever having a filterPad setting of 1 for FULL?
I've found that I often load images that are, say, 128x512, and "FULL" (just a single image), but I don't realize Torque sets the filterPad checkbox to true. And when I dump the textures, I find it's taking up 256x1024!
-Vern
I've found that I often load images that are, say, 128x512, and "FULL" (just a single image), but I don't realize Torque sets the filterPad checkbox to true. And when I dump the textures, I find it's taking up 256x1024!
-Vern
#2
Melv.
10/14/2008 (12:56 pm)
That's very odd and should not happen. Indeed "filterpad" should be automatically ignored on "full" type image-maps.Melv.
#3
Secondly, the reason I got a 128x512 image that turned into 256x1024 was that, prior to things being explained to me on the forums (about the power-of-two), I had gone through datablocks.cs and modified some of the filterpad settings by hand. So the GUI editor may indeed be smart enough to not let me set a "FULL" image that is ALSO a power-of-two to have a filter pad, but I got around this by editing datablocks.cs by hand, hence why I got a 256x1024 texture when it should've been 128x512. My mistake, due to ignorance.
Oh and in case you're wondering why I"m editing datablocks.cs by hand, it's because the Torque Builder does not always remember my changes when I use the GUI editor. It's a real pain. Easy way to see this: just drag an ImageMap to the trash can. It won't stay deleted when you quit and restart. (Mac TGB 1.7.2) You've got to edit datablocks.cs directly. So that's how I do most changes. Some checkboxes also don't remember their settings when you edit an imagemap, but, as I've just learned, maybe that's for good reason.
10/14/2008 (1:21 pm)
Well, first, I asked about this in another forum, and they told me that images must be a power of two for filterpad to be turned off. They were correct. With images such as 512x512, filterpad can be off with no white lines. But with oddly-sized images, like 378x414, you need filterpad "on" despite the "FULL" setting, or else you'll get white lines.Secondly, the reason I got a 128x512 image that turned into 256x1024 was that, prior to things being explained to me on the forums (about the power-of-two), I had gone through datablocks.cs and modified some of the filterpad settings by hand. So the GUI editor may indeed be smart enough to not let me set a "FULL" image that is ALSO a power-of-two to have a filter pad, but I got around this by editing datablocks.cs by hand, hence why I got a 256x1024 texture when it should've been 128x512. My mistake, due to ignorance.
Oh and in case you're wondering why I"m editing datablocks.cs by hand, it's because the Torque Builder does not always remember my changes when I use the GUI editor. It's a real pain. Easy way to see this: just drag an ImageMap to the trash can. It won't stay deleted when you quit and restart. (Mac TGB 1.7.2) You've got to edit datablocks.cs directly. So that's how I do most changes. Some checkboxes also don't remember their settings when you edit an imagemap, but, as I've just learned, maybe that's for good reason.
#4
The thing is that all this is controlled inside the datablock implicitly. If it detects a full image that's already a POT then it ignores the current filter-pad setting and doesn't apply it ... or at least it did last time I looked and for the very reason you're seeing imagery expanded for no good reason.
I'll check that out later.
Melv.
10/14/2008 (11:53 pm)
Vern,The thing is that all this is controlled inside the datablock implicitly. If it detects a full image that's already a POT then it ignores the current filter-pad setting and doesn't apply it ... or at least it did last time I looked and for the very reason you're seeing imagery expanded for no good reason.
I'll check that out later.
Melv.
Torque Owner Vern Jensen