gr8eagle8 wrote:Couldn't you do individual asteroids but using only a few meshes / textures. So that way you could have lots of individual asteroids, but using minimal meshes/textures.
This is in fact what normally is done. An example is the 7000 asteroid Addon. It uses one 3d model and one surface texture image file. However, it places it in thousands of locations using thousands of separate object definitions within its SSC catalog file.
See
http://www.celestiamotherlode.net/catalog/asteroids.htmlIt's titled "Monster Asteroid .ssc", down near the bottom of the page.
This means that several would all look the same but if you produce say 10 different asteroid types and use them say 10 times you could get 100 asteroids in a belt.
This would be better that a single 'image' as you could visit a single asteroid but also minimise the amount of memory usage as only few asdteroids are actually being shown (just several times)
Just a thought...
(also would this work.. just out of interest
or would is still effect performance too much)
Drawing the models is fast. Calculating where they are and how they're oriented is what's slow.
Unfortunately, it's the use of the main CPU to recalculate the positions and orientations of all of those objects that is expensive. Once the positions and orientations are known, drawing them is handled by the 3D graphics hardware. Remember, Celestia has to recalculate the location and orientation of every visible object for every frame that will be drawn on your screen. By "object" I mean each definition of a separate object in all of the SSC, STC and DSC catalog files.
That's why defining many bodies by using a single 3D model declared as a single object in a catalog file is such a big win: Celestia only has to use your main CPU to calculate the location and orientation of just that one object. Your graphics hardware then calculates the locations of the points in that model to draw them on the screen. 3D graphics accelerators are designed to do those kinds of calculations extremely quickly, and are much better at it than the system's general purpose CPU.
Of course, even drawing a single model can be quite slow if you're using a system that doesn't have a 3D graphics card.