Image-Guided Weathering: A New Approach Applied to Flow Phenomena C. Bosch 1, P. Y. Laffont, H. Rushmeier, J. Dorsey, G. Drettakis Yale University – REVES/INRIA Sophia Antipolis 1 Currently at ViRVIG, University of Girona
Aging and Weathering Essential for modeling urban environments Governed by physical, chemical and biological processes
Flow effects Particularly complex Flow over the scene (global effect) Material properties (local effect)
Aging and Weathering in CG Physically-based simulation Difficult to get the desired effect Texture synthesis Restricted by input information Global effects particularly hard
Motivation Physically-based simulation More flexible, allows global effects Two main difficulties Choosing appropriate parameters to achieve a given effect Obtaining realistic visual detail
Image-Guided Weathering Use images to guide simulation Flow stains as a representative case Exemplar New simulation
Overview (I) Extract data from exemplars Color information Simulation parameters High frequency details S i = r t = k S = a t = k D = T = 803 k a,t = Exemplar Data
Overview (II) Simulate new effects on scenes S i = r t = k S = a t = k D = T = 803 k a,t = Data
Related Work Simulation Phenomenon-specific [Merillou08] Flow stains [Dorsey96; Chen05; Endo10] Capture-and-transfer (synthesis) Single image [Wang06; Xue08] Acquisition systems [Gu06; Mertens06; Sun07; Lu07] Inverse procedural textures [Bourque04; Lefebvre00]
Flow model Particle-based simulation [Dorsey96] Absorption, solubility and deposition Stain concentration maps Parameters Particles: mass (m), Si Stain material: kS, kD Target materials: a, ka, roughness (r) Simulation: time (t), particle rate (N)
Extracting Stains Based on Appearance Manifolds [Wang06] Exemplar Appearance Manifold Degree Map
Degree map = Stain concentration map ErrorSimulation Parameter Fitting Input stainDegree map S i = 1 k S = 0.04 k D = 0.04 r t = 0.2 a t = 0.3 k a,t = 0.05 T = 300 S i = 1 k S = 0.04 k D = 0.04 r t = 0.2 a t = 0.3 k a,t = 0.05 T = 300 Initial parameters New parameters S i = 1.3 k S = 0.02 k D = 0.08 r t = 0.25 a t = 0.4 k a,t = 0.02 T = 803 S i = 1.3 k S = 0.02 k D = 0.08 r t = 0.25 a t = 0.4 k a,t = 0.02 T = 803 Error < threshold or max. iterations Stop Proxy geometry target (Levenberg-Marquardt) [Lourakis04] image plane source
Improving Fitting Stain distribution along the source Accumulate degree from bottom to top
Improving Fitting (II) Flow deflection along the target Compute local degree distribution (~vector field)
ErrorSimulation Input stainDegree map S i = 1 k S = 0.04 k D = 0.04 r t = 0.2 a t = 0.3 k a,t = 0.05 T = 300 S i = 1 k S = 0.04 k D = 0.04 r t = 0.2 a t = 0.3 k a,t = 0.05 T = 300 Initial parameters New parameters S i = 1.3 k S = 0.02 k D = 0.08 r t = 0.25 a t = 0.4 k a,t = 0.02 T = 803 S i = 1.3 k S = 0.02 k D = 0.08 r t = 0.25 a t = 0.4 k a,t = 0.02 T = 803 Error < threshold or max. iterations Stop Proxy geometry target (Levenberg-Marquardt) [Lourakis04] image plane source Parameter Fitting (II) Vector field Stain distribution
Fitting Results (w/o vector field) ExemplarDegree MapSimulation Using source distribution
Fitting Results (w/o vector field) ExemplarDegree MapSimulation
Fitting Results (w/ vector field) Exemplar Degree MapSimulation w/o vfield
Fitting Results (w/ vector field) ExemplarDegree MapSimulation
Fitting Results (w/ vector field) ExemplarDegree MapSimulation
Fitting Results (Complex Targets) Exemplar Degree MapSimulation
Stain Detail Simulation lacks spatial variations (high-frequency detail) Degree MapSimulation Exemplar
Detail Maps Extract detail by image difference Use guided texture synthesis [Lefebvre05] Detail maps will modify stain adhesion Degree MapSimulationDifference Detail Map
Simulating New Stains Link data to stain sources and targets Parameters, detail maps, color Use 1D texture synthesis for distributions Run flow simulation Flow deflected by target geometry (+ disp. map)
Color Transfer Transfer stain color from input image Background mixed with stain everywhere Non-linear relationship between color and degree Use per-pixel warping background color target background fully stained
Results
Results (II)
Results (III)
Results (IV)
Performance Preprocessing Degree map: 1-3 minutes Fitting: minutes (500 iter., ~256x512) Detail synthesis: 1-2 minutes (1024x1024) Final simulation Stain simulation: 2-5 minutes/stain Color warping: 5-8 seconds/stain (1024x1024)
Limitations Good extraction from background Fitting: Not true physical estimations Detail maps: Depend on appropriate fit Computation time
Conclusions New approach to acquire simulation data from photographs Solves parameter estimation from images Combines simulation with data-driven methods Appearance manifold, texture synthesis, … Fills the gap between data-driven and simulation Easy to use Natural variations (including global effects)
Future work Extend to other weathering phenomena Deal with large scale scenes Fast simulation, global effects, …
Acknowledgements Visiting grant U.Girona ANR project (ANR-06-MDCA ) ERCIM “Alain Bensoussan” Fellowship Autodesk (Maya/MentalRay) Coding help: Li-Ying, Su Xue Scene treatment: S. Close and F. Andrade-Cabral
Thank you