Obi Official Forum
Help Fluid Creation help - 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 Fluid Creation help (/thread-3591.html)



Fluid Creation help - m.mokhtar89 - 17-09-2022

Hi people, hope you all are well.

I am going to pay for the OBI unity asset, and i have checked the documentation.

I have a question about creating a cup filled with liquid to be used for VR game, i couldn't figure out how to do that in the documentation.

All what i found is to create emitter to provide liquid flow.

If i have the cup and liquid as mesh objects (as attached image), how can i turn the liquid mesh to be a liquid, so when the scene starts 
the liquid simulated stable in the cup, so i can interacting with VR controllers to simulate liquid moving.

I really need to know if i can do that with obi before pay for it.

Thanks in Advance

Ref Image:
https://drive.google.com/file/d/1e9BGLjpLT6fTDyOllyzaSgX5nm8TPJSL/view?usp=sharing


RE: Fluid Creation help - josemendez - 20-09-2022

Hi there,

Quote:If i have the cup and liquid as mesh objects (as attached image), how can i turn the liquid mesh to be a liquid, so when the scene starts 
the liquid simulated stable in the cup

Just add a ObiEmitterShapeMesh to your emitter, set emission mode to "burst" so that all particles are emitted instantly, and you're done. See: http://obi.virtualmethodstudio.com/manual/6.3/emitters.html

Quote:Emission method

Emitters can use one of two emission methods:

Stream:
Particles will be constantly emitted, as long as there's at least Min pool size particles in the pool.

Burst: <--- this is the one you want to be using.
One particle for each of the emitter shape's distribution points will be generated in a single burst.



RE: Fluid Creation help - m.mokhtar89 - 20-09-2022

(20-09-2022, 08:49 AM)josemendez Wrote: Hi there,


Just add a ObiEmitterShapeMesh to your emitter, set emission mode to "burst" so that all particles are emitted instantly, and you're done. See: http://obi.virtualmethodstudio.com/manual/6.3/emitters.html
Thank you very much josemendez, 
Last thing i have to ask about how to add obi fluid renderer to oculus VR camera



RE: Fluid Creation help - josemendez - 20-09-2022

(20-09-2022, 12:58 PM)m.mokhtar89 Wrote: Thank you very much josemendez, 
Last thing i have to ask about how to add obi fluid renderer to oculus VR camera

You need to use separate cameras for each eye, as the renderer does not support stereo rendering. See our FAQ:

http://obi.virtualmethodstudio.com/faq.html

Quote:Does it support VR (Virtual Reality)?

Cloth, Rope and Softbodies support VR. For Obi Fluid, you will have to use separate cameras for each eye since the renderer does not support single-pass stereo rendering.



RE: Fluid Creation help - m.mokhtar89 - 20-09-2022

(20-09-2022, 01:09 PM)josemendez Wrote: You need to use separate cameras for each eye, as the renderer does not support stereo rendering. See our FAQ:

http://obi.virtualmethodstudio.com/faq.html
Very Good
I think that when XR plugin enabled for oculus, something went round with fluid color, it's become transparent