(Unit 0) Intro 1: Rendering

UofM Introduction to Computer Graphics - COMP 3490
8 Sept 202012:05

Summary

TLDRIn this introductory lecture for Comp 3490: Computer Graphics One, the instructor delves into the foundational concept of rendering, which is the process of translating data into visual displays. The lecture emphasizes the importance of pixels, the smallest individually accessible display elements, predominantly squares but with alternatives like anamorphic (rectangular) and non-rectangular pixels such as hex pixels. The instructor also introduces raster graphics, explaining how they are composed of a grid of pixels, and touches on various file formats like JPEG, PNG, and BMP that are used to store these pixel grids. The lecture aims to provide students with a solid understanding of the basics of computer graphics, setting the stage for more advanced topics in the course.

Takeaways

  • 🎓 The lecture is part of the COMP 3490 course on computer graphics, focusing on the basics and building blocks of the subject.
  • 🖼️ Rendering is defined as the process of converting abstract data into a visual display on a screen, which is a fundamental problem in computer graphics.
  • 🔍 The lecturer introduces pixels as the smallest individually accessible display elements, typically squares, but with alternatives like anamorphic and non-rectangular pixels.
  • 📐 Anamorphic pixels are non-square, rectangular pixels used in certain displays like TVs where one dimension is more important than the other.
  • 🔲 Non-rectangular pixels, such as hex pixels, were used in early computer graphics for benefits like reduced aliasing and free transformations.
  • 🎨 Raster graphics are graphics made up of a grid of pixels, with each pixel having a specific color, used in common formats like JPEG, PNG, and BMP.
  • 🌐 The course will mainly deal with rendering, which is central to computer graphics, though other forms of graphics like vector graphics are not covered in this course.
  • 🖼️ When zooming in on a raster graphic, like a leaf, it appears as a grid of square blocks, which is the essence of raster graphics.
  • 📚 The script suggests that understanding the basics of raster graphics is important for grasping how images are displayed and manipulated in computer graphics.
  • 📈 The course appears to be interactive, with the lecturer encouraging students to experiment with raster graphics to deepen their understanding.
  • 🔄 The script mentions that while some modern programs may hide the pixel grid for a smoother appearance, it's crucial for learning to see the underlying structure.

Q & A

  • What is the main focus of the first lecture in COMP 3490 Computer Graphics?

    -The main focus of the first lecture is to introduce the fundamental problem of rendering in computer graphics, which is the process of converting abstract data into a visual display on a screen.

  • What is rendering in the context of computer graphics?

    -Rendering in computer graphics is the process of converting abstract data structures into a visual representation on a display screen.

  • What are pixels in the context of computer graphics?

    -Pixels are the smallest individually accessible display elements that can be read and written to, typically represented as squares on a screen.

  • What is an alternative to square pixels that is commonly used in certain displays?

    -An alternative to square pixels is anamorphic pixels, which are non-square and rectangular, often used in displays where one dimension is more important than the other, such as TVs.

  • Why might anamorphic pixels be used in video compression systems?

    -Anamorphic pixels are used in video compression systems to compress one direction more than the other, resulting in rectangular pixels, which can be beneficial for certain displays like TVs where one dimension is more important.

  • What is the issue that can occur if anamorphic pixels are not set up correctly during video conversion?

    -If anamorphic pixels are not set up correctly during video conversion, the image may appear squished or distorted due to incorrect pixel settings.

  • What are non-rectangular pixels, and why were they used in the past?

    -Non-rectangular pixels, such as hex pixels, are a type of pixel that is neither square nor rectangular. They were used in the past for certain specialized hardware and applications due to benefits like reduced aliasing and the ability to provide free transformations.

  • What is the advantage of hex pixels in terms of image transformations?

    -Hex pixels offer the advantage of providing five free transformations compared to the three that square pixels offer, which can be beneficial in systems where rotations are needed without losing data.

  • What is raster graphics, and how is it related to pixels?

    -Raster graphics is a type of graphic made up of a grid of pixels. Each pixel in the grid has a color, and shapes are created by coloring the pixels, similar to coloring on graph paper.

  • What are some common file formats that use raster graphics?

    -Common file formats that use raster graphics include JPEG, PNG, BMP, and PCX. These formats provide different features such as compression and lossless detail.

  • Why might some modern graphics programs not show the individual square blocks when zooming in on an image?

    -Some modern graphics programs may not show individual square blocks to provide a cleaner and more visually appealing representation, although this can make it harder to understand the underlying raster graphics structure.

