Loading screenshots as textures
by Manoel Neto · in Torque Game Engine · 09/15/2004 (1:25 pm) · 2 replies
Hi, I need some advice (pardon by newbieness).
In the game (single-player) I'm working on there'll be a photo feature. Photos are taken either by the player or by another character, and I need to display those back in the game. I'm thinking of using the screenshot functions to save a .PNG file, but seems Torque cannot "see" files that are created after engine startup. Is there a way to load those newly made files as textures during run-time? Or is there a way to create textures right off the framebuffer?
In the game (single-player) I'm working on there'll be a photo feature. Photos are taken either by the player or by another character, and I need to display those back in the game. I'm thinking of using the screenshot functions to save a .PNG file, but seems Torque cannot "see" files that are created after engine startup. Is there a way to load those newly made files as textures during run-time? Or is there a way to create textures right off the framebuffer?
About the author
Recent Threads
#2
09/15/2004 (1:38 pm)
You mean I can skip writing the screenshot to a file and use it as a texture directly?
Torque Owner Westy