Displaying bones of B3D

Blitz3D Forums/Blitz3D Programming/Displaying bones of B3D

Tracer(Posted 2004) [#1]
I want to display the bones of a B3D model, but they all end up in the wrong spot..

i get all the children from the B3D, then place spheres on screen at the entityx,y,z of the found children.. this looks nothing like the bone structure of my B3D model :)

Any ideas?

Tracer


mongia2(Posted 2004) [#2]
example

Elf=LoadAnimMesh(mesh)


for nkk=0 to num_bones
bones(n)=FindChild (mesh,bones$(n))
cc(n)=createcube(bones(n))
scaleentity cc(n),.01,.01,.01
next

and i see a point of bones

Mongia


Gabriel(Posted 2004) [#3]
You're using EntityX#(Bone,True) etc, aren't you? Otherwise the coordinates will be relative instead of global.


Difference(Posted 2004) [#4]
Parent the spheres to the children and place them at 0,0,0
[EDIT] Redundant, I just saw thats what mongia2 does too.


Tracer(Posted 2004) [#5]
Sybixsus, that was it :)

I wasn't even aware that those commands take a local/global boolean :)

Thanks man,

Tracer