Physx-based Fluid Simulation

Source: Internet
Author: User

Physx, one of the world's best physical engines, is gaining more and more attention after being acquired by NVIDIA, the graphics boss. Not long ago, NVIDIA released a graphics card driver supporting physx cuda, which officially announced to the world that the era of physical acceleration with graphics cards is coming.

 

Let's take a look at how to use physx to simulate a fluid.

The physx development kit contains a fluid simulation part. In its example, we can find related examples, and the fluid is based on, however, we will find that its example only achieves particle simulation of the fluid, and converting from the particle to the part of the mesh requires us to implement it ourselves.

 

 

 

Grids generated by particles are usually made using the marching cube or metaball deformation ball technology. This technology has been proposed by foreigners for decades. There are also a lot of related information on the Internet, if you are interested in its principles, do not go into depth.

 

 

 

 

 

 

 

About the marching cube technology, you can take a look at the generating complex procedural terrains using the GPU in chapter 1 of NVIDIA's GPU gems 3.
This section describes the technologies in detail. Http://http.developer.nvidia.com/GPUGems3/gpugems3_ch01.html

Metaball has many problems.ArticleLook at this: http://http.developer.nvidia.com/GPUGems3/gpugems3_ch07.html

 

------------------------------------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.