20#include <osg/Texture2D>
21#include <osgText/Text>
39 coVRDePee(osg::Group* parent, osg::Node* subgraph,
unsigned width=100,
unsigned height=100);
99 bool createMap(
MapMode mapMode,
bool first=
false);
104 bool createNoiseMap();
111 bool createNormalDepthColorMap(
MapMode mapMode,
bool first);
117 bool createEdgeMap(
bool first);
133 unsigned int getNumberOfRenderPasses();
140 bool readFile(
const char* fName, std::string& s);
145 std::string toString(
double d);
151 osg::Program* createProgram(std::string vs, std::string fs);
157 double getNoise(
unsigned x,
unsigned y,
unsigned random);
163 double smoothNoise(
unsigned width,
unsigned height,
unsigned x,
unsigned y,
unsigned char* noise);
168 osg::Texture2D* newColorTexture2D(
unsigned width,
unsigned height,
unsigned accuracy);
173 osg::Geode* getCanvasQuad(
unsigned width,
unsigned height,
double depth=-1);
181 osg::ref_ptr<osg::Group> _parent;
182 osg::ref_ptr<osg::Node> _subgraph;
183 osg::ref_ptr<osg::Texture2D> _noiseMap;
184 osg::ref_ptr<osg::Texture2D> _normalDepthMap0;
185 osg::ref_ptr<osg::Texture2D> _normalDepthMap1;
187 osg::ref_ptr<osg::Texture2D> _edgeMap;
189 osg::ref_ptr<osg::Texture2D> _colorMap;
191 osg::ref_ptr<osg::Geode> _quadGeode;
193 osgText::Text* _hudText;
196 std::vector<coVRDePeePass*> _coVRDePeePasses;
198 osg::Uniform* _sketchy;
199 osg::Uniform* _colored;
201 osg::Uniform* _sketchiness;
208 osg::Camera* _colorCamera;
211 osg::ref_ptr<osg::Program> _normalDepthMapProgram;
212 osg::ref_ptr<osg::Program> _colorMapProgram;
213 osg::ref_ptr<osg::Program> _edgeMapProgram;
Definition: ARToolKit.h:33
MapMode
Definition: coVRDePeePass.h:29
Definition: coVRDePee.h:34
coVRDePee(osg::Group *parent, osg::Node *subgraph, unsigned width=100, unsigned height=100)
void setSketchiness(double sketchiness)
void setCrayon(bool crayon)
void setColored(bool colored)
void setSketchy(bool sketchy)