You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
make object sphere 1, 100
save object "myObj.dbo", 1
delete object 1
make bank from file 1, "myObj.dbo"
make object from bank 2, 1
color object 2, rgb(0, 255, 0)
lock vertexdata for limb ObjID,LimbID
sMeshPtr as dword
FVF as dword
FVFsize as dword
VBufferPtr as dword
`pointer to the locked limb's internal sMesh structure
sMeshPtr = get vertexdata ptr()
`vertex format and size
FVF = peek dword( sMeshPtr + 4)
FVFsize = peek dword( sMeshPtr + 8)
`pointer to the mesh's vertexdata memory
VDataPtr = peek dword( sMeshPtr + 20)
Login to post a reply