원시데이터 수집 시스템
선정목록으로

A Comprehensive Method for Liquid-to-Solid Interactions.

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Juan M. Bajo — Universidad Nacional del Sur
  2. Claudio Delrieux — Departamento de Ing. Eléctrica y Computadoras -Universidad Nacional del Sur and CONICET, Bahía Blanca, Argentina, 8000,
  3. Gustavo Patow — ViRVIG-UdG, Girona, Spain,
DOI
10.19153/cleiej.25.1.4
저널
CLEI electronic journal
발행년도
2022
발행기관
Latin American Center for Computer Studies
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.19153/cleiej.25.1.4
토픽
Surface Modification and Superhydrophobicity
OpenAlex ID
W4225793994

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Realistic real-time water-solid interaction has been an open problem in Computer Graphics since its beginnings, mainly due to the complex interactions that happen at the interface between solid objects and liquids, both when objects are completely or partially wet, or when they are fully submerged.In this paper we present a method that tackles the two main aspects of this problem, namely the buoyancy of objects submerged into fluids, and the superficial liquid propagation and appearance changes that arises at the interface between the surface of solid objects in contact with a liquids.For the first problem (buoyancy) a method is proposed to realistically compute the fluid-to-solid coupling problem. Our proposal is suitable for a wide spectrum of cases, such as rigid or deformable objects, hollow or filled, permeable or impermeable, and with variable mass distribution. In the case of permeable materials, which allow liquid to pass through the object, the presented method incorporates the dynamics of the fluid in which the object is submerged, and decouples the computation of the physical quantities involved in the buoyancy force of the empty object with respect to to the liquid contained within it. On the other hand, the visual appearance of certain materials depends on their intrinsic light transfer properties, the lighting present and other environmental contributions. Thus, complementing the first approach in this paper, a new technique is introduced to model and render the appearance changes of absorbent materials when there is liquid on their surface. Also, a new method was developed to solve the problem of the interaction between the object surface and liquids, taking advantage of texture coordinates. An algorithm was proposed to model the main physical processes that occur on the surface of a wet or wet solid object. Finally, we model the change in appearance that typically arise in most materials in contact with fluids, and an algorithm is implemented achieving real-time performance. The complete solution is designed taking advantage of superscalar architectures and GPU acceleration, allowing a flexible integration with the pipelines of current graphic engines.

본문 43,162자

