Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Transparent 3d Text mapped onto a polygon

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2013

    Transparent 3d Text mapped onto a polygon

    I am writing a routine to display finite element information. When drawing the FE model, i want to identify the individual element by number. So i want to place a number on each face of the element (consider it a cube). I also want to color this face. Can i use 1d textures to map the number onto the face of the polygon? What about coloring the background of the texture?

    I have seen examples where they map a texture onto a cube, but i want my texture to be transparent except for the text.

    Sorry if this is a little unclear, but i am not up on the latest OpenGL

  2. #2
    Advanced Member Frequent Contributor Ehsan Kamrani's Avatar
    Join Date
    May 2005
    you can use alpha channel for your 2D texture to mask specific parts of texture. Then use discard method in GLSL or simple alpha blending to render the textures.
    Last edited by Ehsan Kamrani; 11-12-2013 at 11:47 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