How to get the first pass of a scene (SceneProcessor)

Hi guys!

Is it possible to get first pass of a scene rendered to Texture2D? For the SceneProcessor.
Like in Filter i can get the first Pass.

Something like in preFrame() or PostQueue() or initialize() methods:
[java]viewPort.getOutputBuffer().getColorTexture(); // not correct code[/java]

Thanks.

You have to render the scene to a a FrameBuffer
Look at TestRenderToTexture

1 Like
@nehon said: You have to render the scene to a a FrameBuffer Look at TestRenderToTexture

Ok, i get you thanks!

Another question is how to render a viewport less than tpf speed?

Here I render viewport but i get the same result:
[java]
renderManager.renderViewPort(myView, tpf); // default
[java]renderManager.renderViewPort(myView, tpf*0.1f); // the same result as default. it renders like tpf
[/java]

Is it a bug or i do something wrong?

I use nightlie builds.

Thanks.