after implementing our solar system with everything, i attempted the displaying of the oort cloud, which in reality has ~ 1trillion objects, which obviously can not be created due to insuffient memory. So i tested with around 1500 objects wich works just fine (~4GB RAM allocated) but increasing after this point is at the moment not possible. Any thoughts on how to increase the amount of objects that can be displayed?? Or in other words, is there any possibility to just use less memory for each object??
(java tags do not work properly with my code, deleting out most of it dunno why…)
What memory are you running out of?
Maybe your graphics card is giving up?
1500 objects is not much (provided they are simple of course).
EDIT:
You’re creating 1500 Spheres 10000 polys each (if I’m counting correctly). That’s a lot. Start using point sprites, you’ll be able to display much more.
i’d say a GTX 560 should be able to handle this, so as i already said, i decreased the polygons to 9 each, instead of the previous 10000, which is an increase to about 75k objects… but i’ll look into point sprites, thanks for that
You’ll want to do some level-of-detail stuff.
I.e. generate objects by need, i.e. when somebody’s point of view is close (or narrow-angled) enough so that the object might cover more than half a pixel. Draw a haze for the areas where you haven’t generated objects. That kind of stuff.