by Gez » Sun Dec 02, 2012 6:11 am
ibm5155 wrote:EDIT:if i remember right, someone did a mod that the fuz is 100% identical to the software fuz effect, i just can´t remember where I finded that mod =/
No, nobody did anything where the fuzz is 100% identical, because it is absolutely impossible.
Let's look at a small pixel grid:
123
456
789
To render pixel 5, the software fuzz effect will "borrow" a pixel from 2, 4, 6, or 8 from the background (not the actual sprite) and then darken its color by shifting it through the colormap.
With OpenGL shaders, you cannot get pixels from the background (strictly impossible) and also you do not use the colormap. Finally, shaders do not have access to pixels (or texels) at all, they don't know the dimensions of the image they're changing. They work with relative coordinates in floating point (so that 0.0 is left or top, and 1.0 is right or bottom), meaning that any attempt at making it pixely like the original effect will fail since you won't get the same pixel size on a fuzzy clip as you'll get on a fuzzy spider mastermind.
Being 100% identical to software is therefore absolutely impossible on at least three counts.
[quote="ibm5155"]EDIT:if i remember right, someone did a mod that the fuz is 100% identical to the software fuz effect, i just can´t remember where I finded that mod =/[/quote]
No, nobody did anything where the fuzz is 100% identical, because it is absolutely impossible.
Let's look at a small pixel grid:
123
456
789
To render pixel 5, the software fuzz effect will "borrow" a pixel from 2, 4, 6, or 8 from the background (not the actual sprite) and then darken its color by shifting it through the colormap.
With OpenGL shaders, you cannot get pixels from the background (strictly impossible) and also you do not use the colormap. Finally, shaders do not have access to pixels (or texels) at all, they don't know the dimensions of the image they're changing. They work with relative coordinates in floating point (so that 0.0 is left or top, and 1.0 is right or bottom), meaning that any attempt at making it pixely like the original effect will fail since you won't get the same pixel size on a fuzzy clip as you'll get on a fuzzy spider mastermind.
Being 100% identical to software is therefore absolutely impossible on at least three counts.