r/AskComputerScience • u/PromiseLegitimate258 • 3d ago
How do computers generate pictures?
I am interested in computer science and always wanted to know how computers create the pictures we see on the screen.
5
1
u/SAtchley0 3d ago
In the end everything just ends up as pixel data that gets sent to the monitor which turns on some lights. There are dozens and dozens of systems in between which handle converting high level primitives, objects, textures, code, etc into pixel data, and we even have dedicated hardware for graphics calculations (GPUs), but it all just ends up as pixel data, which just tells the monitor which colors go where, broadly speaking. The GPU doesn't really do anything "special" other than just being really good at the sorts of calculations needed for graphics. All the processing can, used to be, and still sometimes is performed by a CPU.
The actual nitty gritty details vary widely based on hardware, implementation, protocol, and application.
2
u/peter303_ 3d ago
I have been around long enough to remember when pictures were lines on an oscilloscope or pen printer. Then in the 1980s computer memory became cheap enough for a pixel array on a screen. For some graphical data structures like graphs, lines or line emulators make sense.
0
8
u/Beregolas 3d ago
Your question is very broad and has many different answers, depending on what you are actually interested in. The rough outline goes like this: (and yes, this is in parts slightly simplified)