Quote: "memblocks? now that you said it you pretty much have to tell the community how you pulled it off. I sure am curious though... "
Have some problems with memblocks?
Using memblocks is very simple... you just need to create it into system memory:
BASIC EXAMPLE OF THE BLOOM
MAKE MEMBLOCK Memb_num, size_in_bytes
`size_in_bytes must be a image_X_size * image_Y_size * 4_bytes_per_pixel
MAKE CAMERA 1
SET CAMERA TO IMAGE 1,1,32,32
`you just need this camera to render the small image for bloom
CREATE BITMAP 1,32,32
`this bitmap is for rendered image
SET CAMERA RANGE 1,1,1000
SET CAMERA RANGE 0.1,1000
`creating transparent plain
MAKE OBJECT PLAIN 1,0.4,0.3
GHOST OBJECT ON 1,2
`the main loop
DO
`position second camera to the main camera
POSITION CAMERA 1,CAMERA POSITION X(),CAMERA POSITION Y(),CAMERA POSITION Z()
ROTATE CAMERA 1,CAMERA ANGLE X(),CAMERA ANGLE Y(),CAMERA ANGLE Z()
`positioning transparent plaint in the front of main camera
POSITION OBJECT 1,CAMERA POSITION X(),CAMERA POSITION Y(),CAMERA POSITION Z()
ROTATE OBJECT 1,CAMERA ANGLE X(),CAMERA ANGLE Y(),CAMERA ANGLE Z()
MOVE OBJECT 1,0.25
SET CURRENT BITMAP 1
SET CURRENT CAMERA 1
GET IMAGE 2,1,1,32,32,1
MAKE MEMBLOCK FROM IMAGE Memb_num,32*32*4
T=12
`just to skip the memblock header
FOR Y=1 TO 31
FOR X=1 TO 31
C=READ MEMBLCO DWORD(1,T)
R=RGBR(C)
G=RGBG(C)
B=RGBB(C)
`HERE YOU CAN WORK WITH RGB VALUES OF CURRENT PIXEL (X,Y)
T=T+1
NEXT X
NEXT Y
MAKE IMAGE FROM MEMBLOCK img_num,Memb_num
TEXTURE OBJECT 1,img_num
SET CURRENT CAMERA 0
SET CURRENT BITMAP 0
SYNC
LOOP
I knot this is not a good example... i'm a full time worker, so I can post the real working example of "memblock bloom" later from my home.