For example. if i wanted to create a mesh with two 1 sided flat sqaures on top of each other vertically,to get a 3 part animation sequence(or even 2), where the top sqaure/surf2 would bend at a 45/90 anglebackwards like its a closing door?
then how do i output the animation sequences into b3d, the textures, or the joints also?
thanks for any input
[code]
Graphics3D 800,600,16,3
SetBuffer BackBuffer()
light=CreateLight()
RotateEntity light,90,0,0
cam=CreateCamera()
PositionEntity cam,5,0,-30
mesh=CreateMesh()
;creates the first surface
surf1=CreateSurface(mesh)
v1=AddVertex(surf1,0,10,0,0,1);upper left corner
v2=AddVertex(surf1,10,10,0,1,1);upper right corner
v3=AddVertex(surf1,10,0,0,1,0);lower right corner
v4=AddVertex(surf1,0,0,0,0,0);lower left corner
tri1=AddTriangle(surf1,v1,v2,v3)
tri2=AddTriangle(surf1,v1,v3,v4)
;now creating the second surface, note its just two flat
;1 sided boxes one located on top of the other
surf2=CreateSurface(mesh)
v5=AddVertex(surf2,10,10,0,1,0);lower right corner
v6=AddVertex(surf2,0,10,0,0,1);lower left corner
v7=AddVertex(surf2,10,20,0,1,1);upper right corner
v8=AddVertex(surf2,0,20.0,0,1);upper left corner
tri3=AddTriangle(surf2,v8,v7,v5)
tri4=AddTriangle(surf2,v8,v5,v6)
tex=LoadTexture("c:\grass.bmp")
;note vertex 5 and 2 are the same as is vertex 6 and 1, say if the top mesh was to swing like a door
;how can i save it so that surf2(the top one) would "swing" back 45 and then 90 for 2 sep anim seqs?
EntityTexture mesh,tex
UpdateNormals mesh
RenderWorld
Flip
WaitKey()
ClearWorld
End
then how do i output the animation sequences into b3d, the textures, or the joints also?
thanks for any input
[code]
Graphics3D 800,600,16,3
SetBuffer BackBuffer()
light=CreateLight()
RotateEntity light,90,0,0
cam=CreateCamera()
PositionEntity cam,5,0,-30
mesh=CreateMesh()
;creates the first surface
surf1=CreateSurface(mesh)
v1=AddVertex(surf1,0,10,0,0,1);upper left corner
v2=AddVertex(surf1,10,10,0,1,1);upper right corner
v3=AddVertex(surf1,10,0,0,1,0);lower right corner
v4=AddVertex(surf1,0,0,0,0,0);lower left corner
tri1=AddTriangle(surf1,v1,v2,v3)
tri2=AddTriangle(surf1,v1,v3,v4)
;now creating the second surface, note its just two flat
;1 sided boxes one located on top of the other
surf2=CreateSurface(mesh)
v5=AddVertex(surf2,10,10,0,1,0);lower right corner
v6=AddVertex(surf2,0,10,0,0,1);lower left corner
v7=AddVertex(surf2,10,20,0,1,1);upper right corner
v8=AddVertex(surf2,0,20.0,0,1);upper left corner
tri3=AddTriangle(surf2,v8,v7,v5)
tri4=AddTriangle(surf2,v8,v5,v6)
tex=LoadTexture("c:\grass.bmp")
;note vertex 5 and 2 are the same as is vertex 6 and 1, say if the top mesh was to swing like a door
;how can i save it so that surf2(the top one) would "swing" back 45 and then 90 for 2 sep anim seqs?
EntityTexture mesh,tex
UpdateNormals mesh
RenderWorld
Flip
WaitKey()
ClearWorld
End