Physarum | Inspired by Sage
kandi X-RAY | Physarum Summary
kandi X-RAY | Physarum Summary
Inspired by Sage (based on this paper).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Physarum
Physarum Key Features
Physarum Examples and Code Snippets
Community Discussions
Trending Discussions on Physarum
QUESTION
I am currently trying to get my growth algorithm to work on a texture.
When running in the editor everything works as expected, however once I build the project, the whole RenderTexture becomes a solid color (red, green or blue [R8G8B8A8_UNORM] depending on the color format) with the simulation on top.
I have already tried to use an HDRP unlit texture shader instead of my custom transparency shader, which produced the same issue leading me to believe that my mistake lies somewhere within the compute shader drawing onto the texture. Also, I rebuilt the project using URP which unfortunately also produced the same result.
One other thing, I recently noticed that minimizing and maximizing the game window on runtime in the editor more than once crashes unity although I can't image how this has anything to do with the issue at hand.
EDIT: Just built the same project for windows (DX11) which works perfectly. This therefore seems to be an issue with the Metal API.
Interestingly, the maximizing/minimizing problem appears only if vsync is enabled and the touchpad gesture is used.
Unity Version 2021.2.12f1 using the HDRP on MacOS Monterey 12.2.1.
GitHub if you would like to reproduce the error: https://github.com/whatphilipcodes/seed
Compute Shader Code below.
...ANSWER
Answered 2022-Feb-21 at 20:04The way I ended up solving my issue was to add a kernel that sets all pixels to black, dispatched from the start() method.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Physarum
Visual Studio (preferably 2019 or 2017)
Clone Builder repo
Make sure that path in build.bat inside Builder repo points to existing vcvarsall.bat (depends on your VS installation version)
Run build.bat
Optionally run setup.bat to setup PATH - you'll be able to run builder just by using build command
Clone cpplib repo
Clone this repo
Run build run physarum.build - if you didn't setup PATH in step 4, you'll have to use YOUR_BUILDER_REPO_PATH/bin/build.exe instead
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page