Panda3D Manual: Antialiasing
  <<prev top next>>     

Antialiasing

The antialias attribute of a node controls what kind of antialiasing is to be applied to that node. To choose one of the various forms of antialiasing, invoke one of the following variants:

np.setAntialias(AntialiasAttrib.MNone)
<br>np.setAntialias(AntialiasAttrib.MPoint)
<br>np.setAntialias(AntialiasAttrib.MLine)
<br>np.setAntialias(AntialiasAttrib.MPolygon)
<br>np.setAntialias(AntialiasAttrib.MMultisample)
<br>np.setAntialias(AntialiasAttrib.MAuto)

In general, when rendering polygonal models, multisample antialiasing looks best. However, when rendering lines and points, it usually looks better to choose one of the specialized antialiasing modes. The MAuto setting automatically selects the kind that usually works best for the geometry in question.

The function clearAntialias can be used to remove the antialias setting. The function setAntialias takes an optional priority parameter, to control attribute overrides.

  <<prev top next>>