Results 1 to 2 of 2

Thread: ReadPixels doesn't work with Textured Scene?

  1. #1
    Member Newbie
    Join Date
    Feb 2002
    Location
    Hong Kong
    Posts
    44

    ReadPixels doesn't work with Textured Scene?

    If I create an OpenGL scene using primitives such as spheres and cones then glReadPixels works fine. However if I create a scene that uses a texture then it doesn't work. The format of glReadPixels I am using is shown below. Is there some setting required when textures are used.

    thanks

    ==============================


    glReadPixels(0, 0,imagewidth, imageheight,
    GL_RGB,GL_UNSIGNED_BYTE,ReferenceImage);


    [This message has been edited by rangers99 (edited 04-07-2002).]

  2. #2
    Member Newbie
    Join Date
    Feb 2002
    Location
    Hong Kong
    Posts
    44

    Re: ReadPixels doesn't work with Textured Scene?

    ha...ya.........MUPPETS.

    Worked out the answer myself. You have to do

    glDisable(TEXTURE_2D).

Similar Threads

  1. Spotlight doesn't light up my scene
    By profoX in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-31-2011, 06:35 AM
  2. howto import into opengl a textured scene from 3ds
    By Adrian B in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 12-08-2010, 01:16 PM
  3. when the scene doesn't fit the frustum
    By felpy in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 12-13-2009, 01:37 PM
  4. How does default ReadPixels work?
    By inhosens in forum OpenGL ES
    Replies: 1
    Last Post: 07-04-2008, 03:37 AM
  5. Scene enclosing Textured background
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 09-04-2002, 10:20 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