260 likes | 370 Vues
Interactive BRDF Estimation for Mixed-Reality Applications. Martin Knecht, Georg Tanzmeister, Christoph Traxler, Michael Wimmer Institute of Computer Graphics and Algorithms Vienna University of Technology. Motivation. Goal of our mixed reality framework
E N D
Interactive BRDF Estimation for Mixed-Reality Applications Martin Knecht, Georg Tanzmeister, Christoph Traxler, Michael Wimmer Institute of Computer Graphics and Algorithms Vienna University of Technology
Motivation • Goal of our mixed reality framework • Light interaction between real and virtual objects Materials of real objects must be known Martin Knecht
Problem Statement • Material estimation should not need any preprocessing Use Kinect sensor and fish-eye lense camera for data acquisition • Should run at interactive framerates Use GPU wherever possible • Should estimate Phong parameters Used in mixed reality framework Martin Knecht
Estimation Pipeline • Similar to pipeline of Zheng et al. 2009 Martin Knecht
Input Data for Estimation Martin Knecht
Highlight Removal Martin Knecht
Highlight Removal Martin Knecht
Diffuse Reflectance Estimation Martin Knecht
Diffuse Reflectance Estimation Inverse shading: Martin Knecht
Clustering Martin Knecht
Clustering 1/5 • Assumption: similar color same material • Same material same specular parameters • Clustering executed on the diffuse estimation • Novel hybrid CPU/GPU K-Means 1) Initialize cluster centers 2) Assign pixel to nearest cluster center 3) Calculate new cluster centers 4) Repeat steps 2 & 3 Martin Knecht
Clustering 2/5 • 1) Initialize cluster centers • Random cluster centers • Exploit temporal coherence • Reuse of cluster centers of previous frame Martin Knecht
Clustering 3/5 • 2) Assign pixel to nearest cluster center RGBC1 RGBC2 ... Cluster Shader ... Cluster 1 Cluster 2 Cluster 6 Bitmask 1 Bitmask 2 ... Martin Knecht
Clustering 4/5 • 3) Calculate new cluster centers • 1x1 Mipmap is the average over all pixel • New cluster center: TRGBD 1x1 RGBD T* 1x1 Bitmask Martin Knecht
Clustering 5/5 • 4) Repeat steps 2 & 3 • Repeat until no pixel changes cluster Standard stopping criteria too conservative • Max. 20 iterations • Check variance change of distances Martin Knecht
Clustering 5/5 Martin Knecht
Specular Reflectance Estimation Martin Knecht
Specular Reflectance Estimation • Done on a per cluster basis same material • CPU based nonlinear function solver • Variables: • Specular parameter • Light positions • Evaluation of objective function done on GPU • Similar mipmap method used as for clustering Martin Knecht
Specular Reflectance Estimation Martin Knecht
Results - Estimation + Diffuse component Specular component Phong shaded image Martin Knecht
Results – Timings • BRDF estimation runs at ~2.8 fps • Two tasks with major impact K-Means clustering Specular estimation < 0.5 % ~ 11 % ~ 88,5 % Martin Knecht
Differential Instant Radiosity Martin Knecht
Results – Mixed Reality Integration Martin Knecht
Limitations • Kinect sensor does not work everywhere • Bright objects are discarded from estimation • Shadows are not considered • No estimation of optimal amount of clusters • No integration of data over time • Simplifications lower quality of estimation Martin Knecht
Conclusion & Future work • BRDF estimation without any preprocessing • Hybrid CPU/GPU K-Means implementation • Runs at interactive framerates • Future work • Improve speed specular estimation • Improve quality BRDF estimation • Exploit temporal coherence more often Martin Knecht
Thank you for your attention! Supported by grand from the FFG-Austrian Research Promotion Agency under the Program “FIT-IT Visual Computing” Project Nr.: 820916