Greetings,
I have created a map loading system for my game; however, I have run into a memory issue. Basically, the map that I designed in a 3D editor (AC3D) when loaded into my game produces an out of memory error.
I have a plugin for AC3D that creates the format for my game (it takes groups for specific map elements, writes them out as wrl files, and generates an xml file that associates the wrl file with the object type).
The map loader parses the xml file, creates game objects for the specific type and loads the wrl file for each object.
So what are the better ways of doing this? I have many duplicated objects in the map (think cold coins from mario or pellets from pacman). Right now I load each one separately. Would it make sense to just load 1 wrl file and then use the Group.cloneNode() (in java3d) for every duplicate of the first one? Will this conserve system memory or will it only conserve disk space? The textures for each of these objects is just a reference in the wrl so there is just 1 texture file.
Thanks for your help.