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

Search: Search took 0.00 seconds.

  1. unofficial opengl sdk - loading shader from files directly

    hello, i'm reading tutorials from http://www.arcsynthesis.org/gltut/Positioning/Tutorial%2007.html great articles. it uses its own utility funcs to load shader from files, i check the glsdk only...
  2. Replies
    3
    Views
    1,363

    Re: Weird Error: shader is invalid

    thank you, i make a mistake in the code, but that is not the cause.
  3. Replies
    3
    Views
    1,363

    Weird Error: shader is invalid

    hello,
    class ShaderProgram {
    public:
    ShaderProgram(GLuint id) {
    m_uiProgramID = id;
    }
    GLuint programID() {
    return m_uiProgramID;
    }
    }; // this class is defined in another file
  4. Replies
    3
    Views
    7,078

    Re: how to draw wireframe polygon

    for example, the mesh has a triangle, a quad and a polygon, do i need to :
    glDrawElements(GL_TRIANGLE, .... tri_index);
    glDrawElements(GL_TRIANGLE, .... quad_index);
    glDrawElements(GL_TRIANGLE,...
  5. Replies
    3
    Views
    7,078

    how to draw wireframe polygon

    hello,
    i have a mesh with triangles and quads and polygons, in order to render the edges of the mesh, i need to render polygons (so do not convert to all triangles) and i konw the way using...
  6. Thread: UV subdivision

    by cjren
    Replies
    2
    Views
    1,682

    Re: UV subdivision

    linear interpolation seems not good enough, maybe result in distoration, see the link :-)
    http://en.9jcg.com/comm_pages/blog_content-art-39.htm
  7. Thread: UV subdivision

    by cjren
    Replies
    2
    Views
    1,682

    UV subdivision

    Hello, i'm implementing the catmull-clark subdivision algorithm, and the direct11sdk seems to have a demo about that.

    i have question when deal with the uv calculation.
    if a mesh unwrapped to...
  8. Replies
    5
    Views
    1,663

    Re: deconstruct the Renderer and the Window

    ok, i got some info:

    Device Contexts:
    a windows data structure containing information about the drawing attributes of a device
    - Each window has a device context to receive the graphics output...
  9. Replies
    5
    Views
    1,663

    Re: deconstruct the Renderer and the Window

    thank you again:-)
    it has more details in chapter2 of [Beginning Opengl game programming].

    another question:
    what is the relation between GDI and device context and render context?
  10. Replies
    5
    Views
    1,663

    Re: deconstruct the Renderer and the Window

    thank you scratt.

    actually, what the "view" means? is it somewhat like the QGLWidget?
    It encapsulate most of the opengl commands, does it can be seen as the "view" resides inside the...
  11. Replies
    5
    Views
    1,663

    deconstruct the Renderer and the Window

    Hello,

    question about the framework using opengl renderer.
    do the renderer class have information about the Window(Win32Window, QMainWindow for example), using maybe pointer to it, to perform the...
  12. Thread: Quad vs Tri ??

    by cjren
    Replies
    6
    Views
    4,104

    Re: Quad vs Tri ??

    in mudbox/maya, they use quads. and the subdivision surface algorithm for quads are more popular than triangles in modeling and animation.
    an digital artist said they use quads only.
    the reason is...
  13. Thread: Quad vs Tri ??

    by cjren
    Replies
    6
    Views
    4,104

    Quad vs Tri ??

    Hello,

    in gl it's not recommended to use quads to render, because a quad will decompose to two triangles, right? [from Q&A 14.080 of...
Results 1 to 13 of 13