31 #ifndef VP_PANDA3D_RGB_RENDERER_H
32 #define VP_PANDA3D_RGB_RENDERER_H
34 #include <visp3/core/vpConfig.h>
36 #if defined(VISP_HAVE_PANDA3D)
38 #include <visp3/ar/vpPanda3DBaseRenderer.h>
39 #include <visp3/ar/vpPanda3DLight.h>
40 #include <visp3/core/vpImage.h>
42 #include "pointerTo.h"
104 void setupRenderTarget() VP_OVERRIDE;
106 virtual std::
string makeFragmentShader(
bool hasTexture,
bool specular);
109 bool m_showSpeculars;
110 PointerTo<Texture> m_colorTexture;
111 PointerTo<GraphicsOutput> m_colorBuffer;
112 static const
char *COOK_TORRANCE_VERT;
113 static const
char *COOK_TORRANCE_FRAG;
115 NodePath m_backgroundImage;
116 PointerTo<DisplayRegion> m_display2d;
117 PointerTo<Texture> m_backgroundTexture;
Base class for a panda3D renderer. This class handles basic functionalities, such as loading object,...
virtual void setupScene()
Initialize the scene for this specific renderer.
virtual void addNodeToScene(const NodePath &object)
Add a node to the scene. Its pose is set as the identity matrix.
Implementation of vpPanda3DLightable for a panda scene with a root node.
Implementation of a traditional RGB renderer in Panda3D.
GraphicsOutput * getMainOutputBuffer() VP_OVERRIDE
bool isShowingSpeculars() const
vpPanda3DRGBRenderer()
Default constructor. Initialize an RGB renderer with the normal rendering behavior showing speculars.
virtual ~vpPanda3DRGBRenderer()=default
vpPanda3DRGBRenderer(bool showSpeculars)
RGB renderer constructor allowing to specify whether specular highlights should be rendered or if onl...