Hi, first post of mine here. I’m a total noob with SOuP, but I bounced into this thread attracted by the topic, since point clouds are something I’m getting more and more interested in.
sickiziu wrote: still can’t import *.PTS into Partio4Maya...
Did you manage to to that, in the end?
I don’t know if it's too late, but I wrote a simple script which should let you, at least, visualize a subset of particles in your Maya scene.
I shared it on a blog of mine, here. I’m planning to open a repository on GitHub to gather all the scripts I wrote so far, but this too will take time. Please refer to the blog in the meanwhile.
The script is obviously slow, but for visualization and testing purposes it should do the job.
Also, after creating the particles, you should be able to cache them, so the script is to be run just once.
The really slow section is the color assignment, which can’t be done at once, apparently (the emit command should allow this but when I tried, maya crashed).
In order to make the point cloud lighter, there are a few params that you can set:
start begins storing the cloud starting from the nth point
limit self-explaining, sets particle limit
factor subsamples the final particle number by a certain factor
I noticed some strange behaviour with nParticles, but with ordinary ones it should work just fine. Some friends of mine tested it with nParticles and said it’s working with those, too. Odd.
sickiziu wrote: -10.410307 3.049525 -1.842014 23 40 25 18
first three values are position [xyz], next color intensity, following three are [rgb] values
I wrote the script to parse a slightly different file, which didn’t have the intensity value; so you’ll have to slightly tweak the code to have it work in your case.
In addition, I can say that a friend of mine has developed with me a DLL which writes directly Maya nParticles’ caches.
Presently, the library is being revamped; therefore, we don’t have a clean version of the source code to share, yet. But the older version is available (and minimally documented) here:
As a test, we chose to write a simple .pts to .mc converter using our library, and it seems to be working pretty fine.
We tested with a 300mb file (http://www.las-vegas.uni-osnabrueck.de/index.php/datasets/4-university-of-osnabrueck-elevator-and-corridor) and it takes around 2 minutes to convert it to a 10millions+ particles cache on my machine.
Maya doesn’t handle the particles too smoothly, but if you have enough RAM it won’t crash, either. We might share here the compiled executable (whats the forum-friendly way to do that, BTW?) but:
1. presently it is for Win x64 only
2. this too is to be generalized, in order to parse files with intensity (or ather attributes) values.
pechart wrote: Did you check Partio? Dunno if it handles the data correctly.
We were contacted by a partio developer in the past. Unfortunately, we didn’t have time to help integrating our cache writer into partio at that time; anyways, since we might want to reconsider that in the future, please let us know if anybody might find it someway useful.