use of com.jme3.renderer.Renderer in project jmonkeyengine by jMonkeyEngine.
the class CartoonEdgeFilter method postQueue.
@Override
protected void postQueue(RenderQueue queue) {
Renderer r = renderManager.getRenderer();
r.setFrameBuffer(normalPass.getRenderFrameBuffer());
renderManager.getRenderer().clearBuffers(true, true, true);
renderManager.setForcedTechnique("PreNormalPass");
renderManager.renderViewPortQueues(viewPort, false);
renderManager.setForcedTechnique(null);
renderManager.getRenderer().setFrameBuffer(viewPort.getOutputFrameBuffer());
}
use of com.jme3.renderer.Renderer in project jmonkeyengine by jMonkeyEngine.
the class TestEverything method setupHdr.
public void setupHdr() {
if (renderer.getCaps().contains(Caps.GLSL100)) {
hdrRender = new HDRRenderer(assetManager, renderer);
hdrRender.setMaxIterations(40);
hdrRender.setSamples(settings.getSamples());
hdrRender.setWhiteLevel(3);
hdrRender.setExposure(0.72f);
hdrRender.setThrottle(1);
// setPauseOnLostFocus(false);
// new HDRConfig(hdrRender).setVisible(true);
viewPort.addProcessor(hdrRender);
}
}
use of com.jme3.renderer.Renderer in project jmonkeyengine by jMonkeyEngine.
the class TestHDR method simpleInitApp.
// private Material disp;
@Override
public void simpleInitApp() {
hdrRender = new HDRRenderer(assetManager, renderer);
hdrRender.setSamples(0);
hdrRender.setMaxIterations(20);
hdrRender.setExposure(0.87f);
hdrRender.setThrottle(0.33f);
viewPort.addProcessor(hdrRender);
// config.setVisible(true);
rootNode.attachChild(createHDRBox());
}
use of com.jme3.renderer.Renderer in project jmonkeyengine by jMonkeyEngine.
the class TestDepthStencil method simpleRender.
@Override
public void simpleRender(RenderManager rm) {
Renderer r = rm.getRenderer();
//do FBO rendering
r.setFrameBuffer(fb);
// FBO uses current camera
rm.setCamera(cam, false);
r.clearBuffers(true, true, true);
rm.renderScene(fbNode, viewPort);
rm.flushQueue(viewPort);
//go back to default rendering and let
//SimpleApplication render the default scene
r.setFrameBuffer(null);
}
use of com.jme3.renderer.Renderer in project jmonkeyengine by jMonkeyEngine.
the class IGLESContext method create.
@Override
public void create(boolean waitFor) {
logger.log(Level.FINE, "IGLESContext create");
GL gl = new IosGL();
GLExt glext = (GLExt) gl;
// if (settings.getBoolean("GraphicsDebug")) {
gl = new GLDebugES(gl, glext, (GLFbo) glext);
glext = (GLExt) gl;
// }
renderer = new GLRenderer(gl, glext, (GLFbo) glext);
renderer.initialize();
input = new IosInputHandler();
timer = new NanoTimer();
//synchronized (createdLock){
created.set(true);
//createdLock.notifyAll();
//}
listener.initialize();
if (waitFor) {
//waitFor(true);
}
logger.log(Level.FINE, "IGLESContext created");
}
Aggregations