Forgot your password?
Or sign in with one of these services
Code-R, September 5, 2005 in Graphics and GPU Programming
This topic is 4672 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.
davejonesStarted Yesterday at 07:46 PM
jbadamsStarted Yesterday at 11:44 AM
LewaStarted Tuesday at 03:24 PM
deltaKshatriyaStarted Monday at 05:50 PM
VoidStarted Monday at 01:06 PM
Participate in the game development conversation and more when you create an account on GameDev.net!