Results 1 to 2 of 2

Thread: Can anybody give an example to use color bias/scale when rendering texture image?

  1. #1
    Guest

    Can anybody give an example to use color bias/scale when rendering texture image?

    Can anybody give a demo to show how to use

    glPixelTransferf(GL_RED_SCALE,fScale);
    ...

    glPixelTransferf(GL_RED_BIAS,fBias);
    ...

    to do RGB scale/bias control when rendering a texture image.

    Thanks!

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: Can anybody give an example to use color bias/scale when rendering texture image?

    glPixelTransferf doesn't affect textured rendering. It is used during pixel operations of which texture downloads with glTexImage2D is one.
    You might want to search for the GL_COLOR_MATRIX functionality of the ARB-imaging subset of OpenGL.

Similar Threads

  1. vgCreatePath scale and bias
    By DaveS in forum OpenVG
    Replies: 2
    Last Post: 08-20-2010, 04:39 PM
  2. Glow & Texture scale/bias & Blur on old hardware
    By de_iru_ch in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 03-10-2009, 04:36 PM
  3. Interactive Scale & Bias
    By jtipton in forum OpenGL: Advanced Coding
    Replies: 14
    Last Post: 01-17-2007, 09:50 AM
  4. Scale and bias for alpha
    By Umora in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 06-17-2003, 09:36 AM
  5. What is the scale-bias matrix?
    By imported_Anders in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 08-27-2002, 08:07 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