Computer Science Canada [source code] Antialiasing - Blur Filter |
Author: | Tony [ Sun Nov 09, 2003 12:35 am ] | ||
Post subject: | [source code] Antialiasing - Blur Filter | ||
This is a filter you can apply to images in turing to blur them. It used whatdotcolor ![]()
filter itself is way too slow to generate real-time images for games, but if you need some turing created images blured, thats the way to go ![]() A practical use for it - antialiasing 8) ![]() You can antialias just about anything, even your text ![]() ![]() You might have to redraw parts of your image on top of the blured background to regain lost details. Also Note: apparently filter doesn't work for certain colors that are you'd think are in 255 strandart pallet:? "blue" doesn't work for example. "blue" doesn't work because it's color (1 on 255 scale) is being used as a value to store temporary value. change c=1 to c=255 to fix the problem. |
Author: | rizzix [ Sun Nov 09, 2003 12:41 am ] |
Post subject: | |
nice ![]() we need more of these filters in turing... |
Author: | thoughtful [ Sun Nov 09, 2003 11:43 am ] |
Post subject: | |
Hey tony thats awsome! i would have gave you some bits if i had lots ![]() ![]() ![]() ![]() Looks jus like the blurs i use in my Fireworks!!!(a software like photoshop) |
Author: | Catalyst [ Sun Nov 09, 2003 1:24 pm ] |
Post subject: | |
heres another filter http://www.compsci.ca/v2/viewtopic.php?t=1131 |
Author: | thoughtful [ Sun Nov 09, 2003 4:00 pm ] |
Post subject: | |
tony bro, if you apply the filter to a picture it gets all grayscale and stuff. I guess this is because whatdotcolor doesnt return RGB values...Why don't you write a module that does:) this will be sweet ![]() ![]() Edit:-well now i read the end of the post and realized that you already mentioned your filter's limitations but still please someone make the RGB module!! My hopes are high for catalyst! ![]() |
Author: | Tony [ Sun Nov 09, 2003 4:24 pm ] | ||
Post subject: | |||
well technically
should add a bunch more colors to the pallet... but it will take forever to load and would still not solve the problem if the image loaded uses a pallet with more then 255^3 colors ![]() |
Author: | Catalyst [ Sun Nov 09, 2003 4:37 pm ] |
Post subject: | |
you could also make a virtual frame buffer, rewrite all the draw functions and load the image binary urself ![]() |
Author: | Tony [ Sun Nov 09, 2003 5:14 pm ] |
Post subject: | |
that actually sounds like a good idea ![]() |
Author: | Andy [ Sun Nov 09, 2003 5:18 pm ] |
Post subject: | |
go whatdotcolor! |
Author: | AsianSensation [ Sun Nov 09, 2003 6:59 pm ] |
Post subject: | |
trust dodge to be stupid, you know, come to think of it, if someone did a search for the keyword whatdotcolor, I'm pretty sure in all of those posts, dodge would have some comments.... |
Author: | rizzix [ Mon Nov 10, 2003 12:15 am ] |
Post subject: | |
Catalyst wrote: you could also make a virtual frame buffer, rewrite all the draw functions and load the image binary urself
![]() what is super usefull is if someone created a library to load bmp files.. unlike the turing functions it should let me read each pixel directly from the file itself... if u can do this i can give u transparency etc and more! |
Author: | Tony [ Mon Nov 10, 2003 12:32 am ] |
Post subject: | |
well BMPs seem to have the easiest file format to read and try to load it yourself... but then again, every function you write in turing just slows everything down. Damn it... someone should walk over to Tom's house and force him to allow us to run .DLLs ![]() |
Author: | rizzix [ Mon Nov 10, 2003 12:43 am ] |
Post subject: | |
yea i'd agree.. but still it's worth it from a computer science point of view .. u know what i mean |