Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know preparing mount points and the like. But what's the best way to prevent Z fighting with customizations close to moving parts like elbows and knees?

share|improve this question
What is the platform? OpenGL/DirectX or something else? – Jonathan Fischoff Oct 27 '10 at 6:55
Well this is mostly a general question of how to prepare 3d avatars for customizables most likely clothes like pants and long sleeves as those are the ones that are gonna be affected by animations most of the time due to being near the joints. – Wight Oct 27 '10 at 7:45

Here are some ways to prevent z fighting.

  • Make the near and far planes close together and the space between clothing parts as far as possible.
  • Depending on the types of animations and the situation it might be possible to disable z testing/writing and rely on painters algorithm.
  • Write a screen capture app. Go through your characters and animations and have your artist adjust the animations if there are problems.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.