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: shapeare

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds; generated 21 minute(s) ago.

  1. Replies
    2
    Views
    1,140

    How to disable auto-optimization for GLSL

    If I define a uniform variable in GLSL and do not use it in the main function, then at runtime there will be an error message saying "no such uniform named XXX". How to disable this kind of...
  2. Replies
    0
    Views
    1,866

    Ray-Line intersection test

    I need to test ray-line intersection in order to compute the hair self-shadow. Anyone know about this?
  3. Computing radiance in world space, object space or view space?

    What's the most convenient coordinate space to evaluate a shading model, say the Phong shading model in the shader program. Personally, the world space is the easiest, but people often do that in the...
  4. Replies
    1
    Views
    1,063

    Shader Program size limit

    It seems that when my shader program exceeds a certain number of lines, it will fail to compile. What's the size limit for a shader program?
  5. Replies
    8
    Views
    1,608

    Thanks a lot. I have never tried Lightwave...

    Thanks a lot. I have never tried Lightwave before. Did you do the projection by directly programming in Lightwave?
  6. Replies
    8
    Views
    1,608

    Thanks a lot. I have never tried Lightwave...

    Thanks a lot. I have never tried Lightwave before. Did you do the projection by directly programming in Lightwave?
  7. Replies
    8
    Views
    1,608

    Map a cube to a sphere

    I have a regular cube of edge length = 2, and a sphere of radius = 1. Each face of the cube has been divided into N*N equal-area squares. How can I compute the projected area of every square on the...
  8. Replies
    5
    Views
    3,162

    Can I model the NURBS surfaces in a 3rd-party...

    Can I model the NURBS surfaces in a 3rd-party software, export out as data sets and then rendered using OpenGL?
  9. Replies
    5
    Views
    3,162

    How to generate NURBS surfaces

    The red book introduces the evaluators to draw NURBS surfaces before OpenGL 3.1, however, the evaluators have been removed from OpenGL since version 3.1, how to draw NURBS surfaces then?
  10. It turns out that another library I am using was...

    It turns out that another library I am using was built with glut32.lib...
  11. (Solved!!!)problem with building 64 bit program with freeglut

    I am trying to build a 64 bit project with freeglut.

    I built the freeglut from source with visual studio's configuration setting to x64.

    then I added the newly built freeglut.lib as source...
  12. why there is an upper limite 60 fps for the frame rate?

    I tried calculating the framerate of my program by placing the following code in the Idle function, but never can it exceed 60 fps. And I am sure that the draw call in the rendering loop takes less...
  13. Replies
    7
    Views
    2,977

    Thanks for the replies. Thank you very...

    Thanks for the replies.




    Thank you very much. But I did not separate position and color into different VBOs. it works by only changing the offset for glVertexAttribPointer() of the position...
  14. Replies
    7
    Views
    2,977

    Thanks for your reply. What should I do?...

    Thanks for your reply.
    What should I do? Allocate the same size of space as the position buffer for the color buffer and repeat the color value five times?
    Is there any better solution for this?
  15. Replies
    7
    Views
    2,977

    the use of glDrawElementsBaseVertex()

    I am drawing an animated model of several frames. Say the model consists of 1000 vertices, and I want to render 5 frames.

    I stored the vertex positions of the five frames in a large buffer, the...
  16. Replies
    0
    Views
    579

    about CUDA computation time

    Can I say that the computation time for a CUDA program is determined by the longest time among all threads?

    For example, there are two algorithms A and B that complete the same task.
    Using A...
  17. But the call of GLFrame::GetMatrix() does not...

    But the call of
    GLFrame::GetMatrix() does not return an identity matrix by default. In fact, it is


    {-1, 0, 0, 0,
    0, 1, 0, 0,
    0, 0,-1, 0,
    0, 0, 0, 1
    }//in column major
  18. A question on the transformation pipeline in OpenGL superbible 5th

    The author used the following data structure for the convenience of representing a frame of reference (on Page 168 of the book)


    class GLFrame{
    protected:
    float vLocation[3];
    ...
  19. difference between the usage of GL_TEXTURE_3D and GL_TEXTURE_2D_ARRAY​

    They are the same to me?
    Are they interchangeable?
  20. how to lookup cube map texture array in GLSL

    My graphics driver supports OpenGL 4.2

    In the fragment program, I use the following code to lookup a cube map array:


    #version 420

    uniform samplerCubeArray cubes;

    ...
  21. Replies
    8
    Views
    1,959

    Thanks all. I replaced ...

    Thanks all.

    I replaced


    glFramebufferTextureLayer(GL_FRAMEBUFFER, fboAttachment[i], cubeTex, 0, i);

    with
  22. Replies
    8
    Views
    1,959

    Thanks. I followed your instruction but there is...

    Thanks. I followed your instruction but there is an error I cannot get through.

    The cube texture object is defined as:


    glActiveTexture(GL_TEXTURE7);
    glGenTextures(1, &cubeTex);...
  23. Replies
    8
    Views
    1,959

    how to use 6 2d textures as 1 cube texture

    I want to create a cube map, so I plan to render the six faces into six 2d textures within one rendering pass using MRT. But how to form a cube map texture with these 2d textures?
  24. Replies
    3
    Views
    1,669

    Do you know what does the uniform fres do in this...

    Do you know what does the uniform fres do in this line:


    vec4 pl = texture2D( tex1, gl_Color.xy*fres.xy );
  25. Replies
    3
    Views
    1,669

    Screen space ambient occlusion

    I am reading someone's code about SSAO, but there are some places I cannot understand.

    Their code for SSAO is extremely simple:



    uniform vec4 fk3f[32];
    uniform vec4 fres;
    uniform sampler2D...
Results 1 to 25 of 89
Page 1 of 4 1 2 3 4