Patch Troubleshooter

From The DarkMod Wiki
Jump to navigationJump to search

Introduction

This article is about how to fix various errors and problems you might encounter with patches. For general information about patches see Patches

Patch alignment tessellation error

by Komag

Patch tessellation.jpg

How do you deal with this problem where two curved patches will not align?

The problem is caused by the number of sections in each patch not matching, ie, it's the "Tesselation" of the patch curve. In many cases such as that one where you are matching up a cap or flat top curve with a vertical wall patch that bends, you will want to set them both to "Fixed Subdivisions"

  • Select one of the patches
  • Open the "Patch Inspector" by pressing "Shift+S"
  • Near the bottom check the box next to "Fixed Subdivisions"

(You should suddenly see the patch go somewhat "square")

  • Experiment cranking up the Horizontal or Vertical number until you get desired curvature
  • Repeat steps for the matching patch and set either Horizontal or Vertical to the same number.

(In the second patch it may not be the same Horizontal or Vertical, i.e. it could be the opposite)