Quote: "could you refrain from using unique formatting(italics or bold) for your posts?"
This happens when you put
Quote: "{"
within the "text" part of a post.
@Juggernaut. To correct this, use the
Quote: " CODE "
button at the top right of the message box.
Now to attempt to answer your question.... Dar13 is correct. You need to instance or clone these objects. I'm guessing these are animated meshes, right? Each time you load/create an object, it "loads" that on-to the video card. As the video card becomes full, windows has to do something known as page-flipping where it takes memory chunks from normal ram and flips it with memory chunks in video ram. This is a costly process-- DON'T DO IT! An instaced object only tells the video card (when rendering the scene) to "use this mesh, in this place, with this orientation, scaling, with the pose currently being used, using the texture already provided with the mesh". Yea, I know, it's definitly a run-on sentence. A cloned object is similar except you have some things that are not nessecarily the same. Namely, texture and pose (pose is the animation pose).
Using clone, or instance for that matter, is quite simple. Load the "original object" and then clone/instance all the others:
int OriginalObject=dbLoadObject("media/wispwind.x",0,kGDK_3D_DBPro);
dbPositionObject(OriginalObject,-14,-10,0);
dbLoopObject(OriginalObject);
dbSetObjectSpeed(OriginalObject,100);
for (int i =1;i<50;i++)
{
ObjectCharacters=dbCloneObject(OriginalObject);//I'm kinda sure you don't have to do any other parameters..... Check the syntax.
dbPositionObject(ObjectCharacters,i-14,-10,i*6);
dbLoopObject(ObjectCharacters);
dbSetObjectSpeed(ObjectCharacters,100);
}
The fastest code is the code never written.