I nead help for b3d

Blitz3D Forums/Blitz3D Beginners Area/I nead help for b3d

Afke(Posted 2005) [#1]
I made scen in 3dmax and export it to the blitz in b3d format.B3d format suports cameras and itc.How can I control it with blitz code.I mean how can I control the parts of b3d like camera01 camera02 some meshis itc. thenks for your help.


PowerPC603(Posted 2005) [#2]
You can load the model via LoadAnimMesh.
This keeps the hierarchy of the b3d-file intact.
Then you can loop through all children of that model and find the camera, by checking each child for it's name.

If you find the child, you can set a "camera" variable and set the handle of that child (which you found by searching the model) to that variable.
Then it works like a normal camera, like "camera = CreateCamera()".
You can then use the MoveEntity and other entity-commands on that camera.

; Load level (exported by 3D Max)
level = LoadAnimMesh("Level.b3d")
; Find the camera
camera = FindChild(level, "camera01")
; Move the camera (like any camera you created in Blitz3D)
MoveEntity camera, 0, 0, 1



Afke(Posted 2005) [#3]
thaks for your help !


Rhyolite(Posted 2005) [#4]
http://www.onigirl.com/pipeline/index.html

Rhy :)