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
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.
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
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.