17-12-2017, 01:26 PM
(This post was last modified: 17-12-2017, 01:39 PM by josemendez.)
(30-10-2017, 05:29 PM)aldo_manetti Wrote: Hi, I bought the obi fluid and it works really well.Bu t I have 2 doubts in which I would like a guide.
-To the liquid I need to give it a look like lava, is there a way to add textures to the material? to achieve a similar result:
http://static0.misionesonline.net/wp-con...ophm0g.jpg
- What is the best way to activate the fluid, I currently have a prefab off and active when I need it to start to drain, but it does not work, it will not render particles, but they exist in the editor (like a gizmo mesh)
many thanks
Hi Aldo,
None of the existing 3D realtime fluid rendering techniques that I'm aware of support texturing the surface (as that would require using level-set based mesh generation or texture advection, which are very expensive things to do). Mesh generation is generally done using the marching cubes algorithm (really expensive compared to the screen-space based approach used by Obi) and texture advection would be needed to make the texture "crawl" across the surface, following the fluid dynamics, like this:
https://vimeo.com/88171240
Consider writing a custom fluid shader that applies a lava-like effect in screen space (would look rather 2D-like), or volumetric procedural texturing in world space (more 3D looking, but still lacking advection), these are your best (and only, imho) bets. However both require certain expertise with shader writing.