본문 펼치기
CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 # A Comprehensive Method for Liquid-to-Solid Interactions. Juan Miguel Bajo Departamento de Ing. Eléctrica y Computadoras - Universidad Nacional del Sur and CONICET, Bahía Blanca, Argentina, 8000, _jmb@cs.uns.edu.ar_ Claudio Delrieux Departamento de Ing. Eléctrica y Computadoras - Universidad Nacional del Sur and CONICET, Bahía Blanca, Argentina, 8000, _cad@uns.edu.ar_ Gustavo Patow ViRVIG-UdG, Girona, Spain, _gustavo.patow@udg.edu_ Abstract Realistic real-time water-solid interaction has been an open problem in Computer Graphics since its beginnings, mainly due to the complex interactions that happen at the interface between solid objects and liquids, both when objects are completely or partially wet, or when they are fully submerged. In this paper we present a method that tackles the two main aspects of this problem, namely the buoyancy of objects submerged into fluids, and the superficial liquid propagation and appearance changes that arise at the interface between the surface of solid objects in contact with a liquid. For the first problem (buoyancy) a method is proposed to realistically compute the fluid-to-solid coupling problem. Our proposal is suitable for a wide spectrum of cases, such as rigid or deformable objects, hollow or filled, permeable or impermeable, and with variable mass distribution. In the case of permeable materials, which allow liquid to pass through the object, the presented method incorporates the dynamics of the fluid in which the object is submerged, and decouples the computation of the physical quantities involved in the buoyancy force of the empty object with respect to to the liquid contained within it. On the other hand, the visual appearance of certain materials depends on their intrinsic light transfer properties, the lighting present and other environmental contributions. Thus, complementing the first approach in this paper, a new technique is introduced to model and render the appearance changes of absorbent materials when there is liquid on their surface. Also, a new method was developed to solve the problem of the interaction between the object surface and liquids, taking advantage of texture coordinates. An algorithm was proposed to model the main physical processes that occur on the surface of a wet or wet solid object. Finally, we model the change in appearance that typically arise in most materials in contact with fluids, and an algorithm is implemented achieving real-time performance. The complete solution is designed taking advantage of superscalar architectures and GPU acceleration, allowing a flexible integration with the pipelines of current graphic engines. Keywords: Real-Time Rendering, Computer Graphics, Procedural Animation, Buoyancy, Wetting 1 Introduction Solid-liquid interaction of objects totally or partially submerged in liquid media has been an active research topic in the area of Computer Graphics since its beginning. This topic is of particular importance in CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 video games, virtual reality and other interactive applications, and has received significant attention for its relevance in simulators, serious games, and similar contexts. Despite its great importance in research, an interactive and complete model for the liquid-to-solid interaction is still an open problem, since most of the presented techniques use highly simplified ’proxy’ geometries [1], or are not applicable to real-time solutions due to their computational complexity [2]. One of the challenges regarding this problem is the requirement to quickly and accurately compute the variables involved in the dynamics of movement, taking into account situations such as, among other things, liquid entering the object and moving within it. The first contribution presented here is to propose an algorithm for the approximate, although realistic, computation of the two-way coupling problem, that is, solid-to-liquid interaction, and vice versa, simultaneously. Currently, there are satisfactory solutions for only a part of the problem corresponding to the solid-to-liquid coupling [3], therefore here we will focus on the complementary problem, the liquid-to-solid interaction. The fundamental concept underlying the proposed solution is that with a reasonable parameterization, the textures traditionally used for color and other visual characteristics can be used to compute in a scalable way all the physical quantities necessary to simulate the system in question accordingly. Other aspect of the liquid-to-solid interaction problem is that the color of many materials (especially porous, rough or absorbent ones) appear darker and more vividly colored when wet. This easily observable phenomenon can be explained by the complex interactions of light that take place on the surface of the object when there is a layer of translucent liquid on its surface. In other words, the presence of a layer of liquid generates a crisper surface, generating a more vivid visual appearance and, at the same time, increases the proportion of light that is absorbed by the material, darkening and saturating the perceived color. An example of this is the water-sand-wind-sun interaction on beaches. Our perception offers several clues about the properties of the scene, for example, if the sand is fine or coarse, how the sea water is draining and evaporating, or if the surface can be slippery, to name just a few examples. These types of perceptions are naturalized through our daily experience, but they are difficult to model in the area of photo-realistic rendering. The optical effects that arise on wet surfaces and the appropriate models for diffusion, absorption and evaporation in porous materials have been studied in detail in Physics, Computer Vision and other disciplines, but so far, only a few consistent models have been proposed in Computer Graphics. Thus, we also present a Physics-inspired comprehensive model for rendering wet absorbent materials. Although our proposal is phenomenological in nature, it is intended to be comprehensive by taking into account most of the relevant factors that lead to the final visual appearance of wet surfaces, including the geometry of the object, the micro-physical properties of the material (e.g. example, its porosity and micro texture) and the dynamic behavior of the liquid, including absorption, diffusion and evaporation. This provides the ability to model reasonably wet absorbent materials in an intuitive and flexible manner. Although the model is a simplification of the underlying physics, the results are realistic and can be calculated in real time. _Contributions_ - To the best of our knowledge, this is the first method capable of calculating all the significant magnitudes necessary to describe the buoyancy movement of a 3D model in real time, including the center of gravity, inertia momentums, center of buoyancy, friction, among others. The proposed method supports deformable or variable-shaped objects, since it can compute the required quantities instantaneously and continuously. - We also propose a new data structure and an algorithm to dynamically represent the liquid within a submerged 3D object, in addition to the mechanisms to calculate its entry and displacement within the submerged object depending on its movement. This makes possible to simulate not only the buoyancy of a submerged object, but also its behavior in a realistic way, which, to our knowledge, is not generally possible so far. - The proposed technique does not require manual processing of the input models, since it uses the parameterization typically used for texture mapping at the stage of artistic creation of the model. - We also developed a representation and modeling technique for wet materials inspired by the underlying physics. - We implement a computational method for photo-realistic simulation and representation of liquid dynamics on a surface, based on the underlying physical processes of diffusion, evaporation and absorption. CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 - Finally, we integrate these processes in a real-time pipeline that takes advantage of the characteristics of the latest graphics engines and that is fully integrable in most of the development libraries and frameworks in Graphics Computing. 2 Buoyancy Simulation In this section we will describe a novel method to compute all the variables involved in the phenomenon of buoyancy and the liquid-solid interaction of submerged objects (partially or totally). These variables include center of mass, total mass, inertia tensor, and others. Regarding the liquid-solid interaction, a method for impermeable solid objects floating in a liquid medium will be presented. For this case, a parameterization R <sup>3</sup> _−→_ R <sup>2</sup> of the model polygon mesh is needed, typically used for the texture mapping technique [4]. With this information it is possible to directly compute the variables involved in the buoyancy simulation. By employing the parameterization used for texture mapping, the method takes advantage of the multi-parallel architecture of the graphics processor (GPU), allowing the necessary variables to be computed in real time and accurately, without the need to add extra information to the geometry by part of the artist. The method can be used for deformable or dynamic models since the metrics can be computed interactively. For the simulation of the solid _−→_ liquid interaction there are different solutions; in particular, the implementation of our solution is compatible with the work proposed by [3]. Figure 1: General description of our method: from the parameterized input model we calculate two additional textures (the position texture and the vector-area texture), used to calculate the parameters of the physical model (for example, submerged volume, center of buoyancy, tensor of inertia, etc.). Finally, we calculate the penetration of water in the geometry of the model, and we use an auxiliary structure, the liquid graph, to obtain the relevant physical quantities. This method will be explained in the next section. CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 2.1 Mathematical model To solve the floating motion accurately, the method requires the evaluation of certain physical magnitudes corresponding to the modeled dry object (without liquid contained within), these are total mass, tensor of inertia and center of mass. These magnitudes are automatically generated and can be precomputed in case the object is not deformed during the simulation or they can be calculated in each frame of the simulation, clearly with a performance penalty. Given a model _M_, the properties of mass are: the total mass _M_, the center of mass _C_ and the inertial tensor _I_, given by a symmetric 3x3 matrix. Assuming that the surface _M_ encloses a volume Ω _∈_ R <sup>3</sup> that corresponds to the solid of constant density _ρ_, we can express the properties of mass as [5]: _,_ (1) b = �1 _x_ _y_ _z_ _xy_ _yz_ _xz_ _x_ <sup>2</sup> _y_ <sup>2</sup> _z_ <sup>2�</sup> calculating the volume integral over Ω: s ( _ρ_ ) = - _s_ 1 _sx_ _sy_ _sz_ _sxy_ _syz_ _sxz_ _sx_ 2 _sy_ 2 _sz_ 2 <sup>�</sup> _,_ (2) where s _t_ ( _ρ_ ) = _ρ_ Ω _t_ _dV._ (3) The terms defined in the equation 2 can be expressed as surface integrals using the _Divergence_ _Theorem_ . For this we identify a vector field B for each _b_ component of b such that _∇·_ B = _b_ : 0 _x_ <sup>2</sup> _/_ 2 0 0 _x_ <sup>2</sup> _y/_ 2 0 0 _x_ <sup>3</sup> _/_ 3 0 0 _y_ 0 _y_ <sup>2</sup> _/_ 2 0 0 _y_ <sup>2</sup> _z/_ 2 0 0 _y_ <sup>3</sup> _/_ 3 0 0 0 0 _z_ <sup>2</sup> _/_ 2 0 0 _z_ <sup>2</sup> _x/_ 2 0 0 _z_ <sup>3</sup> _/_ 3   _._ (4) B =   Then _∂_ Ω n _·_ B _dS,_ (5) s ( _ρ_ ) = _ρ_ Ω b _dV_ = _ρ_ Ω _∇·_ B _dV_ = _ρ_ where n is the normal vector to surface. 2.2 Data structures As shown in the previous section, it is possible to express the components of the vector s ( _ρ_ ) as surface integrals on the object. In order to implement the computation of integrals in a scalable way and fast enough for a real-time solution, we propose the data structures that are detailed below. _2.2.1_ _Position_ _texture_ In order to have a scalable and fast enough technique to obtain this information, a new type of three-channel texture called _Position_ _Texture_ (PT) is defined. This concept requires the geometry of the solid model and its corresponding parameterization on a 2D space; typically, classic texture mapping parameterization will be used. The PT is automatically generated from the polygon mesh and its UV texture mapping, commonly provided by the artist (or is generated procedurally). In it, each texel stores its own position in object coordinates. From a mathematical point of view, the PT stores the reverse texture mapping (R <sup>2</sup> _→_ R <sup>3</sup> ). It is important to clarify that the texture mapping must be bijective, otherwise we would lose information during the computation of the inverse function because the same texel could have two different object positions. While bijective texture mapping is an extra requirement, it is currently not considered excessive. The process of generating the PT consists of taking each one of the polygons of the mesh of the object and transforming them to the texture space. Assuming meshes formed by triangles, this process can be done by taking the three vertices forming a face, projecting them into the texture space using UV mapping and then interpolating the intermediate texels using barycentric coordinates. Let _M_ be a bijective texture mapping, _P_ = _P_ 0 _P_ 1 _P_ 2 a triangle of the polygon mesh, _Pt_ = _M_ ( _P_ ) = _T_ 0 _T_ 1 _T_ 2 the triangle in texture coordinates and _T_ a texel within the polygon _Pt_ . In this way, _T_ is a vector whose value is given by _T_ = _λ_ 0 _P_ 0 + _λ_ 1 _P_ 1 + _λ_ 2 _P_ 2 _,_ where _λ_ 0, _λ_ 1 y _λ_ 2 are the baricentric coordinates of _T_ relative to _T_ 0, _T_ 1 y _T_ 2 (See Figure 2). CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 Figure 2: The texture generation method consists of _rasterizing_ the triangle of the polygonal mesh into a synthetic texture, interpolating the corresponding vertex attribute from the barycentric coordinates. For example, for the position texture, the vertex position is interpolated in object coordinates. For the vectorarea texture, the normal vector of each vertex is interpolated. _2.2.2_ _Vector-area_ _Texture_ In addition to the PT presented in the previous subsection, we need more information from the texel to be able to compute the surface integrals, components of the vector s ( _ρ_ ). In particular, we need the normal vector to the surface and the area of the integration segments ( _dS_ ). From this we will define another data structure, called _Vector-Area_ _Texture_ (VAT). Let _Ti_ be the _i_ -th texel of the VAT, it stores a 3D vector whose direction is parallel to the normal of the surface n _i_ at given point and its magnitude is the area ( _ai_ ) of the surface occupied by the texel in world coordinates, that is, it stores A _i_ = _ai_ n _i_ as a 4-tuple: <sup>_x_</sup> _i_ <sup>_, ny_</sup> _i_ _Ti_ = _< n_ <sup>_x_</sup> _i_ <sup>_y_</sup> _i_ <sup>_, n_</sup> _i_ <sup>_z_</sup> _i_ <sup>_z, ai_</sup> <sup>_>,_</sup> (6) <sup>_x_</sup> _i_ <sup>,</sup> <sup>_ny_</sup> _i_ where _Ti_, y _n_ <sup>_x_</sup> _i_ <sup>_y_</sup> _i_ <sup>y</sup> <sup>_n_</sup> _i_ <sup>_z_</sup> where _Ti_, y _n_ <sup>_x_</sup> _i_ <sup>,</sup> <sup>_ny_</sup> _i_ <sup>y</sup> <sup>_n_</sup> _i_ <sup>_z_</sup> <sup>are</sup> <sup>the</sup> <sup>components</sup> <sup>of</sup> <sup>the</sup> <sup>unit</sup> <sup>normal</sup> <sup>vector</sup> <sup>of</sup> <sup>the</sup> <sup>texel</sup> <sup>and</sup> <sup>_ai_</sup> <sup>is</sup> <sup>the</sup> <sup>area</sup> <sup>of</sup> <sup>the</sup> surface occupied by the texel calculated as: _ai_ = <sup>_<u>AP</u>_</sup> _NT_ _,_ (7) where _AP_ is the surface area of the polygon _P_ in which the texel _Ti_ is mapped and _NT_ is the number os texels to which _P_ is mapped. Clearly these values must be linearly transformed according to the depth (Bit Depth) of the image used. For example, in 8-bit images per channel and integer data type, the values will be encoded between 0 and 255. 2.3 Liquid-to-solid coupling Using the terms defined in Section 2.1 and the data structures defined above, we propose a computational method to calculate the properties of mass: total mass ( _M_ ), center of mass ( _CM_ ), and inertia tensor ( I ). _M_ = _s_ 1 _,_ C _M_ = <sup><u>1</u></sup> _M_ <sup>[</sup> <sup>_sx, sy, sz_</sup> <sup>]</sup> <sup>_,_</sup>    _._ I =  _sy_ 2 + _sz_ 2 _−sxy_ _−sxz_ _−sxy_ _sx_ 2 + _sz_ 2 _−syz_ _−sxz_ _−syz_ _sx_ 2 + _sy_ 2 When a certain object is submerged in liquid, its dynamics is defined by the contact surface between the two. The method we present is independent of the technique used to implement liquid dynamics. _2.3.1_ _Submerged_ _volume_ _computation_ When a certain object is submerged in liquid, its dynamics is defined by the contact surface between the two. To compute the portion of submerged volume, the following expression is applied graphically explained CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 Figure 3: Geometric interpretation of the submerged volume count (hatched region): Texels whose normal has a negative vertical component (green) contribute to the total submerged volume. On the other hand, the texels whose normal has a positive vertical component (red) subtract volume from the total. Repeating this computation and calculating the total sum of all the contributions of the texels, we calculate an approximation of the volume of the submerged portion of the solid. in Figure 3: _SV_ = _Vsub_ _dv_ = _∂Vsub_ n _·_ r _ds,_ (8) with the precaution of integrating only over the submerged volume portion _Vsub_ and not on the total volume of the object _V_ . It is straightforward that the submerged volume _Vsub_ is enclosed between the surface of the liquid and the surface of the object located below it, therefore _Vsub_ it can be calculated by integration between these two limits. In addition, the use of VAT to correctly project the texel area in the y-axis direction can be observed. 3 Buoyancy Simulation in Permeable Objects This section presents the most important results in the representation and simulation of the behavior of objects whose floating dynamics can change over time. This dynamic may be due to the fact that the objects are made of permeable material, or because they are shallow and liquid can move inside them. 3.1 Liquid graph To model these cases we propose an extension of the method presented above incorporating a new data structure called _Liquid_ _Graph_ (LG). This structure is used to approximate the distribution of liquid within the object and simulate its movement through the internal structure, taking into account its geometry. Mathematically, the LG is defined as _GL_ = ( _N, E_ ) _,_ where _N_ is a set of vertices or nodes _Ni_ representing the available space within the object that can be filled with liquid, either hollow space or distributed space within the material and is defined by _N_ = _{Ni}, Ni_ = _<_ xi _, ci, li_ _>,_ where xi is the position of the node in object coordinates, _ci_ is the volume of liquid that it can store before being saturated (capacity) and _li_ the volume of liquid present in the node, the latter being expressed in liters. In addition, _E_ = _{< Ni, Nk, p_ <sup>_g_</sup> _ik_ <sup>_>}_</sup> is the set of pairs of nodes _Ni_ and _Nk_ such that their represented spaces are connected and _p_ <sup>_g_</sup> _ik_ <sup>is the average</sup> permeability of the material found between the spaces represented by the nodes. 3.2 Automatic construction The _Liquid_ _Graph_, if relatively simple, can be created in a supervised (manual) manner by an artist or model creator. An alternative is to implement an algorithm for the automatic generation of the graph. For this, a polygonal mesh segmentation algorithm is required to partition the model into the different volumes that compose it. CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 Figure 4: Construction of the _Liquid_ _Graph_ : Mesh segmentation and creation of nodes for different amount of sub-meshes. The colors indicate the node corresponding to each sub-mesh. 1. Initially the algorithm calculates a segmentation of the input polygon mesh as follows: 2. Subsequently, the algorithm calculates, for each sub-mesh generated by the segmentation algorithm, a sphere centered on the geometric center of the sub-mesh such as to minimize the quadratic error between the surface of the sphere and the vertices of the sub-mesh. 3. Finally, with all the nodes generated, an edge is added to the graph between two nodes in the event that the sub-meshes represented by them are adjacent, that is, they share some vertex or edge in the original mesh. Figure 4 shows the same model automatically segmented with different number of groups (clusters) in the grouping algorithm, and the graph generated from each of the segmentations is also shown. Once the graph is created and the capacities of each node established together with the connectivity between them, either manually or automatically with the method described in the previous section, the dynamics of the liquid within the object can be evaluated. The method is proposed to work in real time, therefore it is feasible to repeat it in each frame of an animation. 4 Wet Materials The visual appearance of some materials changes significantly when wet. Colors are typically altered by increasing their saturation and decreasing their intensity, resulting in darker and more vivid colors. The proposed method consists of a three-stage processing pipeline for modeling and rendering wet materials. Initially, the polygon mesh is pre-processed and a special data structure is created. Later, during the simulation, the dynamics of the absorbed liquid is calculated and the results are updated. Finally, the mesh is rendered in real time using the data structures generated during the simulation. The processing pipeline, shown in Figure 5, is detailed below: In the pre-processing stage: 1. Process the polygon mesh and create a special texture called _Position-Area_ _texture_ (PAT) which encodes, for each texel, its position together with the surface area covered by it, both in object coordinates. This process is done only once per model. The PAT texture in a combination of the two textures presented above. In this case, the area vector is not used for the computation of the simulation, therefore it is not included in the generated structures. In the case that both buoyancy and change of appearance are simulated, the more general pair of textures PT and VAT can be used, replacing the PAT. During the simulation cycle: 2. Update the state of the fluid according to the model used to simulate it. CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 3. Update the _Liquid_ _Texture_ (TL), which stores the amount of liquid on the surface of the model, solving the liquid-object collision from the PAT. This process consists of: (a) Compute the income of the liquid from the Darcy model. (b) Compute the intra-object diffusion process according to Fick’s law from the creation of a _Liquid_ _Density_ _Field_ (LDF) in order to perform the simulation in 3D space. (c) Compute the evaporation of the liquid. 4. Render the scene using a matching model for wet surfaces. Although our implementation uses a 2D grid to simulate the liquid, the method can be adapted to other fluid modeling techniques, such as particle systems or 3D grids. 4.1 Data structures In order to simulate liquids and their interaction with solids in a precise and scalable way, when using the texture space as a resource, it is necessary to establish a bidirectional correspondence between this 2D space (where the absorbed liquid information is stored) and the space of the 3D world (where the object is immersed and the phenomena happen properly). For this the PAT allows to store spatial and geometric information of each texel. This texture is a simplification that arises from combining together the PT and VAT presented above. Furthermore, in order to simulate the dynamics of the liquid, it is necessary to define a corresponding data structure to store the amount of liquid absorbed at each point on the surface of the object. For this structure, the mesh parameterization will also be used for texture mapping and the necessary information will be stored in a mono-channel texture called _Liquid_ _Texture_ (LT), where each texel stores the amount of liquid per unit area at its position on the model surface (see Figure 6). 4.2 Liquid dynamics in porous material Absorption, diffusion and evaporation are clearly the most noticeable effects relative to liquid in contact with absorbent or porous materials. For this reason, because our method is focused on proposing a visually realistic method in real time, we will present a solution for its simulation. In this section we will present the models that will be used to simulate the different phenomena and how to implement them in a scalable way from the structures presented above. _4.2.1_ _Absortion_ In order to model the ingress of liquid in permeable models, an approximation based on Muskat’s work on Darcy’s Law is used [6], which consists of Φ _A_ = _−_ <sup>_<u>CP M</u>_</sup> <sup>_<u>A</u>_</sup> <sup><u>∆</u></sup> <sup>_<u>ρ</u>_</sup> _,_ (9) _µL_ where Φ _A_ is the flow per unit time, _CP M_ is the permeability of the medium defined globally for the whole model or by texel in a _permeability_ _texture_ (PMT), _A_ is the area of the flow, _µ_ is the viscosity of the liquid and ∆ _ρ_ is the pressure difference in the contact area measured along a section of length _L_ . _4.2.2_ _Evaporation_ Evaporation is the process of phase change from a liquid to a gaseous state by a liquid substance and the associated transport of the resulting vapor [7]. Acording to Hall and Hoff [7], the _Evaporation_ _Rate_ _e_ can be modeled as _e_ = _−_ <sup>_<u>pw</u>_</sup> <sup><u>0</u></sup> <sup>_<u>DwρwM</u>_</sup> _Rτ_ _<u>dH</u>_ _dx_ <sup>_,_</sup> (10) where _H_ is fractional relative humidity, _ρw_ is the density of the liquid, _M_ the molar mass, _Dw_ is the diffusivity of the liquid in air, _R_ is the _universal_ _constant_ _of_ _the_ _gases_ and _τ_ the ambient temperature. CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 Figure 5: Processing _Pipeline_ . In the first instance, the geometry is pre-processed and the PAT is created. Next, the absorbed liquid simulation is updated according to the simulated phenomena by updating the liquid density texture. Finally, the geometry is rendered taking into account the information obtained in the previous stages. CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 Figure 6: A _Liquid_ _Texture_ (LT) is defined that stores the amount of liquid per unit area in each texel. This texture is updated according to the interaction of the model with the liquid present in the scene interactively using the positions of the texels stored in the PAT. This texture will be used for rendering, during the final stage of the pipeline. _4.2.3_ _Diffusion_ Diffusion is the process by which matter is transported, due to the random movement of molecules, from one point in space to another. This process can be modeled using the first _Fick’s_ _Law_ [8, 9] which states that, when there are regions with different concentrations of matter, a flow is generated from regions with higher concentration to regions with higher concentration more low. Mathematically, _Fick’s_ _Law_ is expressed as J = _−D∇ϕ,_ where J is the diffusion vector of the flow, _D_ is the diffusion coefficient, which depends entirely on the material, and _ϕ_ a scalar field representing the concentration. 4.3 Render model Precise rendering of a certain surface requires complex modeling of light transport. In particular, wet absorbent materials exhibit a particular effect that consists in changing the appearance of the perceived color, specifically in saturation and brightness. A plausible explanation for the cause of this phenomenon is related to light behavior in the interface between the object’s surface and the thin liquid area. In order to propose a real-time rendering technique inspired by the underlying physical phenomena, this section is based on the work published by [10], which is an extension of [11]. In both works, the authors propose a Physics-based model that explains why absorbent materials appear darker when wet. According to these studies, a fraction of the light reflected diffusely on the surface of the object is reflected back into the object at the water-liquid interface, generating an increase in the total internal reflection (see Figure 7) producing a darker visual appearance. In addition, the authors calculate the probability of total internal reflection. In short, a larger proportion of the diffuse reflection on the object’s surface is retained and bounced back by the liquid layer, therefore intensifying the object’s hue (increased saturation) but decreasing the overall reflection (decreased brightness). Based on this model, a suitable rendering method is proposed to obtain realistic images of wet material surfaces in real time. The model assumes that the object has a distinguishable, rough surface. Also, our model can be extended to include colored liquids. 5 Results As an example of our method, the images of the buoy shown in Figure 8 are simulated using the method proposed for buoyancy. The same animation is shown in Figure 9 rendered with the corresponding forces superimposed with an orthographic projection. Figure 10 shows some frames of the animation of a sinking ship. The permeability of the object is defined by texel and stored in the PMT simulating a damaged section in the right front part of the ship’s hull. The PMT is shown in the upper left image. The same ship model is shown in Figure 11 but with a different PMT. In this case, the damaged section is on both sides of the rear section of the helmet. It is important to note that the computation times do not depend on the size of the polygon mesh of the model since the method is completely texture-based. CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 Figure 7: Model of the interaction of light with a wet material. First, a portion of the incoming light beam is reflected at the air-liquid interface (red dot) (1). Next, the transmitted portion reaches the surface of the object and is again decomposed into two different interactions: one is absorbed by the object and the other is reflected. The proportion of reflected light determines the diffuse color of the material (albedo) (blue dots) (2). Subsequently, the reflected ray is again decomposed in two directions at the liquid-air interface (green dots) (3), part of the light is transmitted outwards and another part is reflected back towards the surface of the object. This process is repeated indefinitely. Figure 8: Frames of an animation showing the simulation of a buoy. The buoy is not permeable, that is, no liquid enters its interior. Using the position in the world of the texels, the areas in contact with water are rendered in accordance with the method described in section 4. Figure 12 shows a set of tables of an unstable floating simulation. Since the center of buoyancy is below the object’s center of mass, the object does not tend to regain its initial rotation. Compare this behavior with ship simulations, in which the object, despite being disturbed by the waves, tended to return to its initial rotational position. In the particular case of this simulation, the ball does not return to its initial rotation; for that reason, it is called unstable. On the other hand, the presented method can also be used to simulate objects whose mass distribution changes over time. In these cases, the physical quantities involved in the simulation need to be computed in each frame of the simulation, since they change continuously and cannot be precomputed. Figure 13 shows a ball with variable mass distribution. The mass density function is displayed encoded in a pseudo-color scheme on the model; the red areas indicate a higher density of mass and the green areas, lower. The distribution corresponding to each box is shown in a box in the lower left area in each of the boxes. In this case, unlike the ship and buoy simulations where the mass distribution is constant over time, the magnitudes must be re-computed in each frame. This simulation shows that the computation times, even in a general case where certain magnitudes cannot be pre-computed, remain consistent with interactive applications. Furthermore, the proposed model is capable of working with deformable and / or animated models if the PAT is computed in each frame, for example, with _render_ _to_ _texture_ techniques. Figure 14 shows a plush object that tends to absorb liquid through its permeable surface following a diffusion propagation model. In this case, the liquid graph is generated automatically with the method explained above. Figure 15 shows a simulation of a deformable model showing that the method also works correctly for simulations of objects immersed in gaseous media. The island scene shown in Figure 16 is an CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 Figure 9: Frames of the animation of the buoy at different instants of time showing the forces corresponding to the weight and the thrust in orthographic perspective. It is possible to observe the relative positions and magnitudes of the weight force (red vector) and thrust (green vector) according to the submerged portion of the model. Clearly the weight force remains constant throughout the simulation because no liquid enters the model; therefore, its mass is constant. Figure 10: Frames of the simulation of the sinking of a ship. The upper left image shows the PMT from different points of view. Red texels are permeable while white ones are not. Figure 11: Frames of the simulation of the sinking of a ship with an alternative PMT to the one used in the figure 10. The upper left image shows the PMT from different points of view. Red texels are permeable while white ones are not. Figure 12: Different frames of the unstable buoyancy simulation. The ball has a uniform density of mass on the surface, therefore its center of mass is located at the geometric center of the object. On the other hand, the center of buoyancy is always located below the center of mass (since the object is not totally submerged) generating an unstable movement, that is, the object does not tend to recover its initial rotation. CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 Figure 13: Frames of a simulation of an object with variable mass distribution over time. The proposed method can also be used with objects of variable mass (for example, a small boat with people moving inside it). The fact of using textures as data structures allows the method to calculate the physical magnitudes of the system in real-time and according to the state of the system (see the mass distribution in the lower left box of each table). In the figure, the color map shows the mass density function in each box: red areas show higher mass density and green areas lower. The yellow vector is the weight force and the blue vector the buoyant force. In this simulation, the total mass, the center of mass and the inertial tensor were computed in each frame using textures of 1024x1024 texels. Average frame computation time was 3.2 milliseconds Figure 14: Frames of the simulation of a plush doll using the automatically generated graph shown in the figure 4. example of the wet porous materials simulation algorithm and consists of four models, 250k triangles in total, that simulate the presence of moisture on its surface. Each animation frame takes, on average, 11 milliseconds to process. Figure 17 shows the results using an artistically created _Liquid_ _Texture_ and the rendering model simulating colored translucent liquid. Figure 18 compares a real-world scene, captured with a high-quality camera, with the results of our method. All the videos of the different simulations presented here can be accessed from `[https://youtu.be/67D1G0n-5lk](https://youtu.be/67D1G0n-5lk)` and `[https://youtu.be/JxkOrAjlv6M](https://youtu.be/JxkOrAjlv6M)` . 6 Conclusion We presented an encompassing approach to model the different interactions that occur between a liquid and a solid, consisting of two approaches, one to solve the liquid-to-solid coupling, and the other to realistically model the appearance and evolution of wet materials. With respect to the first approach, and to the best of our knowledge, this is the first method capable of calculating the significant magnitudes necessary Figure 15: Frames of the simulation of a hot air balloon showing the operation of the proposed method with animated polygonal meshes. In this case the object is immersed in a gaseous medium (air). The red vector shows the weight force, while the green one shows the thrust force that depends on the volume of air displaced. CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 Figure 16: Frames of the beach simulation, showing the effect of the diffusion process. Portions of sand out of reach of the water that are moistened by this effect. Changes in appearance and reflectivity between wet and dry areas are easily noticeable. Figure 17: Image rendered with colored liquid from an artist-specified LT. to describe the buoyancy movement of a 3D model in real time: center of gravity, moments of inertia, center of buoyancy, friction, among others. As previously mentioned, our method supports deformable or variable-shaped objects, as it can compute the required quantities instantaneously and continuously. Together with this fast calculation approach, we provide a new set of data structures, together with an algorithm, which enable dynamical representations of the liquid within a submerged 3D object. This, together with a mechanism to calculate water entry and displacement within the submerged object depending on its movement, results in a comprehensive model for buoyancy. By combining these atomic algorithms and data structures, it is now possible to simulate not only the buoyancy of a submerged object, but also its behavior in a realistic way, which, to our knowledge, is not generally possible so far. Our second approach, a representation and modeling technique for wet materials inspired by the underlying Physics, implements a computational method for photo-realistic simulation and representation of liquid dynamics on a surface, based on the underlying physical processes of diffusion, evaporation and absorption. Finally, we integrate these processes in a real-time pipeline that takes advantage of the characteristics of the latest graphics engines and that is fully integrable in most of the development libraries and frameworks in Graphics Computing. Also, the proposed techniques do not require manual processing of the input models, since they uses the parameterization typically used for texture mapping at the stage of artistic creation of the model. Thus, this enables to use the models without any costly pre-processing stage, rendering these techniques suitable for video-games and other real-time applications. 7 Acknowledgments This work was partially funded by project TIN2017-88515-C2-2-R from Ministerio de Ciencia, Innovación y Universidades, Spain, project 24/K083 from the SECyT, Universidad Nacional del Sur, Argentina, and a scholarship by the National Science and Technology Council of Argentina (CONICET). CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 References [1] C. Gonzalez-Ochoa, “Advances in real-time rendering in games: Rendering rapids in uncharted 4,” in _SIGGRAPH_ _’16:_ _ACM_ _SIGGRAPH_ _2016_ _Courses_ . New York, NY, USA: ACM, 2016. [2] W. Lu, N. Jin, and R. Fedkiw, “Two-way coupling of fluids to reduced deformable bodies,” in _Proceedings_ _of_ _the_ _ACM_ _SIGGRAPH/Eurographics_ _Symposium_ _on_ _Computer_ _Animation_, ser. SCA’16. Goslar Germany, Germany: Eurographics Association, 2016, pp. 67–76. [Online]. Available: [http://dl.acm.org/citation.cfm?id=2982818.2982829](http://dl.acm.org/citation.cfm?id=2982818.2982829) [3] S. Jeschke, T. Skřivan, M. Müller-Fischer, N. Chentanez, M. Macklin, and C. Wojtan, “Water surface wavelets,” _ACM_ _Trans._ _Graph._, vol. 37, no. 4, pp. 94:1–94:13, Jul. 2018. [Online]. Available: [http://doi.acm.org/10.1145/3197517.3201336](http://doi.acm.org/10.1145/3197517.3201336) [4] E. E. Catmull, “A subdivision algorithm for computer display of curved surfaces.” Ph.D. dissertation, 1974, aAI7504786. [5] M. Bächer, B. Bickel, E. Whiting, and O. Sorkine-Hornung, “Spin-it: Optimizing moment of inertia for spinnable objects,” _Commun._ _ACM_, vol. 60, no. 8, pp. 92–99, Jul. 2017. [Online]. Available: [http://doi.acm.org/10.1145/3068766](http://doi.acm.org/10.1145/3068766) [6] M. Muskat and R. Wyckoff, _The_ _Flow_ _of_ _Homogeneous_ _Fluids_ _Through_ _Porous_ _Media_, ser. International series in physics. McGraw-Hill Book Company, Incorporated, 1937. [7] C. Hall and W. Hoff, _Water_ _Transport_ _in_ _Brick,_ _Stone_ _and_ _Concrete_ . CRC Press, 2009. [8] A. Fick, “On liquid diffusion,” _Journal_ _of_ _Membrane_ _Science_, vol. 100, no. 1, pp. 33–38, mar 1995. [9] J. Crank, _The_ _Mathematics_ _of_ _Diffusion_ . Clarendon Press, 1956. [10] J. Lekner and M. C. Dorf, “Why some things are darker when wet,” _Appl._ _Opt._, vol. 27, no. 7, pp. 1278–1280, Apr 1988. [11] A. Ångström, “The albedo of various surfaces of ground,” _Geografiska_ _Annaler_, pp. 323–342, 1925. [12] G’MIC Project, [“http://gmic.eu/,”](http://gmic.eu/) Accessed 12/12/2017. CLEI electronic journal, Volume 25, Number 1, Paper 4, April 2022 Figure 18: Images generated from the developed model compared with captures from the real world. The first column shows the actual drying process of a wet pot. The second column shows a sequence of animation frames performed with the presented simulation technique. The third column also shows the result of the simulation with pseudocolor to show the wet zone. In order to simulate the real conditions, the following conditions were taken into account: the texture of the pot model was synthesized from a sample of the surface texture of the real pot using a patch-based method implemented by the G’MIC project [12].

