Filter

ZGE Source Code discussion. Ask questions, present your changes, propose patches etc.

Moderator: Moderators

Post Reply
User avatar
Kjell
Posts: 1911
Joined: Sat Feb 23, 2008 11:15 pm

Filter

Post by Kjell »

Hi,

Added a Filter property ( List ) to the Bitmap Component which enables you to choose between Linear ( default ) and Nearest.

K
User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

Post by jph_wacheski »

can we see a couple of images of the differance? just wondering what the differance in apearence will be,. sounds like you been doing loads of interesting work adding cool features,. did you ever get the gamepad stuff to work ?
iterationGAMES.com
User avatar
Kjell
Posts: 1911
Joined: Sat Feb 23, 2008 11:15 pm

Post by Kjell »

Hej jph,

Same 16x16 Bitmap, different Filter.

Code: Select all

this.Pixel.R = X;
this.Pixel.G = Y;
this.Pixel.B = 1-Y;

if(X == 0 || X == 1-1/16){
  this.Pixel = 1;
}

if(Y == 0 || Y == 1-1/16){
  this.Pixel = 1;
}
Joystick isn't done yet, I'll have to find some time to finish it up.

K
Attachments
Linear.jpg
Linear.jpg (31.27 KiB) Viewed 17313 times
Nearest.jpg
Nearest.jpg (36.2 KiB) Viewed 17313 times
User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

sweet pixilation!

Post by jph_wacheski »

ah, that was what I thought,. excellent! I hope you add this to the next release, as I am a fan of some sweet pixilation! and just having more choices in general.., could other filters be implemented easily?
iterationGAMES.com
Post Reply