SlideShare a Scribd company logo
1 of 38
Download to read offline
Fluid Simulation and Control for
      Computer Graphics




        Michael Bang Nielsen
         Aarhus University
What is Computer Graphics?
• Modeling
  – Geometry
  – Appearance
• Animation
  – Keyframes
  – Motion Capture
  – Simulation/Synthesis
• Rendering
  – Offline
  – Realtime
What is Physically Based
                  Animation?
 •   Rigid bodies
 •   Deformable objects
 •   Cloth
 •   Hair
 •   Fluids
     –   Water
     –   Smoke
     –   Fire
     –   Air

Important for games, but what about movies and commercials?
Why Computer Generated Effects
 for Movies and Commercials?




Real world smoke and water phenomena are very complex
Why Computer Generated Effects
 for Movies and Commercials?




         Ivan Aivazovsky, ”The Ninth Wave”, 1850.

 It requires remarkable talent and a lot of time to do..
Why Computer Generated Effects
 for Movies and Commercials?




                                 From Rikitt: Special Effects
And real phenomena have scale…
Why Computer Generated Effects
 for Movies and Commercials?




     From Rikitt: Special Effects
And real phenomena have scale…
Why Computer Generated Effects
  for Movies and Commercials?




Copyright Cinefex.

But sometimes physical effects work.
State of the Art in Fluid Simulation
       for Computer Graphics

1: http://www.scanlinevfxla.com/la/en/reels.html
2: Sequence from Golden Compass




           Molemaker et al.
State of the Art in Fluid Simulation
          for Computer Graphics
                      Sequence from Day After Tomorrow:




Copyright Twentieth Century Fox.


        But don’t be fooled: Artists spend
        a lot of time making raw simulations look good
How do we Simulate Fluids for
   Computer Graphics?




      From John D. Anderson: Computational Fluid Dynamics


Math, Physics, Computer Science, Fluid Dynamics
and Computational Fluid Dynamics (CFD)
Fluid Simulation for Computer
             Graphics
 Demands are different than in CFD:
• Should be
  visually plausible
• Physical accuracy
  not paramount
• Animators/director
  want a certain
  visual style
Fluid Simulation for Computer
             Graphics
• Simulation speed –
  deadlines and
  interactive preview
• The fluid should have
  character
                            Production designs by Jon Brooks
• The artists want
  control – it should be
  possible to sculpt the
  fluid
                           From Inkheart. Image by Double Negative
Guided Fluid Simulation
  Collaboration between

  •   Michael Bang Nielsen
  •   Brian Bunch Christensen
  •   Nafees Bin Zafar
  •   Doug Roble
  •   Ken Museth
I will share both our successes and frustrations with you!
Guided Fluid Simulation
       Motivation
                            Our Contribution:
       Coarse Simulation   Guided Fine Simulation




        Fine Simulation
Guided Fluid Simulation
             Motivation




High Res      Low Res     Low Res Upsampled
Guided Fluid Simulation
          Problem Statement
                Develop
• Mathematical model
• Algorithms
• Data structures
That make it possible to guide a
high resolution fluid simulation
using a low resolution simulation
Guided Fluid Simulation
       The Fundamental Idea


      The low frequencies of the fine
     simulation should be equal to the
   frequencies of the coarse simulation


Challenge: Formulate this mathematically
The One-Slide Fluid Mechanics
           Course
Net force = mass x acceleration
F = ma ⇒    F
           Vol
               =a
                   m
                  Vol
                        ⇒   1 F
                            ρ Vol
                                  =a
The One-Slide Computational Fluid
       Mechanics Course
In computer graphics we apply Operator Splitting:


                                    Advection


                                    Body forces


                                  Incompressibility
Guided Fluid Simulation
 How do we attack the problem?
           Advection


           Body forces


         Incompressibility
   The low frequencies of the fine
  simulation should be equal to the
frequencies of the coarse simulation
Guided Fluid Simulation
        The Force-Based Approach
• Forces (all or low frequencies)




    Thuerey et al.
• Blending of divergence free velocity fields
  – Leads to results that are too smooth
Guided Fluid Simulation
 How do we attack the problem?
           Advection


           Body forces


         Incompressibility
   The low frequencies of the fine
  simulation should be equal to the
frequencies of the coarse simulation
Guided Fluid Simulation
 The Modified Pressure Projection
            Approach
Observation
Solving for Incompressibility



 is identical to the minimization of




 subject to the constraint
Guided Fluid Simulation
The Modified Pressure Projection
           Approach
We add the constraint



to the minimization of




subject to the constraint
Guided Fluid Simulation
   The Modified Pressure Projection
              Approach

