Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Vertex Attributes

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

    Re: Vertex Attributes

    Ok, i've been an idiot, but now i got it to work.

    In glVertexAttribPointer i passes as "size" (second parameter) the size of the array in bytes.

    However it does expect the number of components of the attribute (1,2,3 or 4). And due to some tests, the code that also contained "glGetError" was commented out, which meant, that i didn't see the "invalid value" error, that GL threw at me.

    Thanks for all your help and clarifications!

    Back to speed optimizations...

    Jan.
    GLIM - Immediate Mode Emulation for GL3

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

    Re: Vertex Attributes

    Is it possible, that generic vertex attributes are not well supported under nVidia? I got my code working just fine on ATI now, but on a friends PC with a Geforce 7 i get corrupted output (polygons missing) and program crashes.

    Any other ideas, what could cause such behaviour? My rendering code is pretty much straight-forward.
    GLIM - Immediate Mode Emulation for GL3

  3. #13
    Junior Member Regular Contributor
    Join Date
    Oct 2004
    Posts
    153

    Re: Vertex Attributes

    i have worked a lot with these vertex attributes - no problems on nvidia till now

  4. #14
    Junior Member Regular Contributor
    Join Date
    Mar 2007
    Location
    Latvia
    Posts
    225

    Re: Vertex Attributes

    Same for me - no problems with vertex attributes on both ATI and Nvidia.

Posting Permissions

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