Search in sources :

Example 36 with Renderer

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());
}
Also used : Renderer(com.jme3.renderer.Renderer)

Example 37 with Renderer

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);
    }
}
Also used : HDRRenderer(com.jme3.post.HDRRenderer)

Example 38 with Renderer

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());
}
Also used : HDRRenderer(com.jme3.post.HDRRenderer)

Example 39 with Renderer

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);
}
Also used : Renderer(com.jme3.renderer.Renderer)

Example 40 with Renderer

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");
}
Also used : GLExt(com.jme3.renderer.opengl.GLExt) GLFbo(com.jme3.renderer.opengl.GLFbo) GLRenderer(com.jme3.renderer.opengl.GLRenderer) IosInputHandler(com.jme3.input.ios.IosInputHandler) GL(com.jme3.renderer.opengl.GL) IosGL(com.jme3.renderer.ios.IosGL) IosGL(com.jme3.renderer.ios.IosGL) GLDebugES(com.jme3.renderer.opengl.GLDebugES)

Aggregations

Renderer (com.jme3.renderer.Renderer)17 Camera (com.jme3.renderer.Camera)7 Vector3f (com.jme3.math.Vector3f)5 Material (com.jme3.material.Material)4 SceneProcessor (com.jme3.post.SceneProcessor)3 RendererException (com.jme3.renderer.RendererException)3 GLExt (com.jme3.renderer.opengl.GLExt)3 GLFbo (com.jme3.renderer.opengl.GLFbo)3 GLRenderer (com.jme3.renderer.opengl.GLRenderer)3 Uniform (com.jme3.shader.Uniform)3 CartoonSSAO (com.jme3.post.CartoonSSAO)2 Filter (com.jme3.post.Filter)2 FilterPostProcessor (com.jme3.post.FilterPostProcessor)2 HDRRenderer (com.jme3.post.HDRRenderer)2 FogFilter (com.jme3.post.filters.FogFilter)2 TranslucentBucketFilter (com.jme3.post.filters.TranslucentBucketFilter)2 SSAOFilter (com.jme3.post.ssao.SSAOFilter)2 Caps (com.jme3.renderer.Caps)2 RenderManager (com.jme3.renderer.RenderManager)2 LwjglGL (com.jme3.renderer.lwjgl.LwjglGL)2