Calculus of variations leads to the equations




             Does it work?
Guided Fluid Simulation
 The Modified Pressure Projection
            Approach




           Test-simulations in Matlab
Problems:
• Matrix singular when filter is wide
• Where should we place the constraints?
Guided Fluid Simulation
The Modified Pressure Projection
           Approach

Fundamental question:

Does our approach fail completely,
or can we modify it somehow?
Guided Fluid Simulation
    The Modified Pressure Projection
          Second Approach


     The low frequencies of the fine
    simulation should be as close as
    possible to the frequencies of the
            coarse simulation


Challenge: Formulate this mathematically
Guided Fluid Simulation
The Modified Pressure Projection
      Second Approach
We add the minimization term



to the minimization of




subject to the constraint
Guided Fluid Simulation
   The Modified Pressure Projection
         Second Approach

Calculus of variations leads to the equations




             Does it work?
Guided Fluid Simulation
The Modified Pressure Projection
      Second Approach
          Verification in 2D
Guided Fluid Simulation
      The Modified Pressure Projection
            Second Approach




Fast to solve, but 1602 requires roughly 2GB and we want to
do it in 2563…
Guided Fluid Simulation
    The Modified Pressure Projection
          Second Approach




Computational challenges:
• Sparse entries take up 4.04TB in resolution 2563
   • We reduced this to 208MB
• Linear system is a-symmetric
   • Solution: Improved multigrid solver
• Linear system is slow to solve
    • Solution: Parallel solver using separable lowpass filters
Guided Fluid Simulation
   The Modified Pressure Projection
         Second Approach
  More computational challenges:

• Boundaries traditionally hard to use with
  multigrid
• Which lowpass filter should be used?
• How do we handle non-physically based
  guiding velocity fields?
Results
Interpolation between strictly guided and unguided simulation




  Low res        High Res
Links to More Information


• http://cs.au.dk/research/areas/computer-
  graphics-and-scientific-computing/

• http://cg.alexandra.dk/2009/05/15/smoke-
  rendering-demo/
Fluid Simulation and Control for Computer Graphics

More Related Content

Similar to Fluid Simulation and Control for Computer Graphics

FLUID MECHANICS - COMPUTATIONAL FLUID DYNAMICS (CFD)
FLUID MECHANICS - COMPUTATIONAL FLUID DYNAMICS (CFD)FLUID MECHANICS - COMPUTATIONAL FLUID DYNAMICS (CFD)
FLUID MECHANICS - COMPUTATIONAL FLUID DYNAMICS (CFD)YOGESH AHIRE
 
D-WaveQuantum ComputingAccess & applications via cloud deployment
D-WaveQuantum ComputingAccess & applications via cloud deploymentD-WaveQuantum ComputingAccess & applications via cloud deployment
D-WaveQuantum ComputingAccess & applications via cloud deploymentRakuten Group, Inc.
 
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNet
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNetFrom Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNet
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNetEric Haibin Lin
 
Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)Khusro Kamaluddin
 
CNN vs SIFT-based Visual Localization - Laura Leal-Taixé - UPC Barcelona 2018
CNN vs SIFT-based Visual Localization - Laura Leal-Taixé - UPC Barcelona 2018CNN vs SIFT-based Visual Localization - Laura Leal-Taixé - UPC Barcelona 2018
CNN vs SIFT-based Visual Localization - Laura Leal-Taixé - UPC Barcelona 2018Universitat Politècnica de Catalunya
 
PMSCS 657_Parallel and Distributed processing
PMSCS 657_Parallel and Distributed processingPMSCS 657_Parallel and Distributed processing
PMSCS 657_Parallel and Distributed processingMd. Mashiur Rahman
 
Presentation at SMI 2023
Presentation at SMI 2023Presentation at SMI 2023
Presentation at SMI 2023Joaquim Jorge
 
Ruby3x3: How are we going to measure 3x
Ruby3x3: How are we going to measure 3xRuby3x3: How are we going to measure 3x
Ruby3x3: How are we going to measure 3xMatthew Gaudet
 
