I've updated my references to the dev fork - Change Set: a10bfc511282 and now i get:
InvalidCastException was unhandled. Specified cast is not valid.
on line 220 worldTransformsParameter.SetValue(worldTransforms); in BEPUphysicsDrawer.Models.ModelDisplayObjectBatch
Code: Select all
public void Draw(Effect effect, EffectParameter worldTransformsParameter, EffectParameter textureIndicesParameter, EffectPass pass)
{
if (vertices.Length > 0)
{
graphicsDevice.SetVertexBuffers(bindings);
graphicsDevice.Indices = indexBuffer;
worldTransformsParameter.SetValue(worldTransforms);
textureIndicesParameter.SetValue(textureIndices);
pass.Apply();
graphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList,
0, 0, vertices.Length,
0, indices.Length / 3);
}
}
Sorry if I've made a rookie mistake somewhere along the way.
Thanks for any help,
Kataan