Skip to main content
gamedev.net
🔒 Locked

Difference between VB's & IB's

Started by HanSoL0 Mar 17, 2003 at 9:37 AM 4 replies 200+ views
Original Post
HanSoL0
HanSoL0
Simple question: what''s the difference between a vertex buffer and an index buffer? ~ Ryan
mickey
mickey
hello,

a vertex buffer will hold your vertices/data while the index buffer will hold the ''indices'' to your vertices which are contained in your vertex buffer,

http://www.dualforcesolutions.comProfessional website designs and development, customized business systems, etc.,
HanSoL0
HanSoL0
Just so I understand this correctly...

An index in my IB holds the number of vertex I am currently working with? For instance, the first vertex in the VB is at (1.3, 3.2, 5.0) and has the index of 0, the second vertex in my VB is at (0.0, 2.5, 2.0) and has the index of 1, and so on? Or am I completely wrong?

When I create a vertex buffer is an index buffer automatically created with it? What is the relationship between the two?

Thanks for the info,

~ Ryan
The Frugal Gourmet
The Frugal Gourmet
VBs are from Mars. IBs are from Venus.
Co-creator of Star Bandits -- a graphical Science Fiction multiplayer online game, in the style of "Trade Wars'.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.