Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: pigpig

Search: Search took 0.01 seconds.

  1. Thread: Concave polygon

    by pigpig
    Replies
    1
    Views
    202

    Concave polygon

    I am finding examples on using tess. (other than tess.c and tesswind.c) I want to draw concave polygon but I don't have enough knowledge to do this. Please tell me if u know any web that teaches...
  2. Replies
    10
    Views
    738

    Re: Distortion Effect

    I need to perform some free transformation on rectangular image to form any quadrilateral shape. I am seeking for some methods that involve less calculation and that can use OpenGL built-in functions...
  3. Replies
    10
    Views
    738

    Re: Distortion Effect

    john: how can I do this? can u describe more?

    thx...
  4. Replies
    10
    Views
    738

    Re: Distortion Effect

    It seems that it's very complicated to solve like that...

    How about any usual method to handle image transformation? eg. in photoshop. Is it very difficult to work around this way?
  5. Replies
    10
    Views
    738

    Re: Distortion Effect

    "sub-divided the polygon" means I have to divide both the texture coordinates and the mapped polygon?
  6. Replies
    10
    Views
    738

    Distortion Effect

    I am making simple distortion effect in a 2D space. The distortion is simple as I am mapping the image to a quadrilateral. When I distort the first image to the shape of the second, the result is not...
  7. Replies
    4
    Views
    125

    Re: JPG's & Video Memory

    In win32, u can also use OleLoadPicture to load the JPG first and then get the raw image to render.
  8. Replies
    0
    Views
    77

    Have u used "GL_REPLACE"?

    I read about rendering a movie in an example in SIG97. I want to know more about that. Do you have any experience?
    :>
  9. Replies
    6
    Views
    199

    Re: What's wrong with my texture mapping?

    The whole image is one picture, I haven't repeat anything in it. And I only make this in a 2D-application.

    When I changed from gltexcoord2* to gltexcoord4*, I got the same results. I set all the...
  10. Replies
    6
    Views
    199

    Re: What's wrong with my texture mapping?

    I use texture mapping to do distortion effect of my program. However, the effect seems not uniform.
    What are the correct flags I need to set?
    original: http://www.cs.ust.hk/~yvonne/gl/e1.jpg" ...
  11. Replies
    16
    Views
    1,680

    Re: glTexImage2D or gluBuild2DMipmaps?

    I succeed by doing this:

    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, 128, 128, 0, GL_RGBA, GL_UNSIGNED_BYTE, data);

    http://www.opengl.org/discussion_boards/ubb/biggrin.gif
  12. Replies
    16
    Views
    1,680

    Re: glTexImage2D or gluBuild2DMipmaps?

    I don't have the Redbook...
    Would you mind telling me the URL of the online edition?
    Also, I have set both to GL_RGB, both 3 components...
    The depth I have set for them is the same:
    ...
  13. Replies
    1
    Views
    102

    Re: displaying image

    Try this link:

    msdn.microsoft.com/library/techart/msdn_gl5.htm
  14. Replies
    16
    Views
    1,680

    Re: glTexImage2D or gluBuild2DMipmaps?

    How about these two image?

    1) using glDrawPixels http://www.cs.ust.hk/~yvonne/gl/orig.jpg
    2) using gluBuild2DMipmaps http://www.cs.ust.hk/~yvonne/gl/mipmap.jpg

    Any comment that I can make...
  15. Replies
    16
    Views
    1,680

    Re: glTexImage2D or gluBuild2DMipmaps?

    I already used level 0 in glTexImage2D.
    Is it that there should be no effect on how I set the filter?
  16. Replies
    16
    Views
    1,680

    Re: glTexImage2D or gluBuild2DMipmaps?

    How to set the parameters will make the clearest image? No bluring and no zig-zag edge...
  17. Replies
    16
    Views
    1,680

    Re: glTexImage2D or gluBuild2DMipmaps?

    Thanks for all the advice.
    I also found that glTexImage2D is faster in my 2-D application.
    It seems that the image is clearer using glTexImage2D than mipmapping.
  18. Replies
    16
    Views
    1,680

    glTexImage2D or gluBuild2DMipmaps?

    Hi All,
    I just want to simply draw a .bmp image in a 2D space.
    Which one should I use?
    Which one will be faster in rendering?

    Thanks
    Pigpig
  19. Replies
    5
    Views
    147

    Re: Simple Texture Mapping

    How about the size of the image?
    Is it restricted to power of 2?

    Also, I just want to display an image in a 2D space, so I want to show every pixel clearly. What flag I need to set for mipmap?
    ...
  20. Replies
    5
    Views
    180

    Re: Simple Texture Mapping

    How about the size of the image?
    Is it restricted to power of 2?

    Also, I just want to display an image in a 2D space, so I want to show every pixel clearly. What flag I need to set for mipmap?
    ...
  21. Replies
    5
    Views
    147

    Simple Texture Mapping

    Hi all,

    I am new in texture mapping. Here is the code I have written:

    glEnable( GL_TEXTURE_2D );
    glPixelStorei( GL_UNPACK_ALIGNMENT, 1 );
    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,...
  22. Replies
    5
    Views
    180

    Simple Texture Mapping

    Hi all,

    I am new in texture mapping. Here is the code I have written:

    glEnable( GL_TEXTURE_2D );
    glPixelStorei( GL_UNPACK_ALIGNMENT, 1 );
    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,...
Results 1 to 22 of 22