Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

turbotank

indexed vertex arrays...

This topic is 5331 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

hi all, I know that vertices, normals, texcoods and colors can''t have seperate indexarrays, but is it possible to setup the indexarray just for the vertices and the normals? an short example: model is a simple pyramid (4 triangles) 4 vertices 4 normals 12 indices but if i want to map a texture, i need 12 "unique" texcoords which should not be accessed by the index array. is there a way to use indexed vertex arrays just for vertex and normal data and the "old" vertex array for texture coordinates? thank you in advance turbotank

Share this post


Link to post
Share on other sites
Advertisement
that is what i thought,

indexed arrays alow you to save over 50% of vertexdata (sphere, cube, symetric vehicles) but if you add textures which have in 90% of all models, no or very few dublicated uv coordinates you can''t use them.
This makes a modelloader whith indexed array support senseless. Or not?

turbotank

Share this post


Link to post
Share on other sites
quote:
Original post by turbotank
indexed arrays alow you to save over 50% of vertexdata (sphere, cube, symetric vehicles) but if you add textures which have in 90% of all models, no or very few dublicated uv coordinates you can''t use them.
This makes a modelloader whith indexed array support senseless. Or not?

Not. Most models won''t have many texture "seams"... that is, they won''t have many sets of vertices with the same position but different texture coordinates. Those few sets that have differences, you can just duplicate for each texture coordinate used.


"Sneftel is correct, if rather vulgar." --Flarelocke

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!