25
Graphic Rendering Tasks 1

Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Embed Size (px)

DESCRIPTION

What are OpenGL and Direct3D and what is their purpose? OpenGL and Direct3D are both API’s, this stands for Application Programming Interface. An API calculates a series of mathematical functions which can be understood by hardware such as graphics cards. The reason we use API’s are because they allow 3D software application and or games to process the 3D model data (determining position of models, lighting and texturing) at a much faster speed. OpenGL and Direct3D are used by programmers to process games created on 3D software engines like Unity and 3DS Max before they are again analysed by a graphics card, in an Xbox 360 for example.

Citation preview

Page 1: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Graphic Rendering

Tasks 1

Page 2: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

If Clipping was not in the Pipeline

If the clipping step was not in the graphics pipeline then all objects or part of objects that are not visible will still be processed, thus slowing down future processes and wasting processing time and power.

Page 3: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

What are OpenGL and Direct3D and what is their purpose?

OpenGL and Direct3D are both API’s, this stands for Application Programming Interface. An API calculates a series of mathematical functions which can be understood by hardware such as graphics cards.

The reason we use API’s are because they allow 3D software application and or games to process the 3D model data (determining position of models, lighting and texturing) at a much faster speed.

OpenGL and Direct3D are used by programmers to process games created on 3D software engines like Unity and 3DS Max before they are again analysed by a graphics card, in an Xbox 360 for example.

Page 4: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Vertex Information

The API’s such as OpenGL and Direct3D calculate where 3D models are in a 3D world and will process how they will then be illuminated.

Vertices are used to connect and create faces, these faces are then processed to which the light that falls on the face will be determined. After the polygons have had their texture coordinates stored, a shader will then be applied to the vertices.

X = 0, Y = 0, Z = 0

Page 5: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Graphic Rendering

Tasks 2

Page 6: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Simple Scene

Here’s my simple scene that I made to test out the Radiosity and Ray Tracing render functions…

Page 7: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Radiosity

This is how my render turned out after using Radiosity on the 3D scene…

It is extremely bright, to the point that the only visible shadows are on the chair closest to the screen.

Page 8: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Ray Tracing

This is how my render turned out after using Ray Tracing on my textures and the rendering the …

Unlike when I used Radiosity, this one is much darker and the textures reflect the 3D models quite well…

Page 9: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Radiosity in Battlefield 3

After doing some searching on what of the latest 3D games use the previously mentioned lighting techniques and I came upon BF3.

EA Digital Illusion CE (DICE for short) really liked Radiosity after seeing how well it worked in their ‘Mirror’s Edge’ game, however they believe it took to long to develop and so partnered with Enlighten (a real-time radiosity pioneer) to provide a lightning-fast workflow for the lighting artists.

Blog.wolfire.com

Page 10: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Bump MapBump Mapping gives you the illusion of depth by controlling the way light in a scene is reflected on objects thus simulating detail on objects by artificially rendering light rays, to how they would look if the geometric deformation actually existed.

On the next page I am going to show how I have used bump mapping using this simple model below…

This model was created using three types of primitives; a sphere, three boxes and three torus.

Page 11: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Bump MapTo bump map, first I had to create a texture, making sure there was a clear contrast between light and dark colours I used black and white, most people would use black and white however you can also use grayscale.

After the texture was finished I placed it in the material editor in 3DS Max and went to the Maps drop down menu to which I ticked Bump and browsed for my texture.

This turned the sphere preview of my texture as you can see below…

Page 12: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Bump MapThe next step was to apply the bump to the simple model I created and this is my result…

The difference (besides the colour of the plain grey texture) being that now the bump map I made looks as though a pattern has been engraved onto the simple model.

Using this technique it is possible to make even low poly models appear to have a lot of high quality detail…

Page 13: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Vertex and Pixel Shading in Ninja

Gaiden 3Ninja Gaiden 3 is a game that I have been enjoying a lot lately and so I decided to use this as an example for vertex and pixel shading. In Ninja Gaiden 3 there are various models that make use of vertex shading, a few examples being:

Shinobi Shozoku (Ninja robes) – the ninja’s robes in Ninja Trials Mode crumple whilst running and around and fighting as well as slightly crumpling when the character breathes.

Page 14: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Vertex and Pixel Shading in Ninja

Gaiden 3When nearing the end of Day 3 on NG3, I was forced into a situation where I had to defeat a rampaging Tyrannosaurus Rex that had been modified.

In this battle I really noticed the use of vertex shader in both Ryu’s scarf (crumpling like the ninja robes) and the skin of the T-Rex was constantly stretching and tightening to accommodate the T-Rex’s movements.

Here’s a YouTube video showing the boss battle I am talking about…

http://www.youtube.com/watch?v=kQ7YAu6TwS0

Page 15: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Vertex and Pixel Shading in Ninja

Gaiden 3Pixel shading is extremely evident in the NG3 as the majority of models have been textured brilliantly, effectively using bump mapping and normal mapping to give life to the already high resolution models.

A perfect example of bump mapping that NG3 has used on a major character model would be the Regent of the Mask’s model…

(next page)

Page 16: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Vertex and Pixel Shading in Ninja

Gaiden 3After observing the textures on this model it becomes very clear that bump mapping has been masterfully applied here, integrated into the cloth material like the robe and belt as well as into the metal alloys such as the gauntlets and the sword which appears to have very intricate and engraved markings, thanks o bump mapping…

Regent of the Mask

Page 17: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Vertex and Pixel Shading in Ninja

Gaiden 3Pixel shading also allows for various visual effects that NG3 made sure to take advantage of such as blurring and blooming, an example being the blooming effect which slightly increases illumination in the background whilst losing focus however increasing focus on models in the foreground allowing them to stand out more without a contrasting background as a distraction…

Page 18: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Vertex and Pixel Shading in Ninja

Gaiden 3

Page 19: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects

Vertex and Pixel Shading in Ninja

Gaiden 3Pixel shading also allows for various visual effects that NG3 made sure to take advantage of such as blurring and blooming, an example being the blooming effect which slightly increases illumination in the background whilst losing focus however increasing focus on models in the foreground allowing them to stand out more without a contrasting background as a distraction…

Page 20: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects
Page 21: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects
Page 22: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects
Page 23: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects
Page 24: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects
Page 25: Graphic Rendering Tasks 1. If Clipping was not in the Pipeline If the clipping step was not in the graphics pipeline then all objects or part of objects