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:
You can now do this:
I'll up a new DLL tomorrow after I put in some 'sanity checks' as Mark calls them :)
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 :)