Page 1 of 1

Relationship between models and entities

Posted: Mon May 31, 2010 1:20 pm
by jbosch
Hi,

I'm doing my first tests with bepu engine, and the main problem I'm experiencing its to stablish a relationship between the entites and the models. My entities behave in a strange way. I think it is because of the entities are not well scaled with the models. Is there an easy way to do this? Have the entities any way to draw themselves, or its wireframe, for testing purposes?

See that example, I was trying to launch a ball to a bowl... http://www.verticaling.com/Bowling.rar

Thanks!

Re: Relationship between models and entities

Posted: Mon May 31, 2010 5:59 pm
by Norbo
The BEPUphysicsDemos project includes a BEPUphysicsDrawer library project which can be used as a debug renderer. It is used in .dll form in the RagdollDemo as well.

The attached version of the project incorporates the drawer library in a minimal way. There's an InstancedModelDrawer, isWireframe property, line/constraint drawer, and some other things that aren't shown (but can be easily introduced).

Re: Relationship between models and entities

Posted: Mon May 31, 2010 9:40 pm
by jbosch
Many thanks!!! You have been very helpful. Now I can test everything much better :-)

Re: Relationship between models and entities

Posted: Thu Jun 10, 2010 8:38 pm
by jbosch
Norbo wrote:The BEPUphysicsDemos project includes a BEPUphysicsDrawer library project which can be used as a debug renderer. It is used in .dll form in the RagdollDemo as well.

The attached version of the project incorporates the drawer library in a minimal way. There's an InstancedModelDrawer, isWireframe property, line/constraint drawer, and some other things that aren't shown (but can be easily introduced).
This drawer DLL can be download anywhere in this web? should it work for windows phone 7 CTP?

Thanks

Re: Relationship between models and entities

Posted: Thu Jun 10, 2010 8:59 pm
by Norbo
There is no drawer .dll-specific download on the website, but a precompiled .dll is used in the RagdollDemo project (and it can be compiled from the BEPUphysicsDemos project).

The WP7 demo source (downloadable on http://www.bepu-games.com/BEPUphysics/downloads.htm) has a modified drawer in it thats works on the phone.