Is there a better way to create lines and also points in 3d.
eg
raw3DLine( X1,Y1,Z1,X2,Y2,Z2)
` This code was downloaded from The Game Creators
` It is reproduced here with full permission
` http://www.thegamecreators.com
function makeLine3D(number, x#, y#, z#, tox#, toy#, toz#)
make object triangle number, x#, y#, z#, x#, y#, z#, tox#, toy#, toz#
set object wireframe number,1
endfunction
` This code was downloaded from The Game Creators
` It is reproduced here with full permission
` http://www.thegamecreators.com
function Draw3DLine(obj, X1,Y1,Z1,X2,Y2,Z2)
` the obj must be a tri. or failure will result
if OBJECT EXIST(obj)
LOCK VERTEXDATA FOR LIMB obj,0
SET VERTEXDATA POSITION 1, X1, Y1, Z1
SET VERTEXDATA POSITION 2, X2, Y2, Z2
SET VERTEXDATA POSITION 3, X2, Y2, Z2
UNLOCK VERTEXDATA
SET OBJECT WIREFRAME obj, 1
`Cgreen1 is just a image of one color in case you need texture /color the line
TEXTURE OBJECT obj, Cgreen1
else
MAKE OBJECT TRIANGLE obj, X1, Y1, Z1, X2, Y2, Z2, X2, Y2, Z2
SET OBJECT WIREFRAME obj, 1
TEXTURE OBJECT obj, Cgreen1
endif
endfunction
Sean