섹션 본문 52문단 · 32,945자

(제목 없음)

1Realistic real-time water-solid interaction has been an open problem in Computer Graphics since its beginnings, mainly due to the complex interactions that happen at the interface between solid objects and liquids, both when objects are completely or partially wet, or when they are fully submerged. In this paper we present a method that tackles the two main aspects of this problem, namely the buoyancy of objects submerged into fluids, and the superficial liquid propagation and appearance changes that arise at the interface between the surface of solid objects in contact with a liquid. For the first problem (buoyancy) a method is proposed to realistically compute the fluid-to-solid coupling problem. Our proposal is suitable for a wide spectrum of cases, such as rigid or deformable objects, hollow or filled, permeable or impermeable, and with variable mass distribution. In the case of permeable materials, which allow liquid to pass through the object, the presented method incorporates the dynamics of the fluid in which the object is submerged, and decouples the computation of the physical quantities involved in the buoyancy force of the empty object with respect to to the liquid contained within it. On the other hand, the visual appearance of certain materials depends on their intrinsic light transfer properties, the lighting present and other environmental contributions. Thus, complementing the first approach in this paper, a new technique is introduced to model and render the appearance changes of absorbent materials when there is liquid on their surface. Also, a new method was developed to solve the problem of the interaction between the object surface and liquids, taking advantage of texture coordinates. An algorithm was proposed to model the main physical processes that occur on the surface of a wet or wet solid object. Finally, we model the change in appearance that typically arise in most materials in contact with fluids, and an algorithm is implemented achieving real-time performance. The complete solution is designed taking advantage of superscalar architectures and GPU acceleration, allowing a flexible integration with the pipelines of current graphic engines. video games, virtual reality and other interactive applications, and has received significant attention for its relevance in simulators, serious games, and similar contexts. Despite its great importance in research, an interactive and complete model for the liquid-to-solid interaction is still an open problem, since most of the presented techniques use highly simplified 'proxy' geometries [1], or are not applicable to real-time solutions due to their computational complexity[2].One of the challenges regarding this problem is the requirement to quickly and accurately compute the variables involved in the dynamics of movement, taking into account situations such as, among other things, liquid entering the object and moving within it. The first contribution presented here is to propose an algorithm for the approximate, although realistic, computation of the two-way coupling problem, that is, solid-to-liquid interaction, and vice versa, simultaneously. Currently, there are satisfactory solutions for only a part of the problem corresponding to the solid-to-liquid coupling [3], therefore here we will focus on the complementary problem, the liquid-to-solid interaction. The fundamental concept underlying the proposed solution is that with a reasonable parameterization, the textures traditionally used for color and other visual characteristics can be used to compute in a scalable way all the physical quantities necessary to simulate the system in question accordingly.Other aspect of the liquid-to-solid interaction problem is that the color of many materials (especially porous, rough or absorbent ones) appear darker and more vividly colored when wet. This easily observable phenomenon can be explained by the complex interactions of light that take place on the surface of the object when there is a layer of translucent liquid on its surface. In other words, the presence of a layer of liquid generates a crisper surface, generating a more vivid visual appearance and, at the same time, increases the proportion of light that is absorbed by the material, darkening and saturating the perceived color. An example of this is the water-sand-wind-sun interaction on beaches. Our perception offers several clues about the properties of the scene, for example, if the sand is fine or coarse, how the sea water is draining and evaporating, or if the surface can be slippery, to name just a few examples. These types of perceptions are naturalized through our daily experience, but they are difficult to model in the area of photo-realistic rendering. The optical effects that arise on wet surfaces and the appropriate models for diffusion, absorption and evaporation in porous materials have been studied in detail in Physics, Computer Vision and other disciplines, but so far, only a few consistent models have been proposed in Computer Graphics. Thus, we also present a Physics-inspired comprehensive model for rendering wet absorbent materials. Although our proposal is phenomenological in nature, it is intended to be comprehensive by taking into account most of the relevant factors that lead to the final visual appearance of wet surfaces, including the geometry of the object, the micro-physical properties of the material (e.g. example, its porosity and micro texture) and the dynamic behavior of the liquid, including absorption, diffusion and evaporation. This provides the ability to model reasonably wet absorbent materials in an intuitive and flexible manner. Although the model is a simplification of the underlying physics, the results are realistic and can be calculated in real time.Contributions• To the best of our knowledge, this is the first method capable of calculating all the significant magnitudes necessary to describe the buoyancy movement of a 3D model in real time, including the center of gravity, inertia momentums, center of buoyancy, friction, among others. The proposed method supports deformable or variable-shaped objects, since it can compute the required quantities instantaneously and continuously.

