Image to texure?

Blitz3D Forums/Blitz3D Programming/Image to texure?

Oiduts Studios(Posted 2011) [#1]
Is there a way to project a dynamic image onto a 3d object or convert it into a texture in real time?

I am using escapi (http://www.blitzbasic.com/Community/posts.php?topic=66505#743572) and need to project the feed (which is updated to an image) onto a plane.

Thank you for any help because this is a huge part of my project :D


Rroff(Posted 2011) [#2]
You can copy rect a 2D image buffer to a texture in realtime (better to do it at only say 30Hz than every frame tho).

For advanced projection and similiar features pretty sure fastext can do that kinda thing.


Oiduts Studios(Posted 2011) [#3]
Ha wow, I knew there was an easy way of doing it... native copyrect works fine at 60hz, I might use fastext if I run into any problems later, thank you so much!


jfk EO-11110(Posted 2011) [#4]
also try the texture flag 256, it may speed things up.