Multi-Period Integer Portfolio Optimization Using a Quantum Annealer (Present...
Multi-Period Integer Portfolio Optimization Using a Quantum Annealer (Present...Multi-Period Integer Portfolio Optimization Using a Quantum Annealer (Present...
Multi-Period Integer Portfolio Optimization Using a Quantum Annealer (Present...maikelcorleoni
 
Modelling and/or Measuring (in Water Management)
Modelling and/or Measuring (in Water Management)Modelling and/or Measuring (in Water Management)
Modelling and/or Measuring (in Water Management)Ali Abbasi
 
Computational fluid dynamics
Computational fluid dynamicsComputational fluid dynamics
Computational fluid dynamicsRavi Choudhary
 
The 1st workshop on engineering processes and practices for quantum software ...
The 1st workshop on engineering processes and practices for quantum software ...The 1st workshop on engineering processes and practices for quantum software ...
The 1st workshop on engineering processes and practices for quantum software ...Mahdi_Fahmideh
 
Hands-On Machine Learning with Scikit-Learn and TensorFlow - Chapter8
Hands-On Machine Learning with Scikit-Learn and TensorFlow - Chapter8Hands-On Machine Learning with Scikit-Learn and TensorFlow - Chapter8
Hands-On Machine Learning with Scikit-Learn and TensorFlow - Chapter8Hakky St
 
Cvpr 2018 papers review (efficient computing)
Cvpr 2018 papers review (efficient computing)Cvpr 2018 papers review (efficient computing)
Cvpr 2018 papers review (efficient computing)DonghyunKang12
 
An Introduction to Deep Learning
An Introduction to Deep LearningAn Introduction to Deep Learning
An Introduction to Deep Learningmilad abbasi
 

Similar to Fluid Simulation and Control for Computer Graphics (20)

FLUID MECHANICS - COMPUTATIONAL FLUID DYNAMICS (CFD)
FLUID MECHANICS - COMPUTATIONAL FLUID DYNAMICS (CFD)FLUID MECHANICS - COMPUTATIONAL FLUID DYNAMICS (CFD)
FLUID MECHANICS - COMPUTATIONAL FLUID DYNAMICS (CFD)
 
D-WaveQuantum ComputingAccess & applications via cloud deployment
D-WaveQuantum ComputingAccess & applications via cloud deploymentD-WaveQuantum ComputingAccess & applications via cloud deployment
D-WaveQuantum ComputingAccess & applications via cloud deployment
 
No stress with state
No stress with stateNo stress with state
No stress with state
 
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNet
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNetFrom Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNet
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNet
 
Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)
 
Fahroo - Computational Mathematics - Spring Review 2012
Fahroo - Computational Mathematics - Spring Review 2012 Fahroo - Computational Mathematics - Spring Review 2012
Fahroo - Computational Mathematics - Spring Review 2012
 
CNN vs SIFT-based Visual Localization - Laura Leal-Taixé - UPC Barcelona 2018
CNN vs SIFT-based Visual Localization - Laura Leal-Taixé - UPC Barcelona 2018CNN vs SIFT-based Visual Localization - Laura Leal-Taixé - UPC Barcelona 2018
CNN vs SIFT-based Visual Localization - Laura Leal-Taixé - UPC Barcelona 2018
 
PMSCS 657_Parallel and Distributed processing
PMSCS 657_Parallel and Distributed processingPMSCS 657_Parallel and Distributed processing
PMSCS 657_Parallel and Distributed processing
 
Presentation at SMI 2023
Presentation at SMI 2023Presentation at SMI 2023
Presentation at SMI 2023
 
Modeling full scale-data(2)
Modeling full scale-data(2)Modeling full scale-data(2)
Modeling full scale-data(2)
 
Ruby3x3: How are we going to measure 3x
Ruby3x3: How are we going to measure 3xRuby3x3: How are we going to measure 3x
Ruby3x3: How are we going to measure 3x
 
Multi-Period Integer Portfolio Optimization Using a Quantum Annealer (Present...
Multi-Period Integer Portfolio Optimization Using a Quantum Annealer (Present...Multi-Period Integer Portfolio Optimization Using a Quantum Annealer (Present...
Multi-Period Integer Portfolio Optimization Using a Quantum Annealer (Present...
 
Modelling and/or Measuring (in Water Management)
Modelling and/or Measuring (in Water Management)Modelling and/or Measuring (in Water Management)
Modelling and/or Measuring (in Water Management)
 
CFD_Lecture_1.pdf
CFD_Lecture_1.pdfCFD_Lecture_1.pdf
CFD_Lecture_1.pdf
 
lec6a.ppt
lec6a.pptlec6a.ppt
lec6a.ppt
 
Computational fluid dynamics
Computational fluid dynamicsComputational fluid dynamics
Computational fluid dynamics
 
The 1st workshop on engineering processes and practices for quantum software ...
The 1st workshop on engineering processes and practices for quantum software ...The 1st workshop on engineering processes and practices for quantum software ...
The 1st workshop on engineering processes and practices for quantum software ...
 
Hands-On Machine Learning with Scikit-Learn and TensorFlow - Chapter8
Hands-On Machine Learning with Scikit-Learn and TensorFlow - Chapter8Hands-On Machine Learning with Scikit-Learn and TensorFlow - Chapter8
Hands-On Machine Learning with Scikit-Learn and TensorFlow - Chapter8
 
Cvpr 2018 papers review (efficient computing)
Cvpr 2018 papers review (efficient computing)Cvpr 2018 papers review (efficient computing)
Cvpr 2018 papers review (efficient computing)
 
An Introduction to Deep Learning
An Introduction to Deep LearningAn Introduction to Deep Learning
An Introduction to Deep Learning
 

More from Dept. of Computer Science, Aarhus University

More from Dept. of Computer Science, Aarhus University (16)

Erhvervspraktik2011
Erhvervspraktik2011Erhvervspraktik2011
Erhvervspraktik2011
 
Your graduate-life-in-pictures
Your graduate-life-in-picturesYour graduate-life-in-pictures
Your graduate-life-in-pictures
 
Olivier Danvy - Friday Lecture - May 2010
Olivier Danvy - Friday Lecture - May 2010Olivier Danvy - Friday Lecture - May 2010
Olivier Danvy - Friday Lecture - May 2010
 
Uug2010
Uug2010Uug2010
Uug2010
 
Master Thesis Track
Master Thesis TrackMaster Thesis Track
Master Thesis Track
 
Faglig Formidling Januar 2010
Faglig Formidling Januar 2010Faglig Formidling Januar 2010
Faglig Formidling Januar 2010
 
Mini åRsberetning Slides 2009
Mini åRsberetning Slides 2009Mini åRsberetning Slides 2009
Mini åRsberetning Slides 2009
 
Bachelororientering 1 (IT-specialisering)
Bachelororientering 1 (IT-specialisering)Bachelororientering 1 (IT-specialisering)
Bachelororientering 1 (IT-specialisering)
 
Bachelororientering Datalogi
Bachelororientering DatalogiBachelororientering Datalogi
Bachelororientering Datalogi
 
dIntStud
dIntStuddIntStud
dIntStud
 
Bachelor Orientering 2 (IT valgfrihed 3.år)
Bachelor Orientering 2 (IT valgfrihed 3.år)Bachelor Orientering 2 (IT valgfrihed 3.år)
Bachelor Orientering 2 (IT valgfrihed 3.år)
 
Oversigt over uddannelsen i it
Oversigt over uddannelsen i itOversigt over uddannelsen i it
Oversigt over uddannelsen i it
 
Workshop It 2009
Workshop It 2009Workshop It 2009
Workshop It 2009
 
Kunsten at skrive speciale
Kunsten at skrive specialeKunsten at skrive speciale
Kunsten at skrive speciale
 
Datspeciale E09
Datspeciale E09Datspeciale E09
Datspeciale E09
 
It-workshop 13.12.07
It-workshop 13.12.07It-workshop 13.12.07
It-workshop 13.12.07
 

Recently uploaded

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 

Recently uploaded (20)

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 

Fluid Simulation and Control for Computer Graphics

  • 1. Fluid Simulation and Control for Computer Graphics Michael Bang Nielsen Aarhus University
  • 2. What is Computer Graphics? • Modeling – Geometry – Appearance • Animation – Keyframes – Motion Capture – Simulation/Synthesis • Rendering – Offline – Realtime
  • 3. What is Physically Based Animation? • Rigid bodies • Deformable objects • Cloth • Hair • Fluids – Water – Smoke – Fire – Air Important for games, but what about movies and commercials?
  • 4. Why Computer Generated Effects for Movies and Commercials? Real world smoke and water phenomena are very complex
  • 5. Why Computer Generated Effects for Movies and Commercials? Ivan Aivazovsky, ”The Ninth Wave”, 1850. It requires remarkable talent and a lot of time to do..
  • 6. Why Computer Generated Effects for Movies and Commercials? From Rikitt: Special Effects And real phenomena have scale…
  • 7. Why Computer Generated Effects for Movies and Commercials? From Rikitt: Special Effects And real phenomena have scale…
  • 8. Why Computer Generated Effects for Movies and Commercials? Copyright Cinefex. But sometimes physical effects work.
  • 9. State of the Art in Fluid Simulation for Computer Graphics 1: http://www.scanlinevfxla.com/la/en/reels.html 2: Sequence from Golden Compass Molemaker et al.
  • 10. State of the Art in Fluid Simulation for Computer Graphics Sequence from Day After Tomorrow: Copyright Twentieth Century Fox. But don’t be fooled: Artists spend a lot of time making raw simulations look good
  • 11. How do we Simulate Fluids for Computer Graphics? From John D. Anderson: Computational Fluid Dynamics Math, Physics, Computer Science, Fluid Dynamics and Computational Fluid Dynamics (CFD)
  • 12. Fluid Simulation for Computer Graphics Demands are different than in CFD: • Should be visually plausible • Physical accuracy not paramount • Animators/director want a certain visual style
  • 13. Fluid Simulation for Computer Graphics • Simulation speed – deadlines and interactive preview • The fluid should have character Production designs by Jon Brooks • The artists want control – it should be possible to sculpt the fluid From Inkheart. Image by Double Negative
  • 14. Guided Fluid Simulation Collaboration between • Michael Bang Nielsen • Brian Bunch Christensen • Nafees Bin Zafar • Doug Roble • Ken Museth I will share both our successes and frustrations with you!
  • 15. Guided Fluid Simulation Motivation Our Contribution: Coarse Simulation Guided Fine Simulation Fine Simulation
  • 16. Guided Fluid Simulation Motivation High Res Low Res Low Res Upsampled
  • 17. Guided Fluid Simulation Problem Statement Develop • Mathematical model • Algorithms • Data structures That make it possible to guide a high resolution fluid simulation using a low resolution simulation
  • 18. Guided Fluid Simulation The Fundamental Idea The low frequencies of the fine simulation should be equal to the frequencies of the coarse simulation Challenge: Formulate this mathematically
  • 19. The One-Slide Fluid Mechanics Course Net force = mass x acceleration F = ma ⇒ F Vol =a m Vol ⇒ 1 F ρ Vol =a
  • 20. The One-Slide Computational Fluid Mechanics Course In computer graphics we apply Operator Splitting: Advection Body forces Incompressibility
  • 21. Guided Fluid Simulation How do we attack the problem? Advection Body forces Incompressibility The low frequencies of the fine simulation should be equal to the frequencies of the coarse simulation
  • 22. Guided Fluid Simulation The Force-Based Approach • Forces (all or low frequencies) Thuerey et al. • Blending of divergence free velocity fields – Leads to results that are too smooth
  • 23. Guided Fluid Simulation How do we attack the problem? Advection Body forces Incompressibility The low frequencies of the fine simulation should be equal to the frequencies of the coarse simulation
  • 24. Guided Fluid Simulation The Modified Pressure Projection Approach Observation Solving for Incompressibility is identical to the minimization of subject to the constraint
  • 25. Guided Fluid Simulation The Modified Pressure Projection Approach We add the constraint to the minimization of subject to the constraint
  • 26. Guided Fluid Simulation The Modified Pressure Projection Approach Calculus of variations leads to the equations Does it work?
  • 27. Guided Fluid Simulation The Modified Pressure Projection Approach Test-simulations in Matlab Problems: • Matrix singular when filter is wide • Where should we place the constraints?
  • 28. Guided Fluid Simulation The Modified Pressure Projection Approach Fundamental question: Does our approach fail completely, or can we modify it somehow?
  • 29. Guided Fluid Simulation The Modified Pressure Projection Second Approach The low frequencies of the fine simulation should be as close as possible to the frequencies of the coarse simulation Challenge: Formulate this mathematically
  • 30. Guided Fluid Simulation The Modified Pressure Projection Second Approach We add the minimization term to the minimization of subject to the constraint
  • 31. Guided Fluid Simulation The Modified Pressure Projection Second Approach Calculus of variations leads to the equations Does it work?
  • 32. Guided Fluid Simulation The Modified Pressure Projection Second Approach Verification in 2D
  • 33. Guided Fluid Simulation The Modified Pressure Projection Second Approach Fast to solve, but 1602 requires roughly 2GB and we want to do it in 2563…
  • 34. Guided Fluid Simulation The Modified Pressure Projection Second Approach Computational challenges: • Sparse entries take up 4.04TB in resolution 2563 • We reduced this to 208MB • Linear system is a-symmetric • Solution: Improved multigrid solver • Linear system is slow to solve • Solution: Parallel solver using separable lowpass filters
  • 35. Guided Fluid Simulation The Modified Pressure Projection Second Approach More computational challenges: • Boundaries traditionally hard to use with multigrid • Which lowpass filter should be used? • How do we handle non-physically based guiding velocity fields?
  • 36. Results Interpolation between strictly guided and unguided simulation Low res High Res
  • 37. Links to More Information • http://cs.au.dk/research/areas/computer- graphics-and-scientific-computing/ • http://cg.alexandra.dk/2009/05/15/smoke- rendering-demo/