Introduction

2Solid-liquid interaction of objects totally or partially submerged in liquid media has been an active research topic in the area of Computer Graphics since its beginning. This topic is of particular importance in • We also propose a new data structure and an algorithm to dynamically represent the liquid within a submerged 3D object, in addition to the mechanisms to calculate its entry and displacement within the submerged object depending on its movement. This makes possible to simulate not only the buoyancy of a submerged object, but also its behavior in a realistic way, which, to our knowledge, is not generally possible so far.

3• The proposed technique does not require manual processing of the input models, since it uses the parameterization typically used for texture mapping at the stage of artistic creation of the model.

4• We also developed a representation and modeling technique for wet materials inspired by the underlying physics.

5• We implement a computational method for photo-realistic simulation and representation of liquid dynamics on a surface, based on the underlying physical processes of diffusion, evaporation and absorption.

6• Finally, we integrate these processes in a real-time pipeline that takes advantage of the characteristics of the latest graphics engines and that is fully integrable in most of the development libraries and frameworks in Graphics Computing.

Buoyancy Simulation

7In this section we will describe a novel method to compute all the variables involved in the phenomenon of buoyancy and the liquid-solid interaction of submerged objects (partially or totally). These variables include center of mass, total mass, inertia tensor, and others. Regarding the liquid-solid interaction, a method for impermeable solid objects floating in a liquid medium will be presented. For this case, a parameterization R 3 − → R 2 of the model polygon mesh is needed, typically used for the texture mapping technique [4]. With this information it is possible to directly compute the variables involved in the buoyancy simulation. By employing the parameterization used for texture mapping, the method takes advantage of the multi-parallel architecture of the graphics processor (GPU), allowing the necessary variables to be computed in real time and accurately, without the need to add extra information to the geometry by part of the artist. The method can be used for deformable or dynamic models since the metrics can be computed interactively. For the simulation of the solid − → liquid interaction there are different solutions; in particular, the implementation of our solution is compatible with the work proposed by [3]. Figure 1: General description of our method: from the parameterized input model we calculate two additional textures (the position texture and the vector-area texture), used to calculate the parameters of the physical model (for example, submerged volume, center of buoyancy, tensor of inertia, etc.). Finally, we calculate the penetration of water in the geometry of the model, and we use an auxiliary structure, the liquid graph, to obtain the relevant physical quantities. This method will be explained in the next section.

