An Open Source Framework for Photo-Realistic Render of Synthetic - - PowerPoint PPT Presentation

an open source framework for photo realistic render of
SMART_READER_LITE
LIVE PREVIEW

An Open Source Framework for Photo-Realistic Render of Synthetic - - PowerPoint PPT Presentation

An Open Source Framework for Photo-Realistic Render of Synthetic Elements in Captured Panoramas Dalai Felinto , Aldo Zang and Luiz Velho Fisheries Centre, UBC - Vancouver, Canada Visgraf Laboratory, IMPA - Rio De Janeiro, Brazil


slide-1
SLIDE 1

⋆ Fisheries Centre, UBC - Vancouver, Canada † Visgraf Laboratory, IMPA - Rio De Janeiro, Brazil Blender Conference, Amsterdam, The Netherlands - October, 2012

An Open Source Framework for Photo-Realistic Render

  • f Synthetic Elements in Captured Panoramas

Dalai Felinto⋆, Aldo Zang† and Luiz Velho†

slide-2
SLIDE 2

w3.impa.br/~zang/blenderconf

?

slide-3
SLIDE 3
slide-4
SLIDE 4
slide-5
SLIDE 5
slide-6
SLIDE 6
slide-7
SLIDE 7
slide-8
SLIDE 8
slide-9
SLIDE 9

Flight of the Navigator, 1986 Terminator 2, 1991 The Smurfs, 2011

slide-10
SLIDE 10

Problems of panoramas-only solutions

slide-11
SLIDE 11
slide-12
SLIDE 12
slide-13
SLIDE 13
slide-14
SLIDE 14

So, how to make those wonderful Panoramas?

slide-15
SLIDE 15

Environment capture Panorama calibration Scene reconstruction Scene depth computation Illumination setup Synthetic elements Integration and rendering

So, how to make those wonderful Panoramas?

slide-16
SLIDE 16

Environment capture

slide-17
SLIDE 17
slide-18
SLIDE 18
slide-19
SLIDE 19

EV -6 EV -4 EV -2 EV 0

slide-20
SLIDE 20
slide-21
SLIDE 21
slide-22
SLIDE 22
slide-23
SLIDE 23

Calibration system

slide-24
SLIDE 24

Allow to move important sampling regions off the poles Less concern on tripod alignment for picture capturing It works with panoramas obtained from the internet Optimal aligned axis for the world reconstruction

Advantages of a calibration system

slide-25
SLIDE 25
  • riginal panorama: hdrlabs.com
slide-26
SLIDE 26
slide-27
SLIDE 27
  • riginal panorama: hdrlabs.com
slide-28
SLIDE 28
slide-29
SLIDE 29
  • riginal panorama: hdrlabs.com
slide-30
SLIDE 30

Scene Reconstruction (IBL Toolkit)

slide-31
SLIDE 31

Floor Reconstruction

slide-32
SLIDE 32

Panorama Background

slide-33
SLIDE 33

# v e r s i o n 120 uniform sampler2D color_buffer ; uniform sampler2D depth_buffer ; uniform sampler2D texture_buffer ; uniform mat4 projectionmodelviewinverse ; # define PI 3.14159265 vec3 glUnprojectGL( vec2 coords) { float u = coords . s * 2.0, 1.0 ; float v = coords . t * 2.0, 1.0 ; vec4 view = vec4 (u , v , 1 . 0 , 1 . 0 ) ; vec4 world = projectionmodelviewinverse * vec4 (view . x , - view . y , view . z , 1 . 0 ) ; return vec3 (world [ 0 ] * world [ 3 ] , world [ 1 ] * world [ 3 ] , - world [ 2 ] * world [ 3 ] ) ; } vec2 equirectangular( vec3 vert) { float theta = asin (vert.z) ; float phi = atan (vert . x , vert . y) ; float u = 0 . 5 * (phi / PI) + 0 . 2 5 ; float v = 0 . 5 + theta / PI ; return vec2 (u , v) ; } void main( void ) { vec2 coords = gl_TexCoord [ 0 ] . st ; vec4 foreground = texture2D (color_buffer , coords) ; vec3 world = glUnprojectGL(coords) ; vec4 background = texture2D (texture_buffer , - equirectangular( normalize (world) ) ) ; float depth = texture2D (depth_buffer, coords).s ; if (depth > 0 .99995 ) foreground = background ; gl FragColor = foreground ; }

slide-34
SLIDE 34
slide-35
SLIDE 35

Rendering

slide-36
SLIDE 36
slide-37
SLIDE 37
slide-38
SLIDE 38
slide-39
SLIDE 39

Shadows

slide-40
SLIDE 40

Reflection

slide-41
SLIDE 41

Results

slide-42
SLIDE 42
slide-43
SLIDE 43
slide-44
SLIDE 44
slide-45
SLIDE 45
  • riginal panorama: blendedskies.com
slide-46
SLIDE 46
  • riginal panorama: blendedskies.com
slide-47
SLIDE 47
  • riginal panorama: blendedskies.com
slide-48
SLIDE 48

The Light-positional approach gives the correct world based accounts for rendering. One pass rendering solution. We don’t need to make compositions

  • r work with layers.

Extensible to Cycles render or other renderers. Light-depth map idea can be used for real time rendering in other contexts (games, interactive visualization, etc.) We can handle camera rotations and translations! It’s possible apply deformation of mesh and texture deformation to the modeled environment.

Conclusions

slide-49
SLIDE 49

Extra 1 - Environment Texture

slide-50
SLIDE 50
slide-51
SLIDE 51
slide-52
SLIDE 52

Extra 2 - Camera Travelling

slide-53
SLIDE 53
slide-54
SLIDE 54
slide-55
SLIDE 55

Extra 3 - Fisheye

slide-56
SLIDE 56
slide-57
SLIDE 57
slide-58
SLIDE 58

Djalma Lucio Juliano Kestenberg Blender and Luxrender Developers Sam Schad www.blenderskies.com

Acknowledgements

slide-59
SLIDE 59

Questions?

slide-60
SLIDE 60

⋆ Fisheries Centre, UBC - Vancouver, Canada † Visgraf Laboratory, IMPA - Rio De Janeiro, Brazil Blender Conference, Amsterdam, The Netherlands - October, 2012

An Open Source Framework for Photo-Realistic Render

  • f Synthetic Elements in Captured Panoramas

Dalai Felinto⋆, Aldo Zang† and Luiz Velho†

w3.impa.br/~zang/blenderconf