importing simple shapes from blender

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
gmotagi
Posts: 11
Joined: Mon Apr 04, 2011 12:47 pm

importing simple shapes from blender

Post by gmotagi »

I open latest version of Blender. Create a cube. Export it as a .fbx. Load it into the demo project instead of the cube thats there and nothing shows.
Anyone know what it is in Blender thats screwing the bepu drawing up? Im a noob at this 3D stuff so any help is useful.

Thanks
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: importing simple shapes from blender

Post by Norbo »

It depends on what you're doing with the model once it's been loaded. The Drawer likes things to be added in a certain way. Instead the ModelDrawer's constructor you can see a mapping of types that can be added to it.

If the loaded model actually has bad data or something, then it could be something earlier (blender export or content load process).
gmotagi
Posts: 11
Joined: Mon Apr 04, 2011 12:47 pm

Re: importing simple shapes from blender

Post by gmotagi »

I was just taking the cubes fbx from blender and replacing the cube.fbx from the sample. No other changes to code which is why I assumed it should work.
I'm guessing its a blender export problem, trouble is its the simpliest thing I can export. Maybe it needs a material in blender or somthing?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: importing simple shapes from blender

Post by Norbo »

Which project are you working in? I don't remember the cube model ever actually being used in the BEPUphysicsDemos project, though it is in the content directory. The boxes handled by the BEPUphysicsDrawer do not use that model, but rather create their own vertex and index buffers. The BasicSetupDemo and GettingStartedDemo use an actual cube model to do their drawing. You could try switching the model out in one of those projects to see if anything happens.
Post Reply