Mathematical model

8To solve the floating motion accurately, the method requires the evaluation of certain physical magnitudes corresponding to the modeled dry object (without liquid contained within), these are total mass, tensor of inertia and center of mass. These magnitudes are automatically generated and can be precomputed in case the object is not deformed during the simulation or they can be calculated in each frame of the simulation, clearly with a performance penalty.

9Given a model M, the properties of mass are: the total mass M , the center of mass C and the inertial tensor I, given by a symmetric 3x3 matrix. Assuming that the surface M encloses a volume Ω ∈ R 3 that corresponds to the solid of constant density ρ, we can express the properties of mass as [5]:

10calculating the volume integral over Ω:

11where

12The terms defined in the equation 2 can be expressed as surface integrals using the Divergence Theorem. For this we identify a vector field B for each b component of b such that ∇ · B = b:

13Then

14where n is the normal vector to surface.

Data structures

15As shown in the previous section, it is possible to express the components of the vector s(ρ) as surface integrals on the object. In order to implement the computation of integrals in a scalable way and fast enough for a real-time solution, we propose the data structures that are detailed below.

Position texture

16In order to have a scalable and fast enough technique to obtain this information, a new type of three-channel texture called Position Texture (PT) is defined. This concept requires the geometry of the solid model and its corresponding parameterization on a 2D space; typically, classic texture mapping parameterization will be used. The PT is automatically generated from the polygon mesh and its UV texture mapping, commonly provided by the artist (or is generated procedurally). In it, each texel stores its own position in object coordinates. From a mathematical point of view, the PT stores the reverse texture mapping (R 2 → R 3 ). It is important to clarify that the texture mapping must be bijective, otherwise we would lose information during the computation of the inverse function because the same texel could have two different object positions. While bijective texture mapping is an extra requirement, it is currently not considered excessive. The process of generating the PT consists of taking each one of the polygons of the mesh of the object and transforming them to the texture space. Assuming meshes formed by triangles, this process can be done by taking the three vertices forming a face, projecting them into the texture space using UV mapping and then interpolating the intermediate texels using barycentric coordinates.

