kraftman wrote:I've started converting your code to use shaders just to see how much quicker it'd be.
There's only a couple atm, I'll add a few more later.
Obviously this needs 0.8+ to run
Wow, this speed is awesome! Just cloned the latest 0.8 source and built it just to test this,
I'm speechless..
btw., reading the changelog, I didn't see any mention of "shaders", were they already added earlier or are
they simply known under a different name?
Ancurio wrote:
btw., reading the changelog, I didn't see any mention of "shaders", were they already added earlier or are
they simply known under a different name?
GijsB wrote:but when we have shaders what is then the use of Imagedata:MapPixel(function)?
mapPixel can still be used for one-time image modification, or generating data from an image (tiled maps using an image for reference, like Notch likes to do things)
thelinx wrote:
mapPixel can still be used for one-time image modification, or generating data from an image (tiled maps using an image for reference, like Notch likes to do things)
thelinx wrote:
mapPixel can still be used for one-time image modification, or generating data from an image (tiled maps using an image for reference, like Notch likes to do things)
Also, not all platforms support PixelEffects.
But for that we have Qauds..
No, I mean making an image to show where tiles are located, then loading that image and putting the data in a table.
mapPixel pretty much works on all computers, shaders and framebuffers do not (although usually framebuffers just have nonPo2 issues).
kraftman wrote:
miko wrote:
GijsB wrote:but when we have shaders what is then the use of Imagedata:MapPixel(function)?
If I am not mistaken, output of the shaders goes directly to the screen, you can not save your modified image. With :MapPixel() you can.
You can draw to a Canvas/Framebuffer with a shader though.
framebuffers are not really intended for long term storage, I would definitely avoid using them for calculate once kind of things, especially if you need to make a lot of them.
The Burrito wrote:framebuffers are not really intended for long term storage, I would definitely avoid using them for calculate once kind of things, especially if you need to make a lot of them.