• Create Account

Banner advertising on our site currently available from just \$5!

Posted 27 May 2013 - 08:35 AM

OK , Thaaaaaanks so much , but for now I will not do Instancing , all I need is to figure out the bug in my game .

If I load 2 models ( the same model zombie ) and give them the same effect I got the following errore :

   for(int i =0 ; i<2 ; i++)
{
dwarfModel[i].setEffect(camera , game);
dwarfModel[i].setModelAnimationStatus(game);
dwarfModel[i].intializeChrachterController(new Vector3(0, 0, 0), 20, 10, 2000, 2000, 80, 40);

}


Posted 27 May 2013 - 06:18 AM

OK , Thaaaaaanks so much , but for now I will not do Instancing , all I need is to figure out the bug in my game .

If I load 2 models ( the same model zombie ) and give them the same effect I got the following errore :


foreach (ModelManagerSupport dwarfModel in dwarfModels)
{
//dwarfModel.setEffect(camera , game);
//dwarfModel.setModelAnimationStatus(game);
//dwarfModel.intializeChrachterController(new Vector3(0, 0, 0), 20, 10, 2000, 2000, 80, 40);