17Let M be a bijective texture mapping, P = P 0 P 1 P 2 a triangle of the polygon mesh, P t = M (P ) = T 0 T 1 T 2 the triangle in texture coordinates and T a texel within the polygon P t . In this way, T is a vector whose value is given by

18where λ 0 , λ 1 y λ 2 are the baricentric coordinates of T relative to T 0 , T 1 y T 2 (See Figure 2).

Vector-area Texture

19In addition to the PT presented in the previous subsection, we need more information from the texel to be able to compute the surface integrals, components of the vector s(ρ). In particular, we need the normal vector to the surface and the area of the integration segments (dS). From this we will define another data structure, called Vector-Area Texture (VAT). Let T i be the i-th texel of the VAT, it stores a 3D vector whose direction is parallel to the normal of the surface n i at given point and its magnitude is the area (a i ) of the surface occupied by the texel in world coordinates, that is, it stores A i = a i n i as a 4-tuple:

20where T i , y n x i , n y i y n z i are the components of the unit normal vector of the texel and a i is the area of the surface occupied by the texel calculated as:

21where A P is the surface area of the polygon P in which the texel T i is mapped and N T is the number os texels to which P is mapped.

22Clearly these values must be linearly transformed according to the depth (Bit Depth) of the image used. For example, in 8-bit images per channel and integer data type, the values will be encoded between 0 and 255.

