Forgot your password?
Or sign in with one of these services
, September 5, 2005 in Graphics and GPU Programming
This topic is 4552 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.
///////////////////////////////////////////////////////////////////////////////////////// RemapIndices()//// Function to remap your indices to improve spatial locality in your vertex buffer.//// in_primGroups: array of PrimitiveGroups you want remapped// numGroups: number of entries in in_primGroups// numVerts: number of vertices in your vertex buffer, also can be thought of as the range// of acceptable values for indices in your primitive groups.// remappedGroups: array of remapped PrimitiveGroups//// Note that, according to the remapping handed back to you, you must reorder your // vertex buffer.//// Credit goes to the MS Xbox crew for the idea for this interface.//
Quote:Original post by coelurusThat function is only a few rows of code [smile]. What it does is it loops through all input primitives and tracks the vertex usage throughout. The resulting output primitives point to vertices in the order they appear. So, to "optimize", move around vertices according to the diff between the input and output primitives.
Started 23 hours ago
Started Yesterday at 12:31 AM
Started Monday at 10:28 AM
Started Sunday at 06:22 PM
Swift Katana Studios
Started Sunday at 05:45 PM
Create an account with GameDev.net and join the game development conversation on our forums, blogs, articles, and more!