Outlines

00:00

🎨 Introduction to Computer Graphics and Rendering

The first paragraph introduces the course COMP 3490: Computer Graphics. The lecturer mentions that the previous class was an introduction to the course and computer graphics, and there's nothing significant to remember from it. The focus of the current lecture is on the fundamentals of computer graphics, specifically rendering. Rendering is defined as the process of converting abstract data into a visual display on a screen. The lecturer emphasizes that rendering is a central theme throughout the course. The concept of pixels as the smallest individually accessible display elements is introduced, and the importance of their accessibility for reading and writing is highlighted. Pixels are typically square, but alternatives are mentioned, setting the stage for a deeper dive into rendering and pixel structures.

05:00

📐 Understanding Pixels and Raster Graphics

The second paragraph delves deeper into the concept of pixels, explaining that while they are predominantly square, there are alternatives such as anamorphic (rectangular) and non-rectangular pixels like hex pixels. Anamorphic pixels are used in certain displays where one dimension is more important than the other, such as in TV screens, and can be encountered in video encoding and old CRT displays. Hex pixels, which are less common, offer benefits like reduced aliasing and additional free transformations, which were particularly useful in early hardware and specialized applications. The paragraph also introduces raster graphics as images composed of a grid of pixels, each with a color value, allowing for the creation of shapes and images by manipulating these pixels. The concept is fundamental to various image formats like JPEG, PNG, BMP, and PCX, which are all variations of raster graphics, each with its own compression and detail preservation techniques.

10:02

🖼️ Exploring Raster Graphics and Image Formats

The third paragraph continues the discussion on raster graphics, providing examples of different image file formats such as JPEG, PNG, TIFF, and BMP, which are all based on the raster graphics format. It explains that JPEG uses a type of compression based on Fourier techniques, while BMP does not use compression, and PNG offers lossless compression, preserving all details. TIFF is mentioned as being more suited for cameras and printing. The lecturer suggests an exercise for students to zoom into an image using their favorite painting tool to observe the grid of pixels that make up the image, emphasizing the importance of understanding the underlying structure of raster graphics. The paragraph ends with a note on the lecturer's intention to continue the topic in the next part of the video.

Mindmap

Keywords

💡Rendering

Rendering in the context of computer graphics is the process of generating a two-dimensional image from a three-dimensional scene. It is a fundamental problem because it involves converting abstract data into a visual representation on a display screen. The video emphasizes rendering as a core concept, explaining that it transforms data structures like linked lists or trees into images that can be seen and understood by users.

💡Pixels

Pixels are the smallest individually accessible display elements that make up an image on a screen. They are the basic units of digital images and can be thought of as the building blocks for creating visuals on a digital display. In the video, pixels are highlighted as key to understanding how images are formed, with the script mentioning that they can be read and written to, and are predominantly square in shape.

💡Raster Graphics

Raster graphics, also known as bitmap images, are digital images that are composed of a grid of pixels. Each pixel in the grid has a specific color value, and together they form the complete image. The script introduces raster graphics as a simple yet essential concept in computer graphics, explaining that popular image formats like JPEG and PNG are variations of raster graphics.

💡Anamnorphic Pixels

Anamnorphic pixels refer to non-square, rectangular pixels that are used in certain display technologies where one dimension is more important than the other, such as in television screens. The video mentions anamorphic pixels as an alternative to the more common square pixels, explaining that they require additional mathematical conversion and are often used in video encoding and old CRT displays.

💡Hex Pixels

Hex pixels are a type of non-rectangular pixel arrangement that is shaped like hexagons. The script discusses hex pixels as an alternative to traditional square pixels, highlighting their benefits in reducing aliasing and providing additional free transformations. Hex pixels are mentioned as being used in specialized hardware and contexts like 3D printing and wearables.

💡Data Structures

Data structures are specialized formats for organizing, storing, and manipulating data. In the context of the video, data structures like linked lists or trees are used to store game maps or other graphical data that need to be rendered. The script uses data structures as an example of the abstract information that must be converted into a visual format through rendering.

💡Display Screen

The display screen is the output device where the rendered images are shown. It is the surface where the abstract data is transformed into a visual representation through rendering. The video script mentions the display screen as the final destination for the rendered images, emphasizing the importance of understanding how data is converted into something visible.

💡Image Formats

