Forgot your password?
Or sign in with one of these services
Code-R, September 5, 2005 in Graphics and GPU Programming
This topic is 4819 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.
duantouStarted Tuesday at 09:57 AM
irreversibleStarted Monday at 02:46 PM
MidnightPacificStarted Friday at 05:41 PM
babaliarisStarted Friday at 03:38 PM
CyberFlashStarted November 9
There are no registered users currently online
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!