Particle System Error (Create PointCloud using Kinect v2)

I try to generate PointCloud from Kinect depth sensor.
So, I used Particle System, and success to generate PointCloud.
But many errors I’ve never seen appeared, and Program performance became slow.

These errors and state when running in playmode are something like the following.

Expanding invalid MinMaxAABB
Particle System bounds have become invalid!
Converting invalid MinMaxAABB
…etc

Does anyone know what these errors mean and a solution to these errors?
I’m using Unity 2018.2.1f1

hello .
You must share your ParticleSystem with a script to test us.
This may be for your unity and adjustment.

Could you post the script causing these errors and an example of the type of data?

If possible. Save the data to a file(txt) and then bundle it up as a small project that shows the error using that data and does not require a kinect. Then either file a bug report or post the example here so we can see what is going wrong. I suspect there is something in the data causing these problems.

Thanks for responding to this thread.
It was exactly as you said.

ParticleSystem setting and scripts are something like the following.
I added DepthParticlize.cs and ParticleSystem to GameObject.
MultiSourceManager.cs is to get Kinect data.

I’d appreciate it if you test that.

3829354–322972–DepthParticlize.cs (2.14 KB)
3829354–322975–MultiSourceManager.cs (2.98 KB)


your setting is not problem and your script .
you can send your prefab particleSystem to test in unity 2018.2

Thanks for responding to this thread.
I put the scripts causing these errors on above.
About example of the type of data, I’m trying to output, so please wait a moment.

Invalid bounds almost certainly means you set an invalid number for a particle
Position. Check none of your point cloud data hits float.isNaN or float.isInf

1 Like

Well, my prefab is something below.
https://gitlab.com/y-shika/xray_ar/tree/Home/ColoredPoint/Assets/X-ray%20AR/Prefab

Thanks for responding to this thread.

The File cameraSpacePoints.txt I uploaded is example of the type of data.
It includes good value and bad value(-Infinity), you were right!

So, how to remove these errors is to remove bad value?

https://gitlab.com/y-shika/xray_ar/blob/Home/ColoredPoint/Assets/X-ray%20AR/Data/cameraSpacePoints.txt

the namespace name `Windows’ could not be found.

Please reimport kinect sdk, I think you can solve that error.

Yes inf floats are not supported by particles and will cause problems. Check them using float.IsInfinite and either discard that data or change it to a suitable value.

1 Like

Thank you very much!
I’ll solve these errors by discarding bad data.

1 Like