Page 1 of 1

Cheetah3D in PureBasic

Posted: Mon Sep 01, 2014 5:11 am
by metalos
Hello,

You used someone they Cheetah3D modeling software on Mac OS X and if you do so, how to convert your designs to use in Purebasic ?

Thank you for your help.

Re: Cheetah3D in PureBasic

Posted: Mon Sep 01, 2014 1:43 pm
by applePi
until someone used Cheetah3D with Mac OS X answer you:
from its site it can export to .3ds files
now PB 3D engine are using .mesh format, so we need to convert .3ds to .mesh and this is done with a utility called OgreASSIMPConverter can be downloaded from here http://purebasic.fr/english/viewtopic.php?f=36&t=53022 look "OgreAssimpConverter.zip". it is windows only utility and requires the VC++2010 runtime) so you need to use another system to convert your design to .mesh . the way to do is this: from command prompt write OgreAssimpConverter yourFile.3ds and it will produce .mesh + .material file.
now you can use PB in Mac OS X to load the mesh with LoadMesh(...) look example AddMaterialLayer.pb and replace the robot.mesh with yourfile.mesh in the models folder. you may need to scale up or down your model or to move the camera near or far to see your model.
PS: an example of a successful converting other formats to .mesh can be found here: http://www.purebasic.fr/english/viewtop ... 36&t=57871

Re: Cheetah3D in PureBasic

Posted: Mon Sep 01, 2014 8:12 pm
by metalos
His works fine now. Thank you very much.