Liquid-to-solid coupling

23Using the terms defined in Section 2.1 and the data structures defined above, we propose a computational method to calculate the properties of mass: total mass (M ), center of mass (C M ), and inertia tensor (I).

24When a certain object is submerged in liquid, its dynamics is defined by the contact surface between the two. The method we present is independent of the technique used to implement liquid dynamics.

Submerged volume computation

25When a certain object is submerged in liquid, its dynamics is defined by the contact surface between the two. To compute the portion of submerged volume, the following expression is applied graphically explained Figure 3: Geometric interpretation of the submerged volume count (hatched region): Texels whose normal has a negative vertical component (green) contribute to the total submerged volume. On the other hand, the texels whose normal has a positive vertical component (red) subtract volume from the total. Repeating this computation and calculating the total sum of all the contributions of the texels, we calculate an approximation of the volume of the submerged portion of the solid.

26in Figure 3:

27with the precaution of integrating only over the submerged volume portion V sub and not on the total volume of the object V. It is straightforward that the submerged volume V sub is enclosed between the surface of the liquid and the surface of the object located below it, therefore V sub it can be calculated by integration between these two limits. In addition, the use of VAT to correctly project the texel area in the y-axis direction can be observed.

Buoyancy Simulation in Permeable Objects

28This section presents the most important results in the representation and simulation of the behavior of objects whose floating dynamics can change over time. This dynamic may be due to the fact that the objects are made of permeable material, or because they are shallow and liquid can move inside them.

Liquid graph

29To model these cases we propose an extension of the method presented above incorporating a new data structure called Liquid Graph (LG). This structure is used to approximate the distribution of liquid within the object and simulate its movement through the internal structure, taking into account its geometry. Mathematically, the LG is defined as

30where N is a set of vertices or nodes N i representing the available space within the object that can be filled with liquid, either hollow space or distributed space within the material and is defined by

31where x i is the position of the node in object coordinates, c i is the volume of liquid that it can store before being saturated (capacity) and l i the volume of liquid present in the node, the latter being expressed in liters. In addition, E = {< N i , N k , p g ik >} is the set of pairs of nodes N i and N k such that their represented spaces are connected and p g ik is the average permeability of the material found between the spaces represented by the nodes.

Automatic construction

32The Liquid Graph, if relatively simple, can be created in a supervised (manual) manner by an artist or model creator. An alternative is to implement an algorithm for the automatic generation of the graph. For this, a polygonal mesh segmentation algorithm is required to partition the model into the different volumes that compose it. 1. Initially the algorithm calculates a segmentation of the input polygon mesh as follows:

332. Subsequently, the algorithm calculates, for each sub-mesh generated by the segmentation algorithm, a sphere centered on the geometric center of the sub-mesh such as to minimize the quadratic error between the surface of the sphere and the vertices of the sub-mesh.

343. Finally, with all the nodes generated, an edge is added to the graph between two nodes in the event that the sub-meshes represented by them are adjacent, that is, they share some vertex or edge in the original mesh. Figure 4 shows the same model automatically segmented with different number of groups (clusters) in the grouping algorithm, and the graph generated from each of the segmentations is also shown. Once the graph is created and the capacities of each node established together with the connectivity between them, either manually or automatically with the method described in the previous section, the dynamics of the liquid within the object can be evaluated. The method is proposed to work in real time, therefore it is feasible to repeat it in each frame of an animation.

Wet Materials

35The visual appearance of some materials changes significantly when wet. Colors are typically altered by increasing their saturation and decreasing their intensity, resulting in darker and more vivid colors. The proposed method consists of a three-stage processing pipeline for modeling and rendering wet materials. Initially, the polygon mesh is pre-processed and a special data structure is created. Later, during the simulation, the dynamics of the absorbed liquid is calculated and the results are updated. Finally, the mesh is rendered in real time using the data structures generated during the simulation. The processing pipeline, shown in Figure 5, is detailed below: In the pre-processing stage:

361. Process the polygon mesh and create a special texture called Position-Area texture (PAT) which encodes, for each texel, its position together with the surface area covered by it, both in object coordinates. This process is done only once per model. The PAT texture in a combination of the two textures presented above. In this case, the area vector is not used for the computation of the simulation, therefore it is not included in the generated structures. In the case that both buoyancy and change of appearance are simulated, the more general pair of textures PT and VAT can be used, replacing the PAT.

37During the simulation cycle: Although our implementation uses a 2D grid to simulate the liquid, the method can be adapted to other fluid modeling techniques, such as particle systems or 3D grids.

Data structures

38In order to simulate liquids and their interaction with solids in a precise and scalable way, when using the texture space as a resource, it is necessary to establish a bidirectional correspondence between this 2D space (where the absorbed liquid information is stored) and the space of the 3D world (where the object is immersed and the phenomena happen properly). For this the PAT allows to store spatial and geometric information of each texel. This texture is a simplification that arises from combining together the PT and VAT presented above.

39Furthermore, in order to simulate the dynamics of the liquid, it is necessary to define a corresponding data structure to store the amount of liquid absorbed at each point on the surface of the object. For this structure, the mesh parameterization will also be used for texture mapping and the necessary information will be stored in a mono-channel texture called Liquid Texture (LT), where each texel stores the amount of liquid per unit area at its position on the model surface (see Figure 6).

Liquid dynamics in porous material

40Absorption, diffusion and evaporation are clearly the most noticeable effects relative to liquid in contact with absorbent or porous materials. For this reason, because our method is focused on proposing a visually realistic method in real time, we will present a solution for its simulation. In this section we will present the models that will be used to simulate the different phenomena and how to implement them in a scalable way from the structures presented above.

Absortion

41In order to model the ingress of liquid in permeable models, an approximation based on Muskat's work on Darcy's Law is used [6], which consists of

42where Φ A is the flow per unit time, C P M is the permeability of the medium defined globally for the whole model or by texel in a permeability texture (PMT), A is the area of the flow, µ is the viscosity of the liquid and ∆ρ is the pressure difference in the contact area measured along a section of length L.

Evaporation

43Evaporation is the process of phase change from a liquid to a gaseous state by a liquid substance and the associated transport of the resulting vapor [7]. Acording to Hall and Hoff [7], the Evaporation Rate e can be modeled as

44where H is fractional relative humidity, ρ w is the density of the liquid, M the molar mass, D w is the diffusivity of the liquid in air, R is the universal constant of the gases and τ the ambient temperature. Figure 5: Processing Pipeline. In the first instance, the geometry is pre-processed and the PAT is created. Next, the absorbed liquid simulation is updated according to the simulated phenomena by updating the liquid density texture. Finally, the geometry is rendered taking into account the information obtained in the previous stages.

Diffusion

45Diffusion is the process by which matter is transported, due to the random movement of molecules, from one point in space to another. This process can be modeled using the first Fick's Law [8,9] which states that, when there are regions with different concentrations of matter, a flow is generated from regions with higher concentration to regions with higher concentration more low. Mathematically, Fick's Law is expressed as

46where J is the diffusion vector of the flow, D is the diffusion coefficient, which depends entirely on the material, and ϕ a scalar field representing the concentration.

Render model

