class OSGFX_EXPORT osgFX::Cartoon

This effect implements a technique called 'Cel-Shading' to produce a cartoon-style (non photorealistic) rendering.

Inheritance:


Public Methods

[more] Cartoon()
[more] Cartoon(const Cartoon &copy, const osg::CopyOp &copyop = osg::CopyOp::SHALLOW_COPY)
[more] META_Effect( osgFX, Cartoon, "Cartoon", "This effect implements a technique called 'Cel-Shading' to produce a " "cartoon-style (non photorealistic) rendering. Two passes are required: " "the first one draws solid surfaces, the second one draws the outlines. " "A vertex program is used to setup texture coordinates for a sharp lighting " "texture on unit 0 which is generated on-the-fly.\n" "This effect requires the ARB_vertex_program extension " "or OpenGL Shading Language.", "Marco Jez; OGLSL port by Mike Weiblen")
[more]inline const osg::Vec4& getOutlineColor() const
get the outline color
[more]inline void setOutlineColor(const osg::Vec4 &color)
set the outline color
[more]inline float getOutlineLineWidth() const
get the outline line width
[more]inline void setOutlineLineWidth(float w)
set the outline line width
[more]inline int getLightNumber() const
get the OpenGL light number
[more]inline void setLightNumber(int n)
set the OpenGL light number that will be used in lighting computations

Protected Methods

[more]virtual ~Cartoon()
[more]Cartoon& operator=(const Cartoon &)
[more]bool define_techniques()


Inherited from Effect:

Public Classes

oenum TechniqueSelection

Public Methods

ovirtual inline bool isSameKindAs(const osg::Object* obj) const
ovirtual inline const char* libraryName() const
ovirtual inline const char* className() const
ovirtual const char* effectName() const
ovirtual const char* effectDescription() const
ovirtual const char* effectAuthor() const
oinline virtual void setUpDemo()
ovirtual void traverse(osg::NodeVisitor &nv)
oinline bool getEnabled() const
oinline void setEnabled(bool v)
oinline int getNumTechniques() const
oinline Technique* getTechnique(int i)
oinline const Technique* getTechnique(int i) const
oinline int getSelectedTechnique() const
oinline void selectTechnique(int i)
oinline void addTechnique(Technique* tech)
oinline void dirtyTechniques()
oinline void inherited_traverse(osg::NodeVisitor &nv)


Documentation

This effect implements a technique called 'Cel-Shading' to produce a cartoon-style (non photorealistic) rendering. Two passes are required: the first one draws solid surfaces, the second one draws the outlines. A vertex program is used to setup texture coordinates for a sharp lighting texture on unit 0 which is generated on-the-fly. This effect requires the ARB_vertex_program extension.
o Cartoon()

o Cartoon(const Cartoon &copy, const osg::CopyOp &copyop = osg::CopyOp::SHALLOW_COPY)

o META_Effect( osgFX, Cartoon, "Cartoon", "This effect implements a technique called 'Cel-Shading' to produce a " "cartoon-style (non photorealistic) rendering. Two passes are required: " "the first one draws solid surfaces, the second one draws the outlines. " "A vertex program is used to setup texture coordinates for a sharp lighting " "texture on unit 0 which is generated on-the-fly.\n" "This effect requires the ARB_vertex_program extension " "or OpenGL Shading Language.", "Marco Jez; OGLSL port by Mike Weiblen")

ovirtual ~Cartoon()

oCartoon& operator=(const Cartoon &)

obool define_techniques()

oinline const osg::Vec4& getOutlineColor() const
get the outline color

oinline void setOutlineColor(const osg::Vec4 &color)
set the outline color

oinline float getOutlineLineWidth() const
get the outline line width

oinline void setOutlineLineWidth(float w)
set the outline line width

oinline int getLightNumber() const
get the OpenGL light number

oinline void setLightNumber(int n)
set the OpenGL light number that will be used in lighting computations


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.