Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Distance Fields not working
#2
(16-09-2019, 05:37 AM)jaysama Wrote: Hi Obi,

I just purchased Obi Fluid yesterday to make my game. But I experienced difficulty in implementing it, and currently I'm stuck in Distance Fields.
Referring to this thread, that has resolved my initial issues so far (the lag for using raw mesh collider), I am now able to create Distance Field for my fbx glass mesh.
However, when implementing it on sample scene FaucetAndBucket, it seems that the Distance Field doesn't work at all.
The water seems to just went through the mesh.

Pic:


Distance Field:


Mesh:




How do I resolve this?

Your mesh, while having non-zero thickness, is extremely thin, so you will have to reduce max error and/or increase the scale of your mesh for the distance field to be able to pick up such small features. As you can see in the preview, the distance field does not have fine enough resolution to "see" there's an inside and an outside to your glass, and thinks it's all outside (black).
Reply


Messages In This Thread
Distance Fields not working - by jaysama - 16-09-2019, 05:37 AM
RE: Distance Fields not working - by josemendez - 16-09-2019, 03:18 PM
RE: Distance Fields not working - by jaysama - 16-09-2019, 04:21 PM
RE: Distance Fields not working - by josemendez - 16-09-2019, 04:59 PM