Hi im looking to create a water effect in unity like this http://www.patrickmatte.com/?p=29
I haven't used custom shaders in unity that much and don't know how I would go about getting an image of just the physics circles and bluring then rendering that. Any help would be greatly appreciated!
Despite its appearance, this is actually quite an advanced rendering technique. In order to do this, you would need a moderately sophisticated knowledge of shader programming, regular programming and Unity itself. I think the main reason this would be difficult, is that this section of Unity (rendering) goes pretty much undocumented. The documentation is there, but you won't understand it unless you already know what it does. I'm assuming for the circles, you could simply use a circle sprite with a 2D Rigidbody/collider combo, but the actual process of rendering the image and blurring it is moderately complex. It would require a camera setup for this specific purpose, relative rendertextures, multi-tap blit functions, etc.
I would suggest just trying to learn normal shaders, then coming back to this in the future. A good place to start is the Unity manual, either go through the tutorials, or learn shaders the way I did; experimentation with their shader examples.
Fluid simulation is, generally speaking, hard. However the source for that example is linked right there on the page, meaning you just have to translate from Flash to Unity. Have you tried that?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
5 People are following this question.
C# Water Rotation
Raycasting not behaving as expected?
2D water physics like the game "Where's my water?" halp!
Is there a way to lock velocity?
2D floating object