Jump to content
  • Advertisement
Sign in to follow this  
Raeldor

Indexed Primitive Drawing... Just Simple?

This topic is 4850 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ignoring shaders, am I right in saying that indexed primitive drawing in DirectX is a pretty simple implementation? I mean, it seems all the data is attached to the vertices, whereas some of it (such as the UV's) would be better attached to the indexed faces. Looking at the API, it seems that the indexing is just a basic list of vertex indexes for each triangle. Is this a fair statement or am I missing something? Thanks Ray

Share this post


Link to post
Share on other sites
Advertisement
Quote:
it seems all the data is attached to the vertices


That's the way, gfx card handle the data. Even in OpenGL uv's are
attached to the vertices. If you need more than one uv per vertex
you will have to duplicate them.

Quote:
it seems that the indexing is just a basic list of vertex indexes for each triangle


indeed. How did you come to that conclusion? ;)
however, depending on the primitive you're drawing (tri-list, tri-strip, tri-fan), the indices have to be in a specific order.

Share this post


Link to post
Share on other sites
Quote:
Original post by Madhed
Quote:
it seems all the data is attached to the vertices


That's the way, gfx card handle the data. Even in OpenGL uv's are
attached to the vertices. If you need more than one uv per vertex
you will have to duplicate them.

Quote:
it seems that the indexing is just a basic list of vertex indexes for each triangle


indeed. How did you come to that conclusion? ;)
however, depending on the primitive you're drawing (tri-list, tri-strip, tri-fan), the indices have to be in a specific order.


Haha, ok I asked for that last one, lol. By specific order, are you talking about the winding order for backface culling? Or that tri-strip needs less indexes (ie, not 3 per face like tri-list)?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!