I've managed to get my hands on some nice meshes for my Solar System Model program. These are models of some of the smaller non round moons. Thier counts are ungodly high (26,000 surfaces / 13,000 vertices PER moon) but I've managed to shrink them down to what I thought was a more manageable size (948 surfaces / 476 vertices) and still maintain their distinctive shapes.
The size of the mesh files are between 20 and 30k in size. The jpg's I'm using to texture them are on the large size and I plan on trimming those up later, but for now are around 100k to 300k on the average (there are some below 100 and 1 or 2 above 500k).
Milkshape wouldnt even handle the original file sizes so I used another program (AC3D) to decrease the triangle counts and saved them as .3ds files. Then I used Milkshape to "weld Vertices" (which smoothed the model very nicely) and add its texture to and save as a .b3d file.
Now once in my Model program I only load the mesh, I dont load the texture since it was already set in Milkshape. The moons look great. The problem I'm having is the time to load.
If I do a full load of all 60 meshes at the beginning then it takes about 2-3 minutes on my 2.66 ghz system to simply do that. Way to long to sit thru. I decided to load the meshes on the fly whenever the camera gets a set distance from them. The problem here is I'm getting about a 2-3 second delay - horrible while in the middle of a flight sequence.
I'm unsure where I need to trim. I really cant cut much more vertices out of the meshes or the overall shape is lost. It would make having them meshes pointless and I'd be better off just going with resized spheres.
Is there a faster way to load meshes? Is there a better file type I should use rather than b3d or jpg's? I just wish I could hide that load delay better. Any suggestions would be appreciated.
The size of the mesh files are between 20 and 30k in size. The jpg's I'm using to texture them are on the large size and I plan on trimming those up later, but for now are around 100k to 300k on the average (there are some below 100 and 1 or 2 above 500k).
Milkshape wouldnt even handle the original file sizes so I used another program (AC3D) to decrease the triangle counts and saved them as .3ds files. Then I used Milkshape to "weld Vertices" (which smoothed the model very nicely) and add its texture to and save as a .b3d file.
Now once in my Model program I only load the mesh, I dont load the texture since it was already set in Milkshape. The moons look great. The problem I'm having is the time to load.
If I do a full load of all 60 meshes at the beginning then it takes about 2-3 minutes on my 2.66 ghz system to simply do that. Way to long to sit thru. I decided to load the meshes on the fly whenever the camera gets a set distance from them. The problem here is I'm getting about a 2-3 second delay - horrible while in the middle of a flight sequence.
I'm unsure where I need to trim. I really cant cut much more vertices out of the meshes or the overall shape is lost. It would make having them meshes pointless and I'd be better off just going with resized spheres.
Is there a faster way to load meshes? Is there a better file type I should use rather than b3d or jpg's? I just wish I could hide that load delay better. Any suggestions would be appreciated.