More GPU Programming and GPGPU - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

More GPU Programming and GPGPU

Description:

My first computer (CASIO fx3600) Turning machine and von Neumann ... The Casio fx3600p calculated can be programmed (38 steps allowed). Turing Machine ... – PowerPoint PPT presentation

Number of Views:92
Avg rating:3.0/5.0
Slides: 21
Provided by: Cha37
Category:
Tags: gpgpu | gpu | casio | more | programming

less

Transcript and Presenter's Notes

Title: More GPU Programming and GPGPU


1
More GPU Programming and GPGPU
  • Chun-Fa Chang
  • National Taiwan Normal University

2
Calculator vs. Computer
  • What is the difference between a calculator and a
    computer?
  • Doesnt a compute-r just compute?
  • The Casio fx3600p calculated can be programmed
    (38 steps allowed).

3
Turing Machine
  • Can be adapted to simulates the logic of any
    computer that could possibly be constructed.
  • von Neumann architecture implements a universal
    Turing machine.
  • Look them up at Wikipedia!

4
(No Transcript)
5
Simplified View
  • The Data Flow
  • 3D Polygons (Colors, Lights, Normals, Texture
    Coordinatesetc.)
  • 2D Polygons
  • 2D Pixels (I.e., Output Images)

Transform ( Lighting)
Rasterization
6
Global Effects
shadow
multiple reflection
translucent surface
7
Local vs. Global
8
How Does GPU Draw This?
9
Quiz
  • Q1 A straightforward GPU pipeline give us local
    illumination only. Why?
  • Q2 What typical effects are missing?

Hint How is an object drawn? Do they consider
the relationship with other objects?
Shadow, reflection, and refraction
10
  • Wait but Ive seen shadow and reflection in games
    before

11
Faked Global Illumination
  • Shadow, Reflection, BRDFetc.
  • In theory, real global illumination is not
    possible in current graphics pipeline
  • Conceptually a loop of individual polygons.
  • No interaction between polygons.
  • Can this be changed by multi-pass rendering?

12
Case Study Shadow Map
  • Using two textures color and depth
  • Relatively straightforward design using pixel
    (fragment) shaders on GPUs.

13
Eyes View
Lights View
Depth/Shadow Map
Image Source Cass Everitt et al., Hardware
Shadow Mapping NVIDIA SDK White Paper
14
Basic Steps of Shadow Maps
  • Render the scene from the lights point of view,
  • Use the lights depth buffer as a texture (shadow
    map),
  • Projectively texture the shadow map onto the
    scene, ? Use TexGen or shader
  • Use texture color (comparison result) in
    fragment shading.

15
Adding Memory to the GPU Computation
  • Modern GPUs allow
  • The usage of multiple textures.
  • Rendering algorithms that use multiple passes.

16
GPU Shading Effects
  • Reflection and refraction
  • Relief on surface
  • Ambient occlusion and lighting

17
Real-Time Rendering of Splashing Water
  • Particle system simulation for real-time
    interaction with terrains and dynamic objects.
  • Reconstruction of the splash surface with 2D
    metaballs

18
GPU Programming
  • OpenGL offers a shading language since OpenGL
    2.0.
  • NVIDIA offers Cg and CUDA (for GF8800)
  • Cross-platform SH and RapidMind
  • Currently support GPUs and CELL, may support
    multicore CPUs in the future.
  • For more detail, see http//www.rapidmind.net/doc
    umentation.php

19
NVIDIA Geforce 6800
20
NVIDIA Geforce 8800
Write a Comment
User Comments (0)
About PowerShow.com