Render to Texture demo

Blitz3D Forums/Blitz3D Programming/Render to Texture demo

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,

This is just a test, there's no checking at all yet so it 'may' cause a MAV, also that ATI 'thing' may stop the clearing working.

I take no responsibility if it goes pear shaped, try at your own discretion!

http://www.tomspeed.com/r2t.zip

The checking will come soon, I'm still slowly wading through this DX SDK, I liken it to swimming in honey :P

Anyways, it's possible, it does work (for me at least), and it's fast.

I had to cheat, I created a renderable texture, then hijack a BB texture and replaced it's surface pointer to the render texture pointer. Blending modes still work too.

More later!
Tom