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.01 seconds.

  1. Replies
    5
    Views
    1,154

    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?
  2. Replies
    5
    Views
    1,154

    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?
  3. It turns out that another library I am using was...

    It turns out that another library I am using was built with glut32.lib...
  4. (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...
  5. 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...
  6. Replies
    7
    Views
    2,012

    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...
  7. Replies
    7
    Views
    2,012

    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?
  8. Replies
    7
    Views
    2,012

    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...
  9. Replies
    0
    Views
    370

    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...
  10. 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
  11. 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];
    ...
  12. difference between the usage of GL_TEXTURE_3D and GL_TEXTURE_2D_ARRAY​

    They are the same to me?
    Are they interchangeable?
  13. 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;

    ...
  14. Replies
    8
    Views
    1,188

    Thanks all. I replaced ...

    Thanks all.

    I replaced


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

    with
  15. Replies
    8
    Views
    1,188

    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);...
  16. Replies
    8
    Views
    1,188

    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?
  17. Replies
    3
    Views
    1,016

    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 );
  18. Replies
    3
    Views
    1,016

    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...
  19. Replies
    3
    Views
    658

    Re: How does OpenGL rasterize pixels?

    Yes. But if I do not use it, I only get (0.49, 0.49, 0) at (357, 256). All the other locations are 0;
  20. Replies
    3
    Views
    658

    How does OpenGL rasterize pixels?

    I drew a pixel with color (0.5, 0.5, 0)at window location (357.2, 255.5) and then use glReadPixels() to read the pixel values from the following four locaitons, they are with their respective colors:...
  21. Replies
    0
    Views
    480

    Cannot correctly render sky box

    I want to render a skybox with the following cubemap:
    http://graphicsprojects.files.wordpress.com/2011/10/uffizi_gallery_original_image.jpg

    I defined a cube with the following code:

    ...
  22. orthographic projection matrix in GLTools

    I am using the library GLTools that comes with the book OpenGL SuperBible 5.

    The orthographic projection building function provided by this library is (in column-major order):


    void...
  23. Re: counterpart to "float4 uv[8] :TEXCOORD0" in GLSL

    Sorry, but it is a vertex shader output (an input for the fragment shader). See the original code here:


    void satHV(
    float4 position: POSITION,
    float2 inUV: TEXCOORD0,

    out float4...
  24. counterpart to "float4 uv[8] :TEXCOORD0" in GLSL

    I am implementing the Summed-Area Table algorithm. There is a statement


    float4 uv[8]:TEXCOORD0;

    in the shader code originally written in HLSL in Slide 9 in the following slides
    Summed-Area...
  25. Replies
    5
    Views
    668

    Re: feed the data into a texture

    Sorry, one more question...
    It seems that I cannot sample this texture in the shader.
    I use the following statement:


    vec3 value;
    value = texture(myTexture, index).rgb;

    but value is always...
Results 1 to 25 of 82
Page 1 of 4 1 2 3 4