CN108335347A - Fluid caching process system, method, equipment and the computer program product of compression fluid voxel - Google Patents

Fluid caching process system, method, equipment and the computer program product of compression fluid voxel Download PDF

Info

Publication number
CN108335347A
CN108335347A CN201810015218.2A CN201810015218A CN108335347A CN 108335347 A CN108335347 A CN 108335347A CN 201810015218 A CN201810015218 A CN 201810015218A CN 108335347 A CN108335347 A CN 108335347A
Authority
CN
China
Prior art keywords
fluid
voxel
compression
caching
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810015218.2A
Other languages
Chinese (zh)
Inventor
冯啸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Chen Rui Network Technology Co Ltd
Original Assignee
Jiangsu Chen Rui Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Chen Rui Network Technology Co Ltd filed Critical Jiangsu Chen Rui Network Technology Co Ltd
Priority to CN201810015218.2A priority Critical patent/CN108335347A/en
Publication of CN108335347A publication Critical patent/CN108335347A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures

Abstract

The embodiment of the invention discloses fluid caching process system, method, equipment and the computer software program products of compression fluid voxel.The fluid method for caching and processing includes:Fluid flow fields are decomposed into several fluid voxels in advance, and the voxel value of each fluid voxel is set based on user's viewpoint;Traverse each fluid voxel, by voxel value level off to 0 fluid voxel delete, residual fluid voxel is subjected to compression storage;It is simulated using the compressed data of the fluid voxel of storage.In technical solution provided in an embodiment of the present invention, the problem of causing to delay reading speed and render time greatly because of voxel data amount when for three-dimensional Specially Effect Simulation fluid, fluid flow fields are handled, only fluid voxel of the write-in containing effective information, to which the size for making fluid cache is reduced at double so that write-in and read access time are multiplied.

Description

