Obi Official Forum
Help Pre order questions - 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: Help Pre order questions (/thread-3041.html)



Pre order questions - HellFingers - 03-08-2021

Hello, I want to buy Obi Fluid, but i have two questions:
Can I use this asset like for water in pipes. You wrote that it shouldn`t be used like Large scale fluid simulations, Pools, oceans, lakes, floods and i can't understand does this include my case
Is there any way to control water collision with other object by code


RE: Pre order questions - josemendez - 04-08-2021

Hi,

Depends on how many pipes you have, how much fluid you want in them, and how detailed you need the flow to be. Obi is a particle-based simulation, stands to reason that in order to simulate an ocean or even a lake you need hundreds of millions of particles which isn't going to run in realtime in any existing hardware (unless you use particles the size of a car, in which case the fluid will look chunky).


Quote:Is there any way to control water collision with other object by code.

Yes, you can:
- Filter out which fluids should collide with which objects, using collision filtering. This can be set up in-editor or programmatically:
http://obi.virtualmethodstudio.com/manual/6.2/collisions.html

- How fluids should react to a collision with an object (slide, stick, etc), using collision materials. Again, can set them up in editor or in code:
http://obi.virtualmethodstudio.com/manual/6.2/collisionmaterials.html

- Get a list of all contacts that happened in a frame, and react to them:
http://obi.virtualmethodstudio.com/manual/6.2/scriptingcollisions.html