ray tracing height fields

17
ARAN SHIRDAVANI AND FRANK OW Ray Tracing Height Fields

Upload: kerem

Post on 23-Feb-2016

35 views

Category:

Documents


0 download

DESCRIPTION

Ray Tracing Height Fields. Aran Shirdavani And Frank ow. This image was created using Terrain – a fractal terrain generator. Computer Generated Terrain. Generated Terrain by * Create 3D Mesh * Ray Tracing on 3D Mesh - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Ray Tracing Height Fields

ARAN SHIRDAVANIAND

FRANK OW

Ray Tracing Height Fields

Page 2: Ray Tracing Height Fields

Computer Generated Terrain

This image was created using Terrain – a fractal terrain generator

Page 3: Ray Tracing Height Fields

Create 3D Mesh

Generated Terrain by • * Create 3D Mesh

1) * Ray Tracing on 3D Mesh

2) * Compute each Pixel by intersect each Ray with each triangle on the 3D Mesh.

Page 4: Ray Tracing Height Fields

Height Map

6 1 85 4 6 1 8 4

63 7 3 41 8 5 9 0

3 218 0 416 4 81 85 165

189 165 1 8 4 97 6 26

748 4 512 84 85 695 5 2

41 8 96 23 2 8 8 56

0 3 54 4 56 7 8 78

5 4 8 2 6 74 8 4

Page 5: Ray Tracing Height Fields
Page 6: Ray Tracing Height Fields
Page 7: Ray Tracing Height Fields
Page 8: Ray Tracing Height Fields
Page 9: Ray Tracing Height Fields
Page 10: Ray Tracing Height Fields

Tricky bits…imagine this is 3D

Page 11: Ray Tracing Height Fields

More tricky bits… traversing at an angle in 3 dimensions

Page 12: Ray Tracing Height Fields

Resolving Visibility

Height

Page 13: Ray Tracing Height Fields

Resolving Visibility in Section

Page 14: Ray Tracing Height Fields

Resolving Visibility in Section

Page 15: Ray Tracing Height Fields

Resolving Visibility in Section

Page 16: Ray Tracing Height Fields

Calculating Surface Normals

Px-1,y+1 Px,y+1 Px+1,y+1 Px-1,y Px,y Px+1,y Px-1,y-1 Px,y-1 Px+1,y-1

 

Page 17: Ray Tracing Height Fields

Questions?