Results 1 to 3 of 3

Thread: Question about glnterleavedArrays

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    HK
    Posts
    4

    Question about glnterleavedArrays

    I want to ask how many float values should I put into the pointer(float *vertex) if I use GL_V3F and GL_V3F_N3F in glInterleavedArrays(GL_V3F, 0, vertex)?
    I am using GL_V3F and put 9 float values into the pointer but see nothing now. Can anyone please kindly answer my question. Urgent. Thanks.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Turin
    Posts
    258

    Re: Question about glnterleavedArrays

    You should put as many float as defined by GL_* enum, for example if you use GL_V3F_N3F you should put 3 float for the vertex coords and 3 float for normal coords for every vertex you want to submit.

    How do u render the array after setting the pointer with glInterleavedArrays ?

    rIO http://www.spinningkids.org/umine
    [rIO^sPINNING kIDS] - rio@nospam.spinningkids.org

    -/- This is a signature virus. Add it to your signature. Help it spreading! -/-

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    HK
    Posts
    4

    Re: Question about glnterleavedArrays

    Thanks for your reply. I am using glDrawArrays(GL_TRIANGLES,0,4092*3); to draw the triangle mesh. I have one more question. If I have more then 2 triangle mesh and I want to detect all of their interaction point. What alorigthm should I use? I am now using for loop to compare each vertices but the performance is very slow.

Similar Threads

  1. Replies: 5
    Last Post: 04-23-2018, 12:03 AM
  2. Texture question and sphere question...
    By detzel in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-19-2001, 12:02 PM
  3. Matrix question (Not really an OGL Question)
    By KurtCob in forum OpenGL: Basic Coding
    Replies: 22
    Last Post: 04-04-2001, 07:55 AM
  4. Quake3 bsp question (not really openGL question)
    By ribblem in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 01-15-2001, 10:13 AM
  5. Replies: 2
    Last Post: 01-08-2001, 03:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean