Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


a question about 3d application and GPU's

Hi, I am working on a 3d engine, but i want to have all my rendered data saved to the harddisk instead of the screen as i need to send it to another computer which will view the scene, I want the scene to be rendered in real time and sent out. my question is, is it possible to use the capabilities of the card for the rendering and then save it to the Hard disk?

thank you



  • XLoomXLoom Posts: 129Member
    It is possible to render the scene and save it to hard disk. Are you using OpenGL or DirectX or ... I think you are not coding low level functions or you wouldn't be asking this? If you use OpenGL you can use

    void glCopyTexSubImage2D(GLenum target,
    GLint level,
    GLint xoffset,
    GLint yoffset,
    GLint xCoordinate,
    GLint yCoordinate,
    GLsizei width,
    GLsizei height)

    (Precise description about this function can be found from for example

    to get your scene into OpenGL texture and then use

    void glGetTexImage(GLenum Target,
    GLint Level,
    GLenum Format,
    GLenum Type,
    GLvoid *Pixels)
    (Precise description about this function can be found from
    Google search :)

    to get pixels into your own array of same type as OpenGL texture (RGB or RGBA or indexed color or whatever type it is)

    Then you can save your array into a file.

    At least I think it should work this way. If I am wrong about something, then please let me know, I am also in the middle of game creation, but I am not so familiar with OpenGL as I would like to be.

    Anyway I hope it helps you.

Sign In or Register to comment.