Image formats are standardized ways of encoding digital images. The video script mentions several formats such as JPEG, PNG, BMP, and TIFF, each with its own method of compression and use case. Understanding these formats is crucial for managing how images are stored and displayed, as they determine the quality and appearance of the rendered graphics.

💡Compression

Compression in the context of image formats refers to the method used to reduce the size of image files. The script explains that different formats use different types of compression, such as lossy (JPEG) which reduces file size at the cost of some image detail, and lossless (PNG) which retains all detail without compression. Understanding compression is important for balancing image quality and file size in computer graphics.

💡Aliasing

Aliasing is a visual artifact that occurs when an image is displayed at a resolution that is not capable of showing the fine details of the original. It often results in jagged edges or a stair-step appearance. The video script discusses aliasing in the context of hex pixels, explaining that their shape can help reduce aliasing by providing a softer edge compared to square pixels.

Highlights

Introduction to the course COMP 3490: Computer Graphics One.

Explanation of rendering as the fundamental problem in computer graphics, which is converting data to display.

The concept of pixels as the smallest individually accessible display elements.

Pixels are predominantly square in shape for simplicity in rendering.

Alternative pixel shapes include anamorphic (non-square, rectangular) pixels used in certain displays and video compression.

Older formats of non-rectangular pixels like hex pixels used in specialized hardware and early computer graphics.

Benefits of hex pixels include reduced aliasing and additional free transformations.

Raster graphics defined as images composed of a grid of pixels.

Different file formats like JPEG, PNG, BMP, and PCX are variations of raster graphics.

JPEG uses Fourier-type compression, while PNG is lossless and does not lose any detail.

TIFF is designed for professional cameras and printing, offering features for high-quality imaging.

Raster graphics are popular and used in common image formats like JPEG and PNG.

Demonstration of raster graphics by drawing a simple grid and coloring pixels to form shapes.

The importance of understanding the underlying grid of pixels in raster graphics for proper learning and application.

The video lecture will continue with more topics related to raster graphics and computer graphics in general.

Transcripts

play00:00

hello welcome to the first

play00:03

video recorded lecture of comp 3490

play00:07

computer graphics one

play00:11

all right so last class

play00:14

we just did a quick introduction

play00:19

so you didn't miss anything um there's

play00:21

nothing to really remember

play00:23

just an intro to the course

play00:28

and an intro

play00:32

to computer graphics

play00:40

that's all we did so today we're really

play00:42

going to get started with

play00:44

the nitty gritty starting to learn the

play00:46

first pieces starting to learn

play00:48

the building blocks of computer graphics

play00:51

that's today

play00:56

all right so i'm going to start by

play00:58

talking about rendering

play01:01

uh rendering is a fundamental problem in

play01:05

computer graphics

play01:06

and you might have heard about people

play01:07

talking about rendering before

play01:09

it's not a big deal to understand it

play01:12

it's simply the problem of going from

play01:15

going from data to display it's from

play01:20

data to display that's all that

play01:22

rendering is

play01:24

so you can imagine now that in your

play01:26

program in memory

play01:28

you have maybe a linked list of some

play01:30

kind of data structure

play01:31

maybe a tree whatever you have a game

play01:34

map that you've stored

play01:35

you've loaded in some images

play01:38

right you have some points that you want

play01:40

to render

play01:42

so you have all this data but it's it's

play01:45

pretty abstract

play01:49

the rendering is simply the problem of

play01:52

going from

play01:54

that abstract data to something on your

play01:57

display screen

play01:58

that's it

play02:04

and most of this course will be dealing

play02:07

with rendering

play02:08

in one form or or another

play02:12

right so you have all this abstract data

play02:14

and maybe when you run it on your screen

play02:15

you get a nice

play02:16

happy face right okay

play02:19

i'm going to highlight these by the way

play02:21

i'm really bad with being consistent

play02:23

with my highlighting

play02:25

so the colors don't really mean much

play02:28

except for pay attention to them

play02:30

so the first thing i want to talk about

play02:32

when it comes to rendering are pixels

play02:36

again you've probably heard about pixels

play02:39

before but i want to talk about them a

play02:41

little bit more

play02:42

than you might have thought about them

play02:43

before what are pixels

play02:45

pixels are simply the smallest come on

play02:49

there we go pixel's a smallest

play02:54

individually

play02:59

accessible

play03:03

display elements

play03:12

so this accessible is the key here you

play03:15

can read and write them

play03:18

right you can put them you can read them

play03:20

