Render to cubemaps demo

Blitz3D Forums/Blitz3D Userlibs/Render to cubemaps demo

www.tomspeed.com/render_to_cubemap.zip

w,s,a,d & mouse to move about, hold space to use renderable method, 1&2 to change texture size.

I'm getting noticable speed increases when using 256/512 res textures. (255 fps > 370fps @ 512x512)

Where you would normaly do this when updating each cubemap face:
SetCubeFace tex,0
RotateEntity cam,0,90,0
RenderWorld
CopyRect 0,0,size,size,0,0,BackBuffer(),TextureBuffer(t)


You can now do this:
SetCubemapRenderTarget(tex,0)
RotateEntity cam,0,90,0
RenderWorld


I'll up a new DLL tomorrow after I put in some 'sanity checks' as Mark calls them :)