RAY TRACING PROJECT Jian CHEN 103000 - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

RAY TRACING PROJECT Jian CHEN 103000

Description:

RAY TRACING PROJECT Jian CHEN 103000 – PowerPoint PPT presentation

Number of Views:18
Avg rating:3.0/5.0
Slides: 10
Provided by: zhangs
Category:
Tags: chen | project | ray | tracing | jian

less

Transcript and Presenter's Notes

Title: RAY TRACING PROJECT Jian CHEN 103000


1
RAY TRACING PROJECT Jian CHEN 10/30/00
  • Basic Ray Tracing
  • Shading
  • Shading Highlight
  • Shading Highlight Shadow
  • Multi-lights

2
Basic Ray Tracing
eye
rays
Screen
3
Basic Ray Tracing
  • Select Eye position at e
  • Sphere (x-a)2(y-b)2(z-c)2R2
  • Screen at (x, y, z) (xminltxltxmax,
    yminltyltymax,zz)
  • Ray Function
  • Xex(x-ex)texdxt
  • Yey(y-ey)teydyt
  • Zez(z-ez)tezdzt
  • Intersections with the sphere
  • Adxdxdydydzdz
  • B2dx(ex - a) dy(ey - b) dz(ez- c)
  • C(ex- a)2 (ey - b)2 (ez - c)2 - R2
  • DeltaB2-4AC

4
Basic Ray Tracing
Resolution is 100100(L), and 200200(R)
5
Shading Specular reflection
  • Add a light at L
  • Calculate each pixels I
  • IIaKafattIp(Kd(NL)Ks(RV)n)
  • Ia intensity of the ambient light
  • Kaambient-reflection coefficient
  • Ipintensity of the point light source
  • Kddiffuse_reflection coefficient
  • Ksspecular-reflection coefficient
  • fattenergy falls off from L to the point

6
Shadin Highlight
Simple shading(L), plus hightlight (R)
7
Shadow Multi-lights
  • Light i at Li
  • At each intersection points, get I
  • IiSiFattiIpiKdi(NLi)Ksi(RiV)n
  • IIaKasum(Ii)
  • Si0, if light i is blocked at this point
  • Si1, if light i is not blocked at this point

8
Final
200200
200200
Add one point light (L), two point lights(R)
9
10001000
10001000
The source code and images can be get at
www.caip.rutgers.edu/jianc/course/ece560/project
Write a Comment
User Comments (0)
About PowerShow.com