Using 3ds Files in B3d

Blitz3D Forums/Blitz3D Beginners Area/Using 3ds Files in B3d

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi DanP -

Here is some sample code after exporting the default poser male figure in poser artist as a 3ds file.

You will notice that the limbs are not arranged in a hierarchy, so if you rotate one of them the children to not all move as well. However it should be relatively easy to texture them. Have a play with the code below.

Oh..you may not realise that the EULA for poser content says something about not using them outside of poser or something like that so you may want to think about what you are going to do with the poser figures.

Graphics3D 800,600,0,2

camera=CreateCamera()

mesh=LoadAnimMesh("untitled.3ds")

MoveEntity camera,0,2,-2
AlignToVector camera,0,-1,1,3,1



Repeat

If a<>0 Then TurnEntity a,1,2,3
UpdateWorld
RenderWorld
For t=1 To CountChildren(mesh)
c=GetChild(mesh,t)
If t=4 Then a=c
Text 0,t*20,EntityName(c)
Next

Flip

Until KeyDown(1)