Sharing the effect

Posted by Mohammad Ahmed on Game Development See other posts from Game Development or by Mohammad Ahmed
Published on 2013-05-27T12:24:21Z Indexed on 2013/06/26 16:30 UTC
Read the original article Hit count: 404

Filed under:
|
|

my problem is :

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

        for(int i =0 ; i<2 ; i++)
        {
            dwarfModel[i].model = Content.Load<Model>("Models//dwarf//dwarfmodel");
            dwarfModel[i].effect = Content.Load<Effect>("Models//dwarf//skinFX");
            dwarfModel[i].setEffect(camera , game);
            dwarfModel[i].setModelAnimationStatus(game);
            dwarfModel[i].intializeChrachterController(new Vector3(0, 0, 0), 20, 10, 2000, 2000, 80, 40);

            space.Add(dwarfModel[i].chrachterController);

            dwarfModels.Add(dwarfModel);
        }
enter code here

enter image description here

© Game Development or respective owner

Related posts about XNA

Related posts about xna-4.0