Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: model format

  1. #1
    Intern Newbie
    Join Date
    Mar 2006
    Location
    Europe
    Posts
    35

    model format

    Hi,

    Same problem as last time: I've got a model, saved as definitions of triangles (not strips or fan) and points (position, TexCoord, and normal).

    The model is static (body parts for skeletal animation), and I need to render it fast.

    I tried with glDrawElement, but situation when position, TexCoord, and normal of two points are same, is rare.

    Any ideas how to do it?
    Compile a display list?
    Will it help much?

    Someone said something about VBOs. Unfortunatley, in my country, there are only two books about OGL on market, and there is nothing about it in any.
    What is it, how to use it? Will it help?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    May 2005
    Location
    Prague, Czech Republic
    Posts
    924

    Re: model format

    Someone said something about VBOs. Unfortunatley, in my country, there are only two books about OGL on market, and there is nothing about it in any.
    What is it, how to use it? Will it help?
    VBOs are buffers managed by graphics card driver (so they may be stored in video memory) which contain data like ordinary OGL vertex array would. In fact the most of the setup is same regardless if memory based vertex arrays or VBOs are used.
    There is Nehe tutorial describing how they are used.

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,052

    Re: model format

    All extensions:
    http://oss.sgi.com/projects/ogl-sample/registry/

    VBO Spec:
    http://oss.sgi.com/projects/ogl-samp...fer_object.txt

    And to get started with extensions easily, try out GLEW, one function call and you can use VBOs.

    Jan.
    GLIM - Immediate Mode Emulation for GL3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •