Topic: Possible to mix iB3d code with "normal" code?

Hi GMan,


Is it possible to use iB3d and the "normal code" at the same time, or will there be any conflicts?




Tim

Re: Possible to mix iB3d code with "normal" code?

I'm wondering this myself, mixing stuff like shaders in with iB3D.

Re: Possible to mix iB3d code with "normal" code?

greetings smile  it is definately possible to mix code.  each iB3D type has a field that is a pointer to the underlying Irrlicht types.  so for example, to create the sydney model is some calls to iB3D functions, but to set the animations you need to access the underlying Irrlicht type directly.  an example would be:

Local syd:MESH=ib3d_LoadAnimMesh("sydney.md2")
IAnimatedMeshSceneNode(syd._node).getFrameNr() ' returns current frame
IAnimatedMeshSceneNode(syd._node).setAnimationSpeed(1) ' sets speed of animation
Local startframe:Int=0, endframe:Int=25
IAnimatedMeshSceneNode(syd._node).setFrameLoop(startframe,endframe)
IAnimatedMeshSceneNode(syd._node).setLoopMode(False) ' to turn off looping

take a peek at the iB3D type code to find the underlying Irrlicht types.