problem with Irrlicht/Newton cube exmple please help.

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
AlaaBR9
Posts: 16
Joined: Sun Oct 21, 2007 8:47 pm
Location: syria/lattakia

problem with Irrlicht/Newton cube exmple please help.

Post by AlaaBR9 »

problem with Irrlicht/Newton cube exmple please help.
I compile it with irrlicht 1.3.1 & newton 1.53.
It run and load the scene,but didnot load cubes why.
________
Suzuki gt750
Last edited by AlaaBR9 on Fri Feb 25, 2011 2:42 am, edited 1 time in total.
SwitchCase
Posts: 170
Joined: Sun Jul 01, 2007 11:41 pm
Location: Manchester, UK

Post by SwitchCase »

I hate to ask such a stupid question but it seems that I'm not the only one asking them so...

Did you move the cubes mesh file into an appropriate directory and specfy the correct direct directory when loading the mesh?
AlaaBR9
Posts: 16
Joined: Sun Oct 21, 2007 8:47 pm
Location: syria/lattakia

Post by AlaaBR9 »

yes i do every thing and no compiler or runtime errors.
________
20SEH
Last edited by AlaaBR9 on Fri Feb 25, 2011 2:42 am, edited 1 time in total.
SwitchCase
Posts: 170
Joined: Sun Jul 01, 2007 11:41 pm
Location: Manchester, UK

Post by SwitchCase »

What does the console window tell you?
AlaaBR9
Posts: 16
Joined: Sun Oct 21, 2007 8:47 pm
Location: syria/lattakia

The cosole window didnot tell any thing wrong.

Post by AlaaBR9 »

The cosole window didnot tell any thing wrong.
But..
first there is a problem with private member of matrix4 "M"
so i replace it with pointer() like follow:
1.old:matrix4 mat;
mat.setTranslation(loc);
NewtonBodySetMatrix(tmp->body,&mat.M[0]);

new:matrix4 mat;
mat.setTranslation(loc);
NewtonBodySetMatrix(tmp->body, mat.pointer());

2.old:matrix4 mat;
memcpy(mat.M, matrix, sizeof(float)*16);

new:matrix4 mat;
memcpy(mat.pointer(), matrix, sizeof(float)*16);

Is this changes wrong..
________
Ford ranger specifications
Post Reply