How to use shader as background for another piece of code?

edited November 2014 in How To...

I am trying to blend the MsaFluid particle with a shader background. Right now I am kinda using the stupidest way, I sent both images to maxMSP using Syphon and blend them in max.

I know usually the fluid runs on a PImage, but the particle system in MsaFluid is another class using some parameters from the fluid and I don't have a lot of understanding to it. For the shader part I just found out how to load it using PShader, and have no idea what's that.

Other than that I have no idea how to start.

Answers

  • edited November 2014

    Your question is unclear. Is your problem using an image as a background? Or using an image as a background in msaFluid? Or creating an image with a shader? Or blending two images you have?

    As a start for yourself, try breaking the problem into smaller problems. For example, first try using a loaded image as a background. Only worry about creating that image via a shader later on.

Sign In or Register to comment.