Results 1 to 3 of 3

Thread: performing light enable / disable behind a texture

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2003
    Location
    Pakistan
    Posts
    23

    performing light enable / disable behind a texture

    hello friends
    i am presently working in an application which uses textures. i have a texture of
    a button (press button to have ON/OFF select) it has a small transparent circle
    inside through which light is visible ( of any color,say RED) which shows the status of button
    that it is ON. when it is pressed again it turns off that is light is not visible.
    _______
    | |
    button---> | O |
    with small |_____|
    transparent circle inside


    i have textured map the button . the click is ok but how to glow light of
    any color through the circle when the button is clicked that is button is ON.
    please help me in solving this problem in an optimized and easy way through OpenGL.
    thanks in advance.


    kashif

  2. #2
    Andrew Jameson
    Guest

    Re: performing light enable / disable behind a texture

    Hi,
    I do much the same ... I opted for a solution that uses two textures ... one for button on and one for its off state. I found that I'd got much better control and I needed a way to actually emulate a button containing a light ... actually, I used three textures as I also needed a disabled state too !

    Andrew

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2003
    Location
    Pakistan
    Posts
    23

    Re: performing light enable / disable behind a texture

    hello
    sorry to interrupt u guys again .
    as far i have understood that i should use 2 textures one with ON state and other with OFF state. so when i click on that i just switch the textures. is it so.

    but here i don't have only the texture of one button it is a texture of control Panel (say keyboard) which has lot of buttons. the picture is of complete panel and it contains many buttons . so then the above methood will be lenthy and not optimized one as i have to make almnost many textures for each button ON.
    please look into another solution.
    kashif

Similar Threads

  1. Lightning (enable/disable)
    By ei05tbe in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-11-2010, 03:40 PM
  2. Enable & Disable Lighting
    By JRGlide in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 07-08-2009, 09:43 AM
  3. enable/disable GL_COLOR_MATERIAL
    By jyoung77 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-27-2003, 05:25 AM
  4. Disable/Enable Perspective
    By gunsboy in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-24-2003, 12:35 PM
  5. FSAA enable/disable
    By V-man in forum OpenGL: General
    Replies: 6
    Last Post: 05-03-2001, 11:28 PM

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