Page 1 of 1

Pixel Sampler

Posted: Tue Mar 05, 2019 4:48 pm
by artnik
Has the ability to sample pixel values at a coordinate been suggested before?

Use case would be an array of objects that vary based on the values of the pixels beneath them, or at another specified point, allowing video content to be interpreted using objects, such as a grid of spheres, or a chunky heightfield made up of cubes scaled in Z.

Re: Pixel Sampler

Posted: Tue Mar 05, 2019 4:53 pm
by Magic
Nope, I think that's a reasonable idea.

Though as I think about it more, I'm not sure how it would fit in to the current framework to get linked values from video. Might not be simple. I'll ponder.

Re: Pixel Sampler

Posted: Tue Mar 05, 2019 5:31 pm
by artnik
The Simplicity Paradox is a thing. When something appears simple, the back end infrastructure is always conversely complex. :-)

Re: Pixel Sampler

Posted: Tue Mar 05, 2019 6:06 pm
by Magic
Correct! Making things simple for the user is often complex for the developer.

Re: Pixel Sampler

Posted: Tue Mar 05, 2019 8:49 pm
by Sadler
I wrote very simple shader that would invert an image based on how bright it was at a specified pixel. This is very useful for keeping bright frames under control. Could the same technique be adapted, to sample an image and then apply that colour to the other input. Colour, of course, is the logical choice and would be relatively easy. Other attributes such as scale and position might be easy programmatically, but artistically how would one translate the sampled pixel to another attribute - colour might be a bit erratic for most attributes other than colour. If the video/image is a monochrome graduation then scaling a grid of object based on pixel value might make for a nice ripple effect.

Re: Pixel Sampler

Posted: Tue Mar 05, 2019 9:35 pm
by damstraversaz
a very interesting topic and discussion !