120 likes | 382 Views
Mathematical modelling and computer animation. Animation of chocolate flow on complex surface. Martin Madaras. Intro. Fountain model Real flow Flow simulation Fluid mesh Rendering. Fountain model. 3D Studio Max Low-res for simulation, High-res for rendering. Real flow.
E N D
Mathematical modelling and computer animation Animation of chocolate flow on complex surface Martin Madaras
Intro • Fountain model • Real flow • Flow simulation • Fluid mesh • Rendering
Fountain model • 3D Studio Max • Low-res for simulation, High-res for rendering
Real flow • Next Limit, authors ofrendererMaxwell (using metropolislight transport algorithm forglobalilluminance computation), more correct than other renderers • Disadvantages : Very long rendering time, preview can be made at the moment, but is very noisy • XFlow andRealFlow, RealFlowis used inentertainmentindustry,XFlowin science and technology • RealFlowis standalone app, for simulation only (fluid, gas, rigid bodies) • Rendering must be made in other programs 3DSMax, Blender,...
Flow simulation 1 • World in program RealFlowis simulutedwithDeamons, which affect behavior ofmaterial (gravitation, noisefield, vortex…) • There are alsoKillDeamons, which can deleteparticleswhen they satisfy some conditions (particlesare out of camera frustrum, velocity is too high, particle has no neighbours in some range) • Geometry can be imported, all faces should be triangles (for better computation) • Chocolate hashigh viscosity andsurfacetension, these parameters affect time of computation (number of particles had to be lowered) • CPU : 4core q6600, time necessary for simulation of 1100 frames was 11 hours
Flow simulation 2 • 2 phases of simulation. In first is simulation made on particles (number based on emiter settings) • In second, mesh is created over particles ( BlobMeshes) • Afterwards, mesh can be exported for every frame and imported into another program via plugin. Mesh behaves as normal object • Flow simulation computation is very expensive
Lighting and camera • Camera path is ellipsoid spiral spline • Renderedwith VRay render, Indirect illumination calcualtion • Lighting made via HDRI map of interior
Rendering and postprocessing • Fountain model was surrouned by cylinder panoramatic photo of chocolate shop. Panoramatic photo was blured for better look • Frames joined in open source software Virtual dub and exportedinto avi, coded withH.264 divxcodec