I have a very simple python script to generate planes in the scene. I want to generate 50000 planes in a scene, to compensate for unavailability of POINT primitive, so that i can render a point cloud. It runs at a good pace till 2000 th plane is added , then starts slowing down, and gets very slow. My computer's config is - i7 3.4 GHz, 16GB RAM, GeForce 9800 GTX graphic card.
here is the python script-
import bpy from math import * import random for i in range(2000): x=random.uniform(0,100) y=random.uniform(0,100) z=random.uniform(0,100) bpy.ops.mesh.primitive_plane_add(location=(x,y,z)) #bpy.context.active_object.scale=(100,100,100) print("\n",i)
Any Help on why it is slowing down? How can this be fixed ? Any alternate approach to render point cloud in blender? would be much appreciated...
Thanks for your time and attention