Performance with a lot of particles.



I need to plot to screen a cloud point, it is about 30 million points, I’ve heard of Panda3D but I don’t know if this engine is fast enough. I need to plot this cloud and rotate it using the mouse.

I tested this [url]Points on and in spheres] but with 6000 points, it becomes really slow; I noticed it was not using my Graphics Card.

Do you think Panda3D can do this job?
If so, can you tell me where to find the documentation about some functions to do it?
I quickly read the documentation, but I didn’t found exactly what I need.

Gratefull for your help,


That code you link simply creates a new copy of a model (“smiley” in this case, which itself has about 1000 vertices) in a different node for each point position. It’s certainly not a good way to render a cloud of points. (It creates one vertex data and one geom for each “point”.)

If you want one-pixel points, the way to do this is to put as many as you can into as few vertex datas as you can. With 30 million points, that will be more than one vertex data, probably more than a handful, depending on your graphics card.

One easy way to optimize the referenced code better is to call:


at the end. This will flatten the models into a handful of vertex datas. You’ve still got 1000 times the vertices that you’re actually seeing, though. It would be better to use a model that is just a single point. Better still to create the points yourself using low-level calls, or write them all to an egg file and load that file, instead of doing all of this load-and-copy for each point.

The bottom line is, if your graphics card can handle it, Panda can handle sending the graphics commands to your graphics card. But you do need to use a bit of foresight when structuring your scene.



Thanks for you reply, David!

But do you think Panda3D can handle 30M points?

And if I have a model with a single white pixel, can Panda change its color to a RGB value?



It takes me 20 seconds to create a Geom with 3M points and the framerate is at around 10 fps when rendering it whole. Using a relatively new GPU.

I’m not sure if any engine will give you better results, unless it has some advanced shaders built-in.