20 #include <osg/Texture2D>
21 #include <osgText/Text>
33 class COVEREXPORT
coVRDePee :
public osg::Referenced
39 coVRDePee(osg::Group* parent, osg::Node* subgraph,
unsigned width=100,
unsigned height=100);
53 void setSketchy(
bool sketchy);
58 void setCrayon(
bool crayon);
63 void setColored(
bool colored);
68 void setEdgy(
bool edgy);
73 void setSketchiness(
double sketchiness);
78 void setFPS(
double* fps);
83 bool addcoVRDePeePass();
88 bool remcoVRDePeePass();
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;
MapMode
Definition: coVRDePeePass.h:29
Definition: coVRDePee.h:33