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
importing simple shapes from blender
Re: importing simple shapes from blender
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).
If the loaded model actually has bad data or something, then it could be something earlier (blender export or content load process).
Re: importing simple shapes from blender
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?
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?
Re: importing simple shapes from blender
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.