Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualmrmohadnan

Posted 26 May 2013 - 05:29 PM

Ok , Andy do you face problem like this :

you have 10 models using the same effect , if you use XNA or Directx (the same applied ) I got this error :

Code used to make 10 copies of ModelManagerSupprt which will contain the model and the effect and will holds chrachter controller (BEPU Phsics Engine) :
 

            
            foreach (ModelManagerSupport dwarfModel in dwarfModels)
            {
                //dwarfModel.model = Content.Load<Model>("Models//dwarf//dwarfmodel");
                //dwarfModel.effect = Content.Load<Effect>("Models//dwarf//skinFX");
                //dwarfModel.setEffect(camera , game);
                //dwarfModel.setModelAnimationStatus(game);
                //dwarfModel.intializeChrachterController(new Vector3(0, 0, 0), 20, 10, 2000, 2000, 80, 40);

                //space.Add(dwarfModel.chrachterController);

                //dwarfModels.Add(dwarfModel);
            }

 

 


iatq84t8ca58z3x6g.jpg


#1mrmohadnan

Posted 26 May 2013 - 05:27 PM

Ok , Andy do you face problem like this :

you have 10 models using the same effect , if you use XNA or Directx (the same applied ) I got this error :

iatq84t8ca58z3x6g.jpg 


PARTNERS