How to create a screen with 800 * 600 pixels

I would like to create a screen with 800 * 600 pixels.

So far I realized a screen of 30 * 30 pixels. Each pixel is a plane object. This does not take very long to execute.
If I make it 60 * 60 pixels it takes a few minutes to execute.

Is there a better way to realize a screen with many pixels?

The picture below shows my result


Use the array?

How could I assign a color to each copy of the base object in the array?

By assigning a material to each object - a unique material - with a specific color. But, I have a feeling you want to do via python script? Doing it by hand is possible, but tedious and prone to mistakes.

There is no way to manipulate a texture with Python?

There isn’t a way to manipulate textures with Python?

Yes there is a way. Take a look at https://gist.github.com/knowuh/48136d7a17387e7cf6c3

Actually, I was thinking that maybe perhaps he could have the screen be a single plane with a single texture, and then he would just manipulate the pixels of the texture. Or did I understand the goal incorrectly?

Hello Tiago Tiago,

My goal is to express the R, G and B values of each pixel of the image as a function of x and y in Python and show it on a screen in the 3D viewport of Blender.
So if I could do that with a single plane, manipulating one texture that would be great.

How could I create pixels in a texture?

Google led me to this, see if it helps: https://blenderscripting.blogspot.com/2012/08/adjusting-image-pixels-internally-in.html

Hello Tiago Tiago,

Thank you very much!
Right on the spot.
Got it up and running.

Cool!

I’m glad to to be of help :slight_smile: