Rendering to a array
Posted: Tue Jun 09, 2009 12:04 pm
Greetings friends.
I'm experienced with C++ and Irrlicht, but I've hit a stumbling block I'm hoping someone can direct me out of.
I want to render a scene with Irrlicht, but I don't want to display it directly; I just want to render the frame into eg a char array.
I don't expect the OpenGL or DirectX renderers will particularly want to do this. However, I only need low resolution - 320 x 240 max (don't even ask what the project is ) - so I figure all I need do is tweak one of the software renderers to render into an array.
I've been having a look through the source, and I think once I find the right method to amend it should be fairly straight forward, but my eyes are glazing... I could really use a suggestion on the particular method I should look into editing/replacing.
Many thanks for any help you can offer.
I'm experienced with C++ and Irrlicht, but I've hit a stumbling block I'm hoping someone can direct me out of.
I want to render a scene with Irrlicht, but I don't want to display it directly; I just want to render the frame into eg a char array.
I don't expect the OpenGL or DirectX renderers will particularly want to do this. However, I only need low resolution - 320 x 240 max (don't even ask what the project is ) - so I figure all I need do is tweak one of the software renderers to render into an array.
I've been having a look through the source, and I think once I find the right method to amend it should be fairly straight forward, but my eyes are glazing... I could really use a suggestion on the particular method I should look into editing/replacing.
Many thanks for any help you can offer.