Giter Club home page Giter Club logo

zsphrenderer's Introduction

Anisotropic screen space rendering for particle-based fluid simulation

[PDF] [Data]

We propose a real-time fluid rendering method based on the screen space rendering scheme for particle-based fluid simulation. Our method applies anisotropic transformations to the point sprites to stretch the point sprites along appropriate axes, obtaining smooth fluid surfaces based on the weighted principal components analysis of the particle distribution. Then we combine the processed anisotropic point sprite information with popular screen space filters like curvature flow and narrow-range filters to process the depth information. Experiments show that the proposed method can efficiently resolve the issues of jagged edges and unevenness on the surface that existed in previous methods while preserving sharp high-frequency details.

image-20230711094207637

Dependencies

visual studio community 2022 or higher.

Download the openframeworks and go into the apps/myApps folder. Just clone this repository.

The structure should look like the following:

apps
  └─myApps
      ├─emptyExample
      └─ZSphRenderer

Also, you need to add Threading Building Blocks(TBB) extension for openframeworks

For simplicity, you can download ofxTBB.zip from this Google Drive and extract it to openframeworks/addons/ folder

Download the simulation data

Download FluidSim2.zip from this Google Drive. Unzip it to the ${ProjectDir}/data/ dir.

The structure should look like the following:

data
  └─FluidSim2
    ├─FluidFrame
    ├─SolidFrame
    └─viz_info.txt

image-20230711100216667

Compile the project

open the ZSphRenderer.sln build and run.

If any compilation error occurs, please make sure that the header file paths are configured correctly

After running this program, you will see the following window:

img

Click Start button to start rendering simulation.

By clicking different buttons in the menu, you can choose different rendering methods for comparison

zsphrenderer's People

Contributors

iceki7 avatar xiaokun17 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.