parallel ray tracer computer systems lab presentation stuart maier

15
Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Upload: chester-jones

Post on 14-Jan-2016

233 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Parallel Ray Tracer

Computer Systems Lab PresentationStuart Maier

Page 2: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Abstract

Computer generation of highly realistic images has been a difficult problem. Although there are algorithms that can generate images that look

essentially real, they take large amounts of time to render. This project explores ways of

distributing that onto multiple computers, in order to speed up the process.

Page 3: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Graphics Background

Many different algorithms Most unrealistic

Real-life based algorithms developed Ray tracing most important

Shoots rays from camera Interact with intersected objects Local illumination

Page 4: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Ray Tracing

Rays shoot through screen

Rays seek light sources

Phong shading

Image from Wikipedia.

Page 5: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Phong shading

Formula for calculating light

Page 6: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Graphics cont.

Photon mapping Two pass algorithm Creates photon map Ray tracing afterwards Biased Still not realistic enough

Page 7: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Graphics cont.

Path tracing Rays don't seek light Rays can:

Find light Be absorbed Be transmitted

Spectral rendering Full spectrum of colors

Page 8: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Spectral Rendering

Complete color space RGB part illuminated Many different colors

can create the same RGB value

Image from Wikipedia.

Page 9: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Parallel Background

BOINC Multiple independent clients No interclient communication Clients barely talk with server

Splitting data Pixels are divided up among clients

Page 10: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Design

Written in C with MPI and OpenGL libraries Currently implements a parallel ray tracer with

Phong shading Five components

Main Renderer Object Vector XML

Page 11: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Main

Runs the entire show Talks with MPI and OpenGL Starts up the renderer Passes off to the Renderer component

Page 12: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Renderer

Holds information about the scene Renders the scene Performs the high-level ray calculations

Page 13: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Object

Information about objects Calculates ray-object intersections

Page 14: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

Vector

Generic library Creates 3-D vectors and processes them Used for spatial and color calculations

Page 15: Parallel Ray Tracer Computer Systems Lab Presentation Stuart Maier

XML

First component called after Main Reads in the scene file Passes off information to Renderer