Results 1 to 3 of 3

Thread: Textures and Rendering to a Bitmap

  1. #1
    Guest

    Textures and Rendering to a Bitmap

    For some reason textures are not used when I render to a bitmap (in memory). When I draw to a screen DC the textures appear as they should.

    Is there some limitation/trick I'm unaware of?

    Thanks in advance.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    880

    Re: Textures and Rendering to a Bitmap

    Did you recreate your textures in your offscreen rendering context (I mean glGenTextures, glBindTextures, glTexImage2D) ????

    As your offscreen rendering context is a new one, the textures you binded for your screen rendering context are not part of this new rendering context !

    Tell me if it doesn't work !

    Eric

  3. #3
    Guest

    Re: Textures and Rendering to a Bitmap

    Worked like a charm! Thanks man!

Similar Threads

  1. Offscreen texture rendering to bitmap
    By Tyrahell in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-01-2010, 08:28 AM
  2. rendering into a bitmap
    By satloc in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-31-2009, 05:19 AM
  3. Textures, bitmap and screen
    By lucafr in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 12-03-2008, 05:02 PM
  4. Replies: 5
    Last Post: 06-17-2004, 11:51 AM
  5. Compositing Bitmap Textures
    By Microfunguy in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 04-18-2004, 08:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean