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: GL Starter

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,457

    // Draw a triagnle in z 0.5 glBegin(...

    // Draw a triagnle in z 0.5
    glBegin( GL_TRIANGLES );
    glColor3f( 1, 0, 0 );
    glVertex3f( -0.5, -0.5, 0.5 );
    glVertex3f( 0.5, -0.5, 0.5 );
    glVertex3f( 0.0, 0.5, 0.5 );
    glEnd();

    This is my code...
  2. Replies
    5
    Views
    1,457

    Hi nowhere, Thanks for your quick reply. Still I...

    Hi nowhere,
    Thanks for your quick reply. Still I have few doubts, please help me.

    Is glOrtho( -1,1, -1,1, 0, 1 ) is valid ? From books it gives an idea that near and far clipping planes....
  3. Replies
    5
    Views
    1,457

    glOrtho not displays a Triangle

    Dear Experts,
    triangle is not drawn when glOrtho z range between 0 and 1.

    glMatrixMode( GL_PROEJCTION );
    glLoadIdendity();
    glOrtho( -1,1,-1,1,-1,1 );


    glMatrixMode( GL_MODELVIEW );...
  4. Hi, Here texture width is non power of 2....

    Hi,

    Here texture width is non power of 2.
    Please check the avaialability of gl_arb_texture_non_power_of_two extension in your device.
  5. Replies
    2
    Views
    1,456

    Re: Bucubic Interpolation Help !!!!

    Try this http://www.codeproject.com/KB/openGL/GLSLBiCubicInterpolation.aspx

    Following Bi-Cubic interpolation are implemented in this.
    Triangular, Bell, BSpline, CatMull Rom.
  6. Replies
    3
    Views
    3,120

    Memory leak on shader delete and create.

    Dear Experts,
    Please help to solve a problem observed in GLSL shader.
    Memory leak identified when a shader program delete and create it again.
    I'm developing an application which uses GLSL...
  7. Re: Kernel mode cpu usage is high in opengl rendering.

    But when I checked calstack, I found like this
    ntkrnlpa.exe!KiUnexpectedInterrupt+0x121
    ntkrnlpa.exe!ZwYieldExecution+0x1c8e
    ntkrnlpa.exe!ZwYieldExecution+0x2570
    ntkrnlpa.exe!ProbeForRead+0x605...
  8. Kernel mode cpu usage is high in opengl rendering.

    Experts,

    Sometimes CPU usage of my application( uses opengl and CG shader for display) is very high( 50%).


    This issue appears in rare scenarios, when starting my application.
    I cant say...
  9. Replies
    10
    Views
    4,181

    Re: Slow first time shader performace.

    Hi All,

    I faced a similar problem in my project( with cg). My application require around 40 fps display.
    Whenever a state change( recreation of shader program ) was required, display stuck for a...
  10. Re: Smoothing of Circles using Texture Mapping

    I think this issue due to overlapping of two texture rendering.

    Need to enable alpha function.

    You should set Alpha value to 0.0 for the pixels that are not belong to circle area And change...
  11. Re: Is opengl convert gl_polygon to triangles ?

    Thanks dorbie,
    Now its working with triangle strip.
  12. How to get texture coordinates for a rendering.

    Is there any way to get the texture coordinates, that are created by opengl rendering pipeline ?

    I have a texture of width 100, and height 100.
    When I rendering a small region of this texture[In...
  13. Is opengl convert gl_polygon to triangles ?

    Dear Experts,

    Im drawing a semi circled image with texture mapping. When I rendered using GL_POLYGON, I found circular shape is changed to straight line.

    ...
  14. Replies
    3
    Views
    1,719

    Re: Partial Redraw

    If you create a call list for rendering complex objects, then you can avoid CPU to GPU transfer of vertex data.

    In this method, redrawing of all objects( complex and other objects) will happen....
  15. Replies
    0
    Views
    956

    glGetError return GL_INVALID_VALUE.

    Hi Experts,

    In a cg code, i found a cgResetPassState call cause error in opengl
    calls.
    Here is my code


    // Some Cg shader calls.
    char lpczPassName[MAX_PASS_NAME_SIZE] = "MyPass" ...
  16. Re: nested FBO render to texture? RT1(RT2(), RT2())?

    Im doing multiple render targets in the below method.

    // Start pre processing.
    tx1->startRenderTo();
    tx1->endRenderTo();
    tx2->startRenderTo();
    tx2->endRenderTo();
    ...
  17. Replies
    4
    Views
    2,237

    Re: problem of Multitexture

    What is your texture format?
    If its GL_RGBA, then you can use alpha blending to combine two textures.
    If color of one texture is brighter, then above method
    (glBlendFunc (GL_SRC_COLOR,...
  18. Replies
    4
    Views
    2,237

    Re: problem of Multitexture

    U can use blending to combine two textures.

    // Here enables blending
    glEnable( GL_BLEND );
    // give source factor as source color and Destination factor as dest color.
    glBlendFunc(...
  19. Replies
    17
    Views
    11,415

    Re: GLSL shaders gives black textures.

    glUniform1i( ul_set, 0);

    Here setting texture parameters as 0. Need to set texture id to shader.

    Please try like this.
    glEnable(GL_TEXTURE_2D);
    glActiveTexture(GL_TEXTURE0+...
  20. Thread: grid mesh

    by GL Starter
    Replies
    5
    Views
    2,875

    Re: grid mesh

    Do you know if theres a way to take the vertexes and make one big polygon out of it?

    Not clear. what do u mean by big polygon ?
  21. Replies
    17
    Views
    11,415

    Re: GLSL shaders gives black textures.

    I faced blackout issue when I forgot to call glActiveTexture().


    For setting a texture to shader follow the below steps:
    glGetUniformLocationARB( m_hProgramObject, TextureName );...
  22. Replies
    14
    Views
    6,277

    Re: Can't get rid of tearing

    I also faced the same problem of tearing effect when rendering more than 60 frames in a second.

    Even if u displaying 100 frames( 100 swapbuffer ) in a second, monitor copies front buffer to...
  23. Thread: grid mesh

    by GL Starter
    Replies
    5
    Views
    2,875

    Re: grid mesh

    Give color to each vertex, then these colors will be interpolated.

    Try the below code. It will create a Quad with four colors interpolated.

    glClear( GL_COLOR_BUFFER_BIT );

    ...
  24. Replies
    7
    Views
    2,746

    Re: Grabbing framebuffer pixels

    Yes, its possible to do make more than one render target at same time.

    I got good idea about FBO from this:
    http://www.songho.ca/opengl/gl_fbo.html
  25. Replies
    4
    Views
    1,724

    Re: mixing two seperately rendered frames

    Create framebuffer bind with a texture. Please Use glFramebufferTexture2DEXT.
    Then render ice and snow to separate textures.
    For combining, create a pixel shader to combine these textures.
Results 1 to 25 of 34
Page 1 of 2 1 2