Get and Manipulate individual pixels on screen
-
It would be very useful and powerful if we were able to get and manipulate individual pixels on screen.
-
@Kamdroid Yep. Rather than making a scene with like 3 million squares for each pixel.
-
@Aidan-Oxley @Kamdroid
This requires exposing shaders, which are wonderful, amazing, incredible little programs that run within programs to influence geometry and pixels (and anything else).
Mostly these are written in low levels maths, which I understand very little of. But there's thousands of them, already written, and shared around.the.world.
You can see some of the amazing things that shaders can do here: https://www.shadertoy.com
Shaders for pixels are known as pixel or fragment shaders. Fragment is a fancy way of saying "part of the screen" just as shader is a fancy way of saying "small, mostly GPU, low level program".
-
I think shaders is on the road map.
-
@Deeeds I don't necessarily want shaders (although would be nice), I just primarily want to get and set the colour of the pixels on screen (Even Scratch can get the colour of a pixel at a coordinate).
-
@Kamdroid What use would this have?
Other than lighting, also on the roadmap?
-
@Thecheater887 For get pixel colour at coordinate, being able to apply logic based on a pixel's colour. E.g. only do something if an object is on a green pixel etc.
Change pixel, for more advanced stuff. Create dynamic images, cool pixel-based effects etc
-
@Kamdroid I think this would be great!👍
-
@Thecheater887 I could make a proper Mandelbrot set! Rather than having big chunky laggy pixels made of objects. (Google it if you don’t know what it is, it’s an awesome graph based 100% off weird maths)
-