Filter

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

Moderator: Moderators

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

Filter

Post by Kjell » Fri Aug 15, 2008 7:22 pm

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 » Wed Aug 20, 2008 1:12 pm

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: 1650
Joined: Sat Feb 23, 2008 11:15 pm

Post by Kjell » Thu Aug 21, 2008 9:59 am

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 4072 times
Nearest.jpg
Nearest.jpg (36.2 KiB) Viewed 4072 times

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

sweet pixilation!

Post by jph_wacheski » Fri Aug 22, 2008 3:02 am

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