Skip to content

omid3098/OpenFlowMap

Repository files navigation

OpenFlowmap

OpenFlowmap-debug

OpenFlowmap-water

Generate flowmap dynamically from your scene.

Note: It is not recommended to use this in real-time, as it is quite expensive.

Installation

Manually

Clone this repository into your project's Assets folder.

Unity Package Manager

TODO: Add UPM installation instructions

Usage

  • Create a new Flowmap_Plane in your scene. (Right click in the hierarchy -> OpenFlowmap)

    image
  • Drag and drop processors like RealisticFlow and BlurEffect to the Processors list. you can find them in OpenFlowmap/Data/Processors/ directory. Please note that the processors will be executed in the order they are in the list. so if you want to blur the flowmap, you need to add the blur processor after something like outer flow.

    • OuterFlow: This processor will push the flowmap in the direction of the normal of the mesh.

    • BlurEffect: This processor will blur the flowmap. useful for smoothing out the flowmap when you have a low number of rays.

    • RealisticFlow: This processor will simulate a realistic flow

      image
  • Select the Layermask to check for obstacles along the flow.

  • Create a RenderTexture and assign it to the render texture field in the OpenFlowmap Behaviour

  • You can enable ProcessEveryFrame to update the changes everyframe. like when you want to change the position of obstacles.

There are few sample shaders and materials in Sample directory. you can use them to visualize the flowmap. just drag and drop desired material to the flowmap plane.

Example usage using sample processors:

OpenFlowmap.example.mp4

About

No description, website, or topics provided.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages