Skip to content

3D implementation of the Physarum Transport Networks in Unity

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

Barbelot/Physarum3D

Repository files navigation

Physarum3D

Unity implementation of the Physarum Transport Network from Jeff Jones in 3D.

Result Video

Result Image

Disclaimer

This project is a prototype and work in progress. It is not actively maintained and may (or may not) evolve in the future.

Example project with no setup

https://github.com/miketucker/Physarum3D

Manual Setup

  • Download this repo or clone it inside a folder in your Unity project.
  • Add the PhysarumVolumeController.cs script to an object in your scene.
  • Assign the PhysarumVolume compute shader and particle position/color/velocity textures to the PhysarumVolumeController script.
  • Create a VFX Graph and with the SetPositionFromMap and SetColorFromMap blocks in the Update context.
  • Set ParticlePositionMap and ParticleColorMap in those blocks and switch their sampling mode to Sequential.

Technical Details

The particles positions and trail volume are computed with compute shaders.

The particles are displayed using Unity Visual Effect Graph and the HDRP pipeline. The trail volume can be displayed through volumetric rendering using the VolumeRayCast shader.

Tested with Unity 2019.3.0f1 and the corresponding HDRP/VFX Graph packages.

Acknowledgments

About

3D implementation of the Physarum Transport Networks in Unity

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published