Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  ObiFluidPropertyColorizer
#1
Hi,

I am trying to use ObiFluidPropertyColorizer which is a sample script that colors fluid particles based on their vorticity (2D only). However, vorticity returns always zero. Actually, it's not. I think there's a problem with taking data correctly;

float v = emitter.Solver.userData[emitter.particleIndices[i]][0];

What does zero here (emitter.particleIndices[i]][0]) mean? Does the zero channel give vorticity? I have tried to change it to different values, but get no data. Actually, I am trying to get particles colored according to (density-restDensity)/1000.0f). Is this possible?
Reply


Messages In This Thread
ObiFluidPropertyColorizer - by mimarilker - 27-03-2019, 11:17 AM
RE: ObiFluidPropertyColorizer - by mimarilker - 27-03-2019, 01:29 PM
RE: ObiFluidPropertyColorizer - by josemendez - 27-03-2019, 09:47 PM
RE: ObiFluidPropertyColorizer - by mimarilker - 27-03-2019, 11:26 PM