Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > drawing element...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 4760 of 4895
Post > Topic >>

drawing elements: why only one index buffer

by sheam <shea08@[EMAIL PROTECTED] > May 21, 2008 at 02:38 AM

I am currently drawing using glDrawArrays. I am looking at using 
DrawElements instead.  But I notice that it would still require my 
normals and vertex coords to have a 1:1 relation****p.  Is there not a 
way to have a index buffer for verts-coords, and normals seperately?

i.e., drawing a triange face:

v[] = { 0,0,0,
         1,1,0,
         0,1,0 }

n[] = { 1,0,0
         1,0,0,
         1,0,0 }

I really only need one normal, but if I must use the same index for all, 
I am forced to use three.

Is there a technical reason? (i.e, h/w limations)

Am I missing something?

Thanks,

~S
 




 10 Posts in Topic:
drawing elements: why only one index buffer
sheam <shea08@[EMAIL P  2008-05-21 02:38:47 
Re: drawing elements: why only one index buffer
fungus <openglMYSOCKS@  2008-05-20 19:52:38 
Re: drawing elements: why only one index buffer
sheam <shea08@[EMAIL P  2008-05-21 23:24:03 
Re: drawing elements: why only one index buffer
Wolfgang Draxinger <wd  2008-05-21 10:49:27 
Re: drawing elements: why only one index buffer
sheam <shea08@[EMAIL P  2008-05-21 23:32:01 
Re: drawing elements: why only one index buffer
Wolfgang Draxinger <wd  2008-05-22 02:55:23 
Re: drawing elements: why only one index buffer
sheam <shea08@[EMAIL P  2008-05-22 04:21:26 
Re: drawing elements: why only one index buffer
Wolfgang Draxinger <wd  2008-05-23 01:20:32 
Re: drawing elements: why only one index buffer
"jbwest" <jb  2008-05-21 17:55:50 
Re: drawing elements: why only one index buffer
fungus <openglMYSOCKS@  2008-05-21 17:58:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Aug 29 23:31:57 CDT 2008.