Panda3D Manual: AntialiasingAntialiasingIt is recommended to include: #include "antialiasAttrib.h"
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:
nodePath.set_antialias(AntialiasAttrib::M_none); 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 window->get_render().set_antialias(AntialiasAttrib::M_auto);
In order for multisample antialiasing to work, you have to have multisample bits available in your framebuffer. To request this, add: framebuffer-multisample 1 to your Config.prc file. Note that not all graphics cards have this capability. You may also be able to request more multisamples, such as 4 or 8, depending on your graphics card. If your card can provide additional samples, it produces a higher-quality antialiasing, at a small cost to render time. The function © Carnegie Mellon University 2010 |