Fluid caching process system, method, equipment and the computer program of compression fluid voxel Product
Technical field
The present invention relates to computer image technology field more particularly to a kind of fluid caching process systems of compression fluid voxel System, method, equipment and computer program product.
Background technology
Simulation fluid, such as dense smoke, flame, explosion etc. are frequently necessary in three-dimensional special efficacy.If camera angle is closer, Or the position of fluid is special, it is necessary to which more voxel (voxel) draw high precision.Traditional fluid is cached each of fluid The value of voxel all preserves, and when precision improves, the fluid caching of each frame becomes too fat to move, and disk performance, which is not often caught up with, to be write Enter speed, may result in resolving time increase.Similarly, when caching finishes reading, computer needs to read the member of each voxel Element value, leads to the increase of read access time, and then delay reading speed and render time.
Therefore, the prior art need further to develop.
Invention content
In view of the above technical problems, an embodiment of the present invention provides a kind of fluid caching process systems of compression fluid voxel System, method, equipment and computer program product cause to delay reading speed to solve existing grow for fluid caching access time And the problem of render time.
A kind of fluid method for caching and processing of compression fluid voxel, wherein the method includes:
Fluid flow fields are decomposed into several fluid voxels in advance, and the voxel of each fluid voxel is set based on user's viewpoint Value;
Traverse each fluid voxel, by voxel value level off to 0 fluid voxel delete, by residual fluid voxel carry out compression deposit Storage;
It is simulated using the compressed data of the fluid voxel of storage.
The fluid method for caching and processing of the compression fluid voxel, wherein the voxel value includes indicating fluid voxel Surface information and internal information.
The fluid method for caching and processing of the compression fluid voxel, wherein the voxel value level off to 0 fluid body Element is the fluid voxel without containing effective surface information and internal information.
The fluid caching process system of the compression fluid voxel, wherein traverse each fluid voxel, voxel value is approached Fluid voxel in 0 is deleted, and residual fluid voxel, which is carried out compression storage, is specially:
Each fluid voxel is traversed, and binary conversion treatment is carried out to fluid voxel based on voxel value, effective information will not contained Fluid voxel voxel value be labeled as 0, by the fluid voxel containing effective information be labeled as 1, by voxel value be labeled as 0 stream Body voxel is stored without caching after being compressed voxel value labeled as the effective information of 1 fluid voxel.
The fluid caching process system of the compression fluid voxel, wherein 1 fluid voxel is labeled as to voxel value Effective information stores after being compressed:The effective information that voxel value is labeled as 1 fluid voxel is read, confirms fluid body The particle coordinate of element converts the effective information of the fluid voxel to the data group of corresponding particle coordinate and stores into memory.
A kind of fluid caching process system of compression fluid voxel, wherein the system comprises:
Flow field decomposing module:For fluid flow fields to be decomposed into several fluid voxels in advance, and it is arranged based on user's viewpoint The voxel value of each fluid voxel;
Data processing module:For traversing each fluid voxel, by voxel value level off to 0 fluid voxel delete, will be remaining Fluid voxel carries out compression storage;
Simulate rendering module:Compressed data for the fluid voxel using storage is simulated.
A kind of electronic equipment, wherein including at least one processor;
And the memory being connect at least one processor communication;
Wherein, the memory is stored with the instruction repertorie that can be executed by least one processor, described instruction journey Sequence is executed by least one processor, so that at least one processor is able to carry out method as described above.
A kind of computer program product used in the fluid caching process system of compression fluid voxel, wherein described Computer program product includes function module as described above.
In technical solution provided in an embodiment of the present invention, because voxel data amount causes greatly when for three-dimensional Specially Effect Simulation fluid The problem of delaying reading speed and render time, handles fluid flow fields, and the fluid voxel containing effective information is only written, To which the size for making fluid cache is reduced at double so that write-in and read access time are multiplied.
Description of the drawings
Fig. 1 is the fluid method for caching and processing flow chart of the compression fluid voxel of the embodiment of the present invention;
Fig. 2 is the functional block diagram of the fluid caching process system of compression fluid voxel of the embodiment of the present invention;
Fig. 3 is one embodiment schematic diagram of the electronic equipment of the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
It should be noted that when element is expressed " being fixed on " another element, it can directly on another element, Or may exist one or more elements placed in the middle therebetween.When an element is expressed " connection " another element, it can be with It is directly to another element or may exist one or more elements placed in the middle therebetween.Used in this specification The orientation or position of the instructions such as term " vertically ", " horizontal ", "left", "right", "upper", "lower", "inner", "outside", " bottom " Relationship is to be based on the orientation or positional relationship shown in the drawings, and is merely for convenience of description of the present invention and simplification of the description, without referring to Show or imply that signified device or element must have a particular orientation, with specific azimuth configuration and operation, therefore cannot manage Solution is limitation of the present invention.In addition, term " first ", " second " etc. are used for description purposes only, and should not be understood as instruction or Imply relative importance.
Unless otherwise defined, technical and scientific term all used in this specification is led with the technology for belonging to the present invention The normally understood meaning of technical staff in domain is identical.Used term is only in the description of the invention in this specification The purpose of description specific embodiment is not intended to limitation the utility model.Term "and/or" used in this specification Include any and all combinations of one or more relevant Listed Items.In addition, invention described below is different Involved technical characteristic can be combined with each other as long as they do not conflict with each other in embodiment.
A kind of fluid method for caching and processing of compression fluid voxel as shown in Figure 1, wherein the method includes:
S100, fluid flow fields are decomposed into several fluid voxels in advance, and each fluid voxel is arranged based on user's viewpoint Voxel value.Wherein, the voxel value includes the surface information and internal information for indicating fluid voxel.
Voxel value is leveled off to 0 fluid voxel and deleted, residual fluid voxel is carried out by S200, each fluid voxel of traversal Compression storage.
Specifically, it is without containing effective surface information and internal information that the voxel value, which levels off to 0 fluid voxel, Fluid voxel.
In preferred embodiment, above-mentioned steps be specifically described for:
Each fluid voxel is traversed, and binary conversion treatment is carried out to fluid voxel based on voxel value, effective information will not contained Fluid voxel voxel value be labeled as 0, by the fluid voxel containing effective information be labeled as 1, by voxel value be labeled as 0 stream Body voxel is stored without caching after being compressed voxel value labeled as the effective information of 1 fluid voxel.
Wherein, it is stored after being compressed labeled as the effective information of 1 fluid voxel to voxel value and is specially:Read voxel Value is labeled as the effective information of 1 fluid voxel, confirms the particle coordinate of fluid voxel, and the effective information of the fluid voxel is turned It turns to the data group of corresponding particle coordinate and stores into memory.
S300, it is simulated using the compressed data of the fluid voxel of storage.
A kind of fluid caching process system of compression fluid voxel as shown in Figure 2, wherein the system comprises:
Flow field decomposing module 100:For fluid flow fields to be decomposed into several fluid voxels in advance, and set based on user's viewpoint The voxel value for setting each fluid voxel, as described in step S100 in Fig. 1.
Data processing module 200:For traversing each fluid voxel, by voxel value level off to 0 fluid voxel delete, will remain Residual current body voxel carries out compression storage, as described in step S200 in Fig. 1.
Simulate rendering module 300:Compressed data for the fluid voxel using storage is simulated, such as step in Fig. 1 Described in S300.
The present invention also provides a kind of computer program productions used in the fluid caching process system of compression fluid voxel Product, wherein the computer program product includes function module as described above.
It is illustrated in figure 3 the hardware architecture diagram of electronic equipment provided by the embodiments of the present application, which includes:One Or multiple processors 201 and memory 202.In Fig. 3 for one.Wherein, processor 201 and memory 202 can be with It is connected by bus or other modes, in Fig. 3 for being connected by bus.
Memory 202 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, as the fluid method for caching and processing in the embodiment of the present invention is corresponding Program instruction/module.Processor 201 by operation be stored in non-volatile software program in memory 202, instruction and Module, the various function application to execute server and data processing, that is, realize the compression fluid of above method embodiment The fluid method for caching and processing of voxel.
Memory 202 may include storing program area and storage data field, wherein storing program area can store operation system System, the required application program of at least one function;Storage data field can be stored to be created according to using for special effect processing system Data etc..In addition, memory 202 may include high-speed random access memory, can also include nonvolatile memory, example Such as at least one disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, it deposits It includes the memory remotely located relative to processor 201 that reservoir 202 is optional, these remote memories can pass through network connection To the fluid caching process system of compression fluid voxel.The example of above-mentioned network include but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
One or more of modules are stored in the memory 202, when by one or more of processors When 201 execution, the fluid method for caching and processing in above-mentioned any means embodiment is executed.
In technical solution provided in an embodiment of the present invention, because voxel data amount causes greatly when for three-dimensional Specially Effect Simulation fluid The problem of delaying reading speed and render time, handles fluid flow fields, and the fluid voxel containing effective information is only written, To which the size for making fluid cache is reduced at double so that write-in and read access time are multiplied.
The said goods can perform the method that the embodiment of the present application is provided, and has the corresponding function module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
The apparatus embodiments described above are merely exemplary, wherein the unit illustrated as separating component can It is physically separated with being or may not be, the component shown as unit may or may not be physics list Member, you can be located at a place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of module achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those of ordinary skill in the art can be understood that each embodiment The mode of general hardware platform can be added to realize by software, naturally it is also possible to pass through hardware.Those of ordinary skill in the art can With understand all or part of flow realized in above-described embodiment method be can be instructed by computer program it is relevant hard Part is completed, and the program can be stored in a computer read/write memory medium, the program is when being executed, it may include as above State the flow of the embodiment of each method.Wherein, the storage medium can be magnetic disc, CD, read-only memory (Read- Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
It, can according to the technique and scheme of the present invention and this hair it is understood that for those of ordinary skills Bright design is subject to equivalent substitution or change, and all these changes or replacement should all belong to the guarantor of appended claims of the invention Protect range.

Claims (8)

1. a kind of fluid method for caching and processing of compression fluid voxel, which is characterized in that the method includes:
Fluid flow fields are decomposed into several fluid voxels in advance, and the voxel value of each fluid voxel is set based on user's viewpoint;
Traverse each fluid voxel, by voxel value level off to 0 fluid voxel delete, residual fluid voxel is subjected to compression storage;
It is simulated using the compressed data of the fluid voxel of storage.
2. the fluid method for caching and processing of compression fluid voxel according to claim 1, which is characterized in that the voxel value Surface information and internal information including indicating fluid voxel.
3. the fluid method for caching and processing of compression fluid voxel according to claim 1, which is characterized in that the voxel value Level off to 0 fluid voxel be the fluid voxel without containing effective surface information and internal information.
4. the fluid caching process system of compression fluid voxel according to claim 3, which is characterized in that traverse each fluid Voxel, by voxel value level off to 0 fluid voxel delete, by residual fluid voxel carry out compression storage be specially:
Each fluid voxel is traversed, and binary conversion treatment is carried out to fluid voxel based on voxel value, by the stream without containing effective information The voxel value of body voxel is labeled as 0, and the fluid voxel containing effective information is labeled as 1, voxel value is labeled as to 0 fluid body Element is stored without caching after being compressed voxel value labeled as the effective information of 1 fluid voxel.
5. the fluid caching process system of compression fluid voxel according to claim 4, which is characterized in that voxel value mark Be denoted as 1 fluid voxel effective information compressed after storage be specially:Reading voxel value is labeled as having for 1 fluid voxel Information is imitated, the particle coordinate of fluid voxel is confirmed, converts the effective information of the fluid voxel to the data of corresponding particle coordinate Group is simultaneously stored into memory.
6. a kind of fluid caching process system of compression fluid voxel, which is characterized in that the system comprises:
Flow field decomposing module:For fluid flow fields to be decomposed into several fluid voxels in advance, and each stream is arranged based on user's viewpoint The voxel value of body voxel;
Data processing module:For traversing each fluid voxel, by voxel value level off to 0 fluid voxel delete, by residual fluid Voxel carries out compression storage;
Simulate rendering module:Compressed data for the fluid voxel using storage is simulated.
7. a kind of electronic equipment, which is characterized in that including at least one processor;
And the memory being connect at least one processor communication;
Wherein, the memory is stored with the instruction repertorie that can be executed by least one processor, described instruction program quilt At least one processor executes, so that at least one processor is able to carry out as described in claim any one of 1-5 Method.
8. a kind of computer program product used in the fluid caching process system of compression fluid voxel, which is characterized in that The computer program product includes function module as claimed in claim 6.
CN201810015218.2A 2018-01-08 2018-01-08 Fluid caching process system, method, equipment and the computer program product of compression fluid voxel Pending CN108335347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810015218.2A CN108335347A (en) 2018-01-08 2018-01-08 Fluid caching process system, method, equipment and the computer program product of compression fluid voxel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810015218.2A CN108335347A (en) 2018-01-08 2018-01-08 Fluid caching process system, method, equipment and the computer program product of compression fluid voxel

Publications (1)

Publication Number Publication Date
CN108335347A true CN108335347A (en) 2018-07-27

Family

ID=62924805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810015218.2A Pending CN108335347A (en) 2018-01-08 2018-01-08 Fluid caching process system, method, equipment and the computer program product of compression fluid voxel

Country Status (1)

Country Link
CN (1) CN108335347A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050128195A1 (en) * 2003-01-30 2005-06-16 Houston Benjamin B. Method for converting explicitly represented geometric surfaces into accurate level sets
CN102509332A (en) * 2011-10-19 2012-06-20 清华大学 Fluid simulation rendering method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050128195A1 (en) * 2003-01-30 2005-06-16 Houston Benjamin B. Method for converting explicitly represented geometric surfaces into accurate level sets
CN102509332A (en) * 2011-10-19 2012-06-20 清华大学 Fluid simulation rendering method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邵绪强 等: "《GPU并行计算加速的实时可视外壳三维重建及其虚实交互》", 《计算机辅助设计与图形学学报》 *

Similar Documents

Publication Publication Date Title
US11030131B2 (en) Data processing performance enhancement for neural networks using a virtualized data iterator
US11325252B2 (en) Action prediction networks for robotic grasping
US10452979B2 (en) Convolution neural network training apparatus and method thereof
Reynolds Big fast crowds on ps3
DE102019103326A1 (en) ROBUST, EFFICIENT MULTIPROCESSOR-COPROCESSOR INTERFACE
DE102019103178A1 (en) PROCEDURE FOR PROGRESSING AND PROGRAMMABLE TIMEOUTS OF TREE TRANSVERSION MECHANISMS IN HARDWARE
CN105027068B (en) Duplication is executed within the storage system
Lawler et al. Using species distribution models for conservation planning and ecological forecasting
DE102019103336A1 (en) METHOD FOR EFFICIENTLY GROUPING CACHE REQUIREMENTS FOR DATA PATH SCHEDULING
DE102019103059A1 (en) Cut and stab-proof beam-triangle intersection
CN110232036A (en) Host system and its method and accelerating module
DE102011101202B4 (en) Permanent memory for graphics hardware
CN106529609B (en) A kind of image-recognizing method and device based on neural network structure
CN109523621A (en) Loading method and device, storage medium, the electronic device of object
DE102019103058A1 (en) METHOD FOR CONTINUOUS LIMITATION VOLUME HIERARCHIRA TRAVERSION TO CUTTING POINTS WITHOUT SHADER INTERVENTION
US11288420B2 (en) Method and systems for anticipatorily updating a remote repository
US8878877B2 (en) Rescaling for interoperability in virtual environments
CN105912425A (en) Snapshot image establishment and rollback method and apparatus
US20170048551A1 (en) System and method for processing data
CN105260139B (en) A kind of disk management method and system
CN110427350A (en) Data processing method and device, storage equipment and medium in Data Migration
CN108335347A (en) Fluid caching process system, method, equipment and the computer program product of compression fluid voxel
CN108984421A (en) A kind of information cuing method and device
CN109522240A (en) A kind of data processing method and device
CN107102900A (en) A kind of management method of shared memory space

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180727