Forgot your password?
Or sign in with one of these services
Code-R, September 5, 2005 in Graphics and GPU Programming
This topic is 4889 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.
In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.
(You must login to your GameDev.net account.)
khawkStarted 11 hours ago
DavveTheGamerStarted 12 hours ago
acerskylineStarted Monday at 07:00 AM
sulimanStarted Sunday at 08:04 PM
JosheirStarted Sunday at 06:57 PM
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.