Home    Features    Download    Screenshots    Manual    Reference    Forums    License    Contact   
 
  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)
np.setAntialias(AntialiasAttrib.MPoint)
np.setAntialias(AntialiasAttrib.MLine)
np.setAntialias(AntialiasAttrib.MPolygon)
np.setAntialias(AntialiasAttrib.MMultisample)
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>>     
.
screenshot
Improvisational acting techniques are used to improve character behavior
screenshot
Student Recreation of "Colossus"
screenshot
Kotodama: an RPG in which Japanese words have power