BloodyMess 1.5.4...

calypso9

25-01-2010 04:57:08

Where can I download it?

deshan

25-01-2010 08:00:17

http://static.nxogre.org/releases/bloodymess/

calypso9

27-01-2010 19:23:03

Could someone explain how vectors work in this version?

It seems I can only use int2/3/4...but of course it's restricted to ints, and I don't see anything to use for floats

betajaen

27-01-2010 23:21:57

Real2/3/4.

Can't you use the latest Bloody Mess from Git? It's way way better than 1.5.4.

calypso9

29-01-2010 03:21:51

Hmm..alright I switched over to 1.5.5.

The main reason I was using the old version was because I really wanted the visual debugger...but I guess it's not worth it.
I have another question though :p

Is there a way to use all math-related functions like Matrix3 and Quat and their respective functions from PhysX? I'm trying to port some code over from another project and it's telling me I can't do stuff like Vec3.length() or Quat.getAxisAngle() for example.

calypso9

31-01-2010 19:52:46

Any advice? :|

deshan

01-02-2010 06:09:09

This is based on how i understand your question. I am not a native english speaker
I also can't see NxOgre::Vec3 having a function length and NxOgre::Quat having a function getAxisAngle.
But it's having covrsion support as NxOgre::Vec3..as<Ogre::Vector3>() and NxOgre::Quat().as<Ogre::Quaternion>().
Can't u use these converted types because Ogre::Vector3 has length function and Ogre::Quaternion has FromAngleAxis function

betajaen

01-02-2010 09:29:41

For length, you want Vec3::Distance. Length and Distance (mean roughly the same in English).

For angle axis, it doesn't seem to have it. But you can do it in another Quaternion (Ogre's for example), and use Quat::from<Ogre::Quaternion>() as deshan said.

calypso9

04-02-2010 03:25:35

use Quat::from<Ogre::Quaternion>() as deshan said.

Can I do something like this for Matrix33? I want to convert an NxOgre::Matrix33 that I get from "getGlobalOrientation()" and "getGlobalInertiaTensor()" to a PhysX NxMat33. But NxOgre's Matrix33 doesn't have "from" and I can't figure out how to even access the elements individually.

calypso9

09-02-2010 14:08:14

Anyone?

I know it seems like a stupid question but, I just don't understand how to use NxOgre's Matrix33 class.

betajaen

09-02-2010 15:24:30

Come on, looking at the header of NxOgre::Matrix33 and NxMat33 tells you what to do.

Element Access:
NxOgre::Matrix33 a;
a.m[0][0] = 1.0f;


Converting:
NxOgre::Matrix33 a;
NxMat33 b;
a.setRowMajor(b.ptr());

calypso9

09-02-2010 23:29:53

Come on, looking at the header of NxOgre::Matrix33 and NxMat33 tells you what to do.

Element Access:
NxOgre::Matrix33 a;
a.m[0][0] = 1.0f;


Converting:
NxOgre::Matrix33 a;
NxMat33 b;
a.setRowMajor(b.ptr());


That doesn't even compile.
m is protected so I can't use it and the conversion code gives
'setRowMajor' : is not a member of 'bml::Matrix33T<T>';

Did I build wrong or something?

betajaen

11-02-2010 14:25:52

Ack.

Make Matrix33::m "public", and I made a typo in the second code snippet. It should be "b.setRowMajor(a.ptr());".