4. By the end of today you
MUST understand what rendering is
SHOULD be able to explain what the
graphics pipeline is
COULD produce some high quality
renders of your game
13. The graphics pipeline is how we
take a 3D world….
And turn it into a 2D image
displayed on a screen (gameplay),
14. Graphics pipeline
Is the series of processes the computer
goes through converting the 3D game world
into a 2D image on your screen.
From this….
To this….
15. Graphics pipeline
We call this process of turning a 3D model
into a 2D image “rendering”
From this….
To this….
18. 2. Vertex shaders
Vertex shaders work out where each vertex is
on the model in X, Y & Z co-ordinates.
.
Don’t be confused by the word shader here…
think about the vertex
19. Projection
Now we know what the objects shapes are,
we need to figure out what our camera is
looking at in the scene. This is called
projection.
20. Clipping
Now we know what’s going to be on our
screen (what the cameras looking at) we
can get rid of anything that’s outside of the
cameras view, clearing up memory.
21. 4. Rasterization
We must now convert the 3D vector shapes
(made of mathematical co-ordinates) in our
cameras view (its frustrum)
into a 2D raster image (an image made up
of pixels).
We call this rasterizing
22. But why do we need to convert our
3D world to a pixel based image?
The cameras screen is
made up of pixels!
Its how it displays images.
23. Pixel shaders
Pixel shaders now set the value for each pixel
on the screen.
The value work out how the object looks close
up; how it reflects or absorbs light, its colour
and its bump map.
24. Pixel shaders & Texturing
The texture file being held in the computers
memory is applied to the object in this stage
of the pipeline
25. At the end of the pipeline we now
have our rendered image on
screen
This will change twice a
second for 60FPS
games….
26. There are different types of
rendering
Radiosity
Calculates how light
bounces off objects
within the scene,
leading to soft
shadows and
diffuse lighting
Ray tracing
Calculates the path
of a light beam,
leading to good
reflections and
sharp shadows
27. There are different types of
rendering
Notice the difference in
shadows and light reflection
and absorption
33. Blender Render versus Cycles
Cycles renders look better; they are higher quality and more photo-realistic
BUT it takes the program much longer to render each image.
35. Today
Working alone, fill in the worksheet “Rendering
& the graphics pipeline – worksheet”. You can
find this on Moodle.
Submit this to the Moodle assignment
“Rendering worksheet”
AFTER you have done this watch the video
tutorial on rendering and render some textured
primitives.