Obi Official Forum
Material look to lava - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Material look to lava (/thread-219.html)



Material look to lava - aldo_manetti - 30-10-2017

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-content/uploads/2017/07/26259_lava-1-wipy-3v6tjaophm0g.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


RE: Material look to lava - Avotas - 14-12-2017

(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-content/uploads/2017/07/26259_lava-1-wipy-3v6tjaophm0g.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

Static cooled lava 'rock' works like a broken egg, with a textured polygon shell and a liquid (Obi Fluid) oozing out. You can also use Obj Fluid to make plumes of lava that shoot up and rain down.


RE: Material look to lava - josemendez - 17-12-2017

(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-content/uploads/2017/07/26259_lava-1-wipy-3v6tjaophm0g.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.