Render to Image
BlitzMax Forums/BlitzMax Beginners Area/Render to Image
| ||
Hi, i'm starting to optimize some stuff i have done. If have some heavy drawing routinge that takes some time to calculate, I wish to render it to an image, so I don't need to "redraw" it each time. I can't really figure out how to do this, and someone help me on how to "render to a image"? Thanks in advance |
| ||
search for r2t (render to texture) But keep in mind: In OpenGL it isn't directly possible without some complicated (pBuffer) or higher level stuff (FBO). So r2t in OpenGL normally works like GrabImage. If you're interrested I have a r2t mod for OpenGL which uses FBO's (Frame buffer Objects) which I will publish when it is ready. cheers klepto2 |
| ||
You can try this |