Multiple instances of B3d?

Archives Forums/Blitz3D SDK Programming/Multiple instances of B3d?

Leon Drake(Posted 2007) [#1]
Is it possible to run two seperate instances of B3d in two seperate panels on a window? Or Possibly even running two of the same instance of B3d sdk on two sperate panels?


Leon Drake(Posted 2007) [#2]
i guess this will work for now, i really only need it updated when i hit apply changes so the speed issue doesnt bug me too much.

Function Copyb3dtopix:TPixmap(view:TGadget)

Local pix:TPixmap = CreatePixmap( ClientWidth(view),ClientHeight(view),PF_RGBA8888 )
bbRenderWorld()
bbLockBuffer()

For i = 0 To ClientHeight(view)-1
For ii = 0 To ClientWidth(view)-1
WritePixel( pix,ii,i,bbReadPixelFast(ii,i))
'Print bbReadPixelFast(ii,i)
Next
Next
bbUnlockBuffer()
'Print "sizes: "+ClientWidth(view)+" "+ClientHeight(view)
'SavePixmapPNG( pix,"showme.png" )
Return pix
End Function



unless someone knows a faster way to transfer a b3d image to bmax


MeowZ(Posted 2007) [#3]
Hi Leon,

It is possible, but it gonna be very slowwwww application.


Leon Drake(Posted 2007) [#4]
yea, its ok i only needed it for unchanging perspective display anyways so grabbing it into a bmax pixmap works good for that.