and see what they look like

play03:22

uh sorry give them a color and also see

play03:25

what's already on the screen

play03:26

predominantly these are

play03:30

predominantly these are squares but i

play03:32

will talk a little bit

play03:33

about some alternatives so pixels are

play03:36

generally squares predominantly

play03:44

squares and there's no

play03:48

real reason for this be except for the

play03:51

fact that it's

play03:52

for simplicity um maybe i'll jump over

play03:55

to um

play03:56

my slide real quick just to show what i

play03:57

mean by this

play03:59

so here's my that work i hope that works

play04:03

um i don't think that works the way i

play04:06

think it works

play04:07

let me just change no presenter view

play04:12

this i think that's right aha this is

play04:15

what i wanted

play04:16

all right so here's an example i have a

play04:19

screen this is an old computer screen

play04:20

commodore 64 something from the 80s

play04:23

and you see this blocky font was very

play04:25

common but if you zoom in

play04:27

you see we have these square pixels in

play04:29

this case they're on or off

play04:31

off as black on is blue or it could be

play04:33

white or green

play04:35

and you take a letter like the a or the

play04:37

r you look inside

play04:38

and it's made up of these little square

play04:40

blocks called pixels kind of like a

play04:42

minecraft world

play04:44

um so that's all that that pixels really

play04:46

are

play04:48

okay i can go back to my ipad so they're

play04:52

predominantly squares

play04:53

um there are alternatives i'll talk

play04:55

about that but you won't really deal

play04:57

with these

play04:58

in this course but it's important to

play05:00

know that alternatives exist

play05:02

the most common alternative these days

play05:05

we call

play05:08

anamorphic

play05:10

so we have anamorphic pixels now this

play05:12

sounds really exciting anamorphic

play05:14

they're going to come a lot no

play05:16

nope all that anamorphic pixels mean

play05:19

are non-square uh rectangular like this

play05:23

and

play05:24

we do this we do this because

play05:29

on certain displays one dimension is

play05:32

more important than the other

play05:34

typically on a tv you have a lot of

play05:36

pixels this way

play05:37

and a few this way so you'll have

play05:41

video compression systems that'll

play05:43

actually have anamorphic pixels and

play05:44

they'll compress one direction more than

play05:46

the other your pixels become

play05:48

rectangular instead of square you'll

play05:50

come across this if you do video

play05:51

encoding stuff

play05:52

if you're with old crt displays you hear

play05:55

about anamorphic pixels

play05:56

all that it means is they're not square

play05:58

they're rectangular

play06:00

and you have to do some math to convert

play06:02

them um you might have seen this if

play06:03

you've done a video conversion and it

play06:05

went wrong and the image looked squished

play06:07

or squished you just had the wrong pixel

play06:09

setting

play06:10

but we won't really deal with anamorphic

play06:12

pixels in this course

play06:15

these are typically for dvd blu-ray

play06:19

that world or tv

play06:23

um yeah you can read up on this if

play06:25

you're interested

play06:26

but um don't spend too much time on it

play06:29

there's also another

play06:30

format and this is really dated now we

play06:32

don't see much of this anymore

play06:34

but you will see this in special use

play06:36

cases and those are non-rectangular

play06:39

pixels non-rectangular

play06:43

so it's not square and they're not

play06:44

rectangular what's left now let's let's

play06:47

see if i can draw this

play06:48

um one format that was pioneered in the

play06:50

early days

play06:51

were hex pixels and if any of you have

play06:54

ever played

play06:56

tile based for board games i'm going to

play06:59

screw this up

play06:59

there we go um you might be thinking oh

play07:02

that's kind of neat

play07:04

why on earth would people do hex pixels

play07:08

there are actually a lot of benefits to

play07:10

these kinds of hex pixels

play07:13

one is aliasing we'll come back to this

play07:16

later

play07:17

but when you have square pixels that

play07:19

line up perfectly

play07:21

like this you end up getting a lot of

play07:24

jagged edges

play07:25

if a line's coming through like that

play07:27

you'll get this pixel black

play07:29

this pixel black and then maybe white

play07:30

and white and you get a jagged edge

play07:33

with these hex pixels you're more likely

play07:35

to get a softer

play07:37

edge the other cool thing about hex

play07:39

pixels is you get some free

play07:41

um rotations with our

play07:45

square pixels i can rotate my image 90

play07:48

degrees

play07:49

180 or or 90 in the other direction

play07:54