47Precise rendering of a certain surface requires complex modeling of light transport. In particular, wet absorbent materials exhibit a particular effect that consists in changing the appearance of the perceived color, specifically in saturation and brightness. A plausible explanation for the cause of this phenomenon is related to light behavior in the interface between the object's surface and the thin liquid area. In order to propose a real-time rendering technique inspired by the underlying physical phenomena, this section is based on the work published by [10], which is an extension of [11]. In both works, the authors propose a Physics-based model that explains why absorbent materials appear darker when wet. According to these studies, a fraction of the light reflected diffusely on the surface of the object is reflected back into the object at the water-liquid interface, generating an increase in the total internal reflection (see Figure 7) producing a darker visual appearance. In addition, the authors calculate the probability of total internal reflection. In short, a larger proportion of the diffuse reflection on the object's surface is retained and bounced back by the liquid layer, therefore intensifying the object's hue (increased saturation) but decreasing the overall reflection (decreased brightness). Based on this model, a suitable rendering method is proposed to obtain realistic images of wet material surfaces in real time. The model assumes that the object has a distinguishable, rough surface. Also, our model can be extended to include colored liquids.

Results

48As an example of our method, the images of the buoy shown in Figure 8 are simulated using the method proposed for buoyancy. The same animation is shown in Figure 9 rendered with the corresponding forces superimposed with an orthographic projection. Figure 10 shows some frames of the animation of a sinking ship. The permeability of the object is defined by texel and stored in the PMT simulating a damaged section in the right front part of the ship's hull. The PMT is shown in the upper left image. The same ship model is shown in Figure 11 but with a different PMT. In this case, the damaged section is on both sides of the rear section of the helmet. It is important to note that the computation times do not depend on the size of the polygon mesh of the model since the method is completely texture-based. The buoy is not permeable, that is, no liquid enters its interior. Using the position in the world of the texels, the areas in contact with water are rendered in accordance with the method described in section 4. Figure 12 shows a set of tables of an unstable floating simulation. Since the center of buoyancy is below the object's center of mass, the object does not tend to regain its initial rotation. Compare this behavior with ship simulations, in which the object, despite being disturbed by the waves, tended to return to its initial rotational position. In the particular case of this simulation, the ball does not return to its initial rotation; for that reason, it is called unstable.

49On the other hand, the presented method can also be used to simulate objects whose mass distribution changes over time. In these cases, the physical quantities involved in the simulation need to be computed in each frame of the simulation, since they change continuously and cannot be precomputed. Figure 13 shows a ball with variable mass distribution. The mass density function is displayed encoded in a pseudo-color scheme on the model; the red areas indicate a higher density of mass and the green areas, lower. The distribution corresponding to each box is shown in a box in the lower left area in each of the boxes. In this case, unlike the ship and buoy simulations where the mass distribution is constant over time, the magnitudes must be re-computed in each frame. This simulation shows that the computation times, even in a general case where certain magnitudes cannot be pre-computed, remain consistent with interactive applications. Furthermore, the proposed model is capable of working with deformable and / or animated models if the PAT is computed in each frame, for example, with render to texture techniques. Figure 14 shows a plush object that tends to absorb liquid through its permeable surface following a diffusion propagation model. In this case, the liquid graph is generated automatically with the method explained above. Figure 15 shows a simulation of a deformable model showing that the method also works correctly for simulations of objects immersed in gaseous media. The island scene shown in Figure 16 is an Figure 12: Different frames of the unstable buoyancy simulation. The ball has a uniform density of mass on the surface, therefore its center of mass is located at the geometric center of the object. On the other hand, the center of buoyancy is always located below the center of mass (since the object is not totally submerged) generating an unstable movement, that is, the object does not tend to recover its initial rotation. Figure 13: Frames of a simulation of an object with variable mass distribution over time. The proposed method can also be used with objects of variable mass (for example, a small boat with people moving inside it). The fact of using textures as data structures allows the method to calculate the physical magnitudes of the system in real-time and according to the state of the system (see the mass distribution in the lower left box of each table). In the figure, the color map shows the mass density function in each box: red areas show higher mass density and green areas lower. The yellow vector is the weight force and the blue vector the buoyant force. In this simulation, the total mass, the center of mass and the inertial tensor were computed in each frame using textures of 1024x1024 texels. Average frame computation time was 3.2 milliseconds Figure 14: Frames of the simulation of a plush doll using the automatically generated graph shown in the figure 4. example of the wet porous materials simulation algorithm and consists of four models, 250k triangles in total, that simulate the presence of moisture on its surface. Each animation frame takes, on average, 11 milliseconds to process. Figure 17 shows the results using an artistically created Liquid Texture and the rendering model simulating colored translucent liquid. Figure 18 compares a real-world scene, captured with a high-quality camera, with the results of our method. All the videos of the different simulations presented here can be accessed from https://youtu.be/67D1G0n-5lk and https://youtu.be/JxkOrAjlv6M.

Conclusion

50We presented an encompassing approach to model the different interactions that occur between a liquid and a solid, consisting of two approaches, one to solve the liquid-to-solid coupling, and the other to realistically model the appearance and evolution of wet materials. With respect to the first approach, and to the best of our knowledge, this is the first method capable of calculating the significant magnitudes necessary Figure 15: Frames of the simulation of a hot air balloon showing the operation of the proposed method with animated polygonal meshes. In this case the object is immersed in a gaseous medium (air). The red vector shows the weight force, while the green one shows the thrust force that depends on the volume of air displaced. to describe the buoyancy movement of a 3D model in real time: center of gravity, moments of inertia, center of buoyancy, friction, among others. As previously mentioned, our method supports deformable or variable-shaped objects, as it can compute the required quantities instantaneously and continuously. Together with this fast calculation approach, we provide a new set of data structures, together with an algorithm, which enable dynamical representations of the liquid within a submerged 3D object. This, together with a mechanism to calculate water entry and displacement within the submerged object depending on its movement, results in a comprehensive model for buoyancy. By combining these atomic algorithms and data structures, it is now possible to simulate not only the buoyancy of a submerged object, but also its behavior in a realistic way, which, to our knowledge, is not generally possible so far.

51Our second approach, a representation and modeling technique for wet materials inspired by the underlying Physics, implements a computational method for photo-realistic simulation and representation of liquid dynamics on a surface, based on the underlying physical processes of diffusion, evaporation and absorption. Finally, we integrate these processes in a real-time pipeline that takes advantage of the characteristics of the latest graphics engines and that is fully integrable in most of the development libraries and frameworks in Graphics Computing. Also, the proposed techniques do not require manual processing of the input models, since they uses the parameterization typically used for texture mapping at the stage of artistic creation of the model. Thus, this enables to use the models without any costly pre-processing stage, rendering these techniques suitable for video-games and other real-time applications.

Acknowledgments

52This work was partially funded by project TIN2017-88515-C2-2-R from Ministerio de Ciencia, Innovación y Universidades, Spain, project 24/K083 from the SECyT, Universidad Nacional del Sur, Argentina, and a scholarship by the National Science and Technology Council of Argentina (CONICET). Figure 18: Images generated from the developed model compared with captures from the real world. The first column shows the actual drying process of a wet pot. The second column shows a sequence of animation frames performed with the presented simulation technique. The third column also shows the result of the simulation with pseudocolor to show the wet zone. In order to simulate the real conditions, the following conditions were taken into account: the texture of the pot model was synthesized from a sample of the surface texture of the real pot using a patch-based method implemented by the G'MIC project [12].

참고문헌 7건

  1. Why some things are darker when wet Applied Optics · Optica Publishing Group · 1988 10.1364/ao.27.001278
  2. A subdivision algorithm for computer display of curved surfaces. 1974
  3. Two-way coupling of fluids to reduced deformable bodies Symposium on Computer Animation · 2016 10.5555/2982818.2982829
  4. Spin-it Communications of the ACM · Association for Computing Machinery · 2017 10.1145/3068766
  5. Water surface wavelets ACM Transactions on Graphics · Association for Computing Machinery · 2018 10.1145/3197517.3201336
  6. The Mathematics of Diffusion Physics Bulletin · Institute of Physics · 1956 10.1088/0031-9112/7/10/004
  7. The Albedo of Various Surfaces of Ground Geografiska Annaler · Swedish Society for Anthropology and Geography · 1925 10.2307/519495