Stratos: Punto de Encuentro de Desarrolladores

¡Bienvenido a Stratos!

Acceder

Foros





Menu

Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menu

Mensajes - mauzi the Dude

#1
Jad Engine / Using Haddd For Fps Game
22 de Mayo de 2006, 06:09:41 PM
 hi,


i've been programming with various C# (Axiom, Purple#, Irrlicht.NET) engines, but none of them have a physics wrapper. I've wrapped the Newton Dynamics Engine already eralier but had problems with interop and it crashed serveral times for no reason. (c++ verison worked).
so my question is:
is haddd stable and performat enough to write a FPS game ?
is newton working proberly ? ( did anyone complain ? )


greetz mauzi  
#2
Jad Engine / Help With Hadddengine
01 de Marzo de 2006, 05:31:06 PM
 SOLVED,

sorry, it seemed it wasn't fully up when posting  :rolleyes:

i initialized the player object AFTER Haddd.Begin() and it seems to work alright ;)


sorry once more.
#3
Jad Engine / Help With Hadddengine
01 de Marzo de 2006, 05:06:38 PM
 thnx for the quick reply

the mesh is assigned and no other mesh is used :
player constructor ( no other methods used for creation )
public Player(string n, Vector3 pos) : base(n) {
           // this is just for testing -> ResourceData.getEntityFromXml("asdf", "asdf")
           // setup mesh and obj
           meshObj = Haddd.Scene.MeshObjects.Create(n);
           HMesh m = HMesh.CreateSphere(0.5f, 20, 20);
           meshObj.Mesh = m;
                       
           // setup materials

           // setup camera
           camera = (HCameraFirstPerson)Haddd.Scene.Camera;
           camera.UseInput = false;
           camera.Position = new Vector3(0, 0, 0);
           camera.OnlyTranslationOnParent = true;
           meshObj.AddChild(Haddd.Scene.Camera);
           //meshObj.AddChild(camera);

           HCollision col = new HCollision();
           col.CreateConvexHull(meshObj.Mesh.ArrayOfVertices());
           col.ComputerInertia();
           body = Haddd.Physics.RigidBodies.Create(col, meshObj);
           body.Mass = 1f;
           Matrix mat = Matrix.Translation(pos);
           body.Matrix = mat;
           HUpVectorJoint j = new HUpVectorJoint(new Vector3(0, 1, 0), body);
           col.Release();

       }


InitGame method        public override bool InitGame(System.Windows.Forms.Form form) {
           try {
               
               Haddd.AfterCreateDevice();
               Haddd.LoadCreateInHouse();

               Haddd.Physics.Create();
               // set scene vars and run engine
               // todo
               Haddd.Scene.SkyBox = new HSkyBox("lobbycube");

               player = new Player("player", new Microsoft.DirectX.Vector3(0, 10, 0));
               

               Haddd.Begin();
               Haddd.CreateInput();
               
               return true;
           }
           catch (Exception e) {
               System.Windows.Forms.MessageBox.Show(e.Message);
               return false;
           }            
       }
#4
Jad Engine / Help With Hadddengine
01 de Marzo de 2006, 04:58:00 PM
 hi,

this maybe is a "simple" problem but i'ts ripping my nervs apart. i started developing yesterday night and managed to render a scene with a player object, this object is similar to tutorial21. it worked yesterday night ( 4 am) and i tried just a minute ago. and it crashes @ Haddd.Begin() with the exception "No existe el objecto mesh". Due to the not available source it is not possible to debug through it. i wonder why it throws the "mesh object not exists" because i only use HMesh.CreateShpereand this copied from the tutorial.


any hints would help
thnx mauzi the Dude





Stratos es un servicio gratuito, cuyos costes se cubren en parte con la publicidad.
Por favor, desactiva el bloqueador de anuncios en esta web para ayudar a que siga adelante.
Muchísimas gracias.