Ok, here's the latest version of the vectorbobs library (v0.12) with a new features and a small demo I put together showing some of the objects I managed to create.
First of all we now draw the object directly onto an image so it can then be manipulated later.
eg.
CreateImage(10,640,400) ;draw the main object on this image. must be large enough to draw the bobs on
KK_BobSetImage(10) ;must define this image here!
We then pass the object address and the length to another function which then returns the number of points in the object
eg.
NumPoints=KK_BobCatchObject(ObjectAddress,ObjectLength)
And then define the position of the object.
eg.
KK_BobSetCentre(320,240,512) ;set the centre, x, y, z
In the main loop of our program we simply call the following function then draw the Image we have created onto the screen.
I have included my transparent image routine which works the same way as the DisplayTransparentSprite where you can define the transparency colour.
eg.
ADDR=KK_BobDrawBobs(Xang,Yang,Zang,1) ;this will draw the object on the defined image we have created and return the address of the object data points (see example)
hdc=StartDrawing(ScreenOutput())
KK_BobDraw_TransparentImage(hdc,10,0,100,0)
StopDrawing()
See the example in the zip file and copy the relevant libraries into the appropriate locations to test.
Tested with PB 5.31.