just by rearranging what way i draw it i

play07:57

don't have to resample or recalculate

play07:58

anything

play07:59

with so i get i get three free

play08:01

transformations with a square pixel

play08:04

with the hex pixel i get five so in some

play08:07

systems where

play08:08

you wanted to do rotations um without

play08:10

losing any data

play08:11

especially in the old days hex pixels

play08:14

were your go-to because you got these

play08:15

free transformations

play08:17

don't worry too much about it the reason

play08:20

i'm explaining these to you

play08:22

is that so you're familiar with the idea

play08:24

and you might come across it i've seen

play08:26

i've seen this hex pop up in some

play08:30

printing contexts in some 3d printing

play08:33

contexts

play08:34

and in old hardware specialized hardware

play08:37

like wearables

play08:38

but you won't do that in this course

play08:40

okay we're gonna stick to

play08:42

our friendly neighborhood square pixels

play08:45

okay but i wanted to talk about those

play08:49

all right so these are pixels if we're

play08:51

dealing with pixels we're dealing with

play08:53

something called

play08:56

raster graphics

play09:00

raster graphics um

play09:01

[Music]

play09:03

is a really cool sounding word that's

play09:06

actually really boring

play09:08

a raster graphic is nothing more

play09:11

than a graphic that's made up of a grid

play09:14

of pixels

play09:15

that's it it's a raster hey look i'm

play09:17

drawing your your very first raster

play09:20

yay okay so raster graphics

play09:24

are just these grids if i have square

play09:27

pixels my raster square but i could have

play09:28

raster with

play09:29

hex shape and or anamorphic or whatever

play09:32

as well

play09:33

so a raster graphics is just this you

play09:36

have this grid of pixels and each pixel

play09:38

has a color i have a green green green

play09:39

you can imagine

play09:41

um i could make a yellow pixel here i

play09:44

could do whatever color i want

play09:45

and you can make shapes by it's kind of

play09:48

like coloring it on graph paper right

play09:50

you can make shapes just by coloring the

play09:53

pixels on your raster

play09:55

raster graphics are perhaps right now

play09:58

one of the most popular forms of

play10:00

graphics in the world

play10:01

if you've ever used a jpeg file

play10:05

a png file

play10:08

i figured what jpeg stands for

play10:12

joint picture something group png is

play10:15

portable network graphics

play10:16

i won't get into the details of

play10:18

different formats that's more of an

play10:19

image processing course

play10:21

but feel free to ask me if you're

play10:22

curious uh tiff you might have come

play10:24

across

play10:25

old days you would have seen bitmaps

play10:27

bmps

play10:29

there's old pcx's blah blah blah all of

play10:32

these

play10:32

are variations on the raster graphics

play10:36

format

play10:37

jpeg uses fourier type compression

play10:40

bmp is no compression png is lossless

play10:43

compression doesn't lose any detail

play10:46

this tiff is made more for cameras and

play10:48

more for printing

play10:49

they have all their features but the at

play10:51

the bottom all that these formats do

play10:54

is give you a grid of pixels okay

play10:58

so i'm going to go back to my slides for

play10:59

a second

play11:01

um yeah so here we go right this is this

play11:04

is a raster

play11:05

raster graphics bam so grid you put

play11:07

pixels in i'm also going to show this

play11:09

one

play11:10

and i'll come back to this again um a

play11:13

little later

play11:14

this is a raster graphic i have this

play11:16

nice smooth looking leaf

play11:17

if you zoom in it's just a grid in fact

play11:20

i recommend you try doing that with your

play11:22

paint your favorite paint tool you zoom

play11:24

in you zoom in you zoom in

play11:25

and you should see these square blocks

play11:27

now these days

play11:29

some of the programs try to be clever

play11:31

and they don't show you the square

play11:32

blocks anymore

play11:33

they try to make them fuzzy make them

play11:34

look really nice well

play11:37

um that might look nice but it doesn't

play11:40

help

play11:41

it doesn't help us try to understand her

play11:43

raster graphics work

play11:47

okay let's go back

play11:53

hold on maybe now's a good time to stop

play11:55

and take a break

play11:56

so i'll stop this video here and i'm

play11:59

going to continue

play12:00

um with this topic um let me come back

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
Computer GraphicsRenderingPixelsRaster GraphicsAnamorphic PixelsHex PixelsDisplay TechnologyImage CompressionGraphics CourseComp 3490
¿Necesitas un resumen en inglés?