Hello everyone!
I have the following question:
I want to use ODE for simulating my physics. Since there is a possibility to load mesh data into ODE, I want to access the my resource data from Horde3D and pass it to ODE so that it can do its magic with it.
I don't know if a lot of people have experiencein doing that but would that be the right approach of doing this?
My other question is:
If I use the functions
Code:
const void* data = Horde3D::getResourceData(modelRes, GeometryResParams::VertexData);
and
Code:
int size = Horde3D::getResourceParami(modelRes, GeometryResParams::VertexCount);
the returned values are always 0. I debugged into the library and found that I always reach this point in the Horde lib:
Code:
int Resource::getParami( int /*param*/ )
{
return 0;
}
Before doing that I loaded the resources properly and if I query whether it's been loaded true is being returned. I can also use it with Horde and display everything just fine. Only accessing the resource data and it's properties seems to go wrong.
Does anybody have a suggestion what I'm doing wrong?
Thanks in advance