I get back my filters : FXAA and Bloom, but the instrument is also cover with the shadow filter. Plus I have a z-buffer issue between the instrument parts.
I’ve tried to use the TranslucentBucketFilter, adding it to the FilterPostProcessors after the shadow filters and before the bloom/FXAA, after reading the render bucket wiki page. This has not changed anything.
I can’t see any perfect solution to implement this feature perfectly, however it seems to be a classic thing. I would be glad to get explanations, advice and exemples if you have !
Camera c = app.getCamera().clone();
c.setViewPort(0, 1f, 0, 1f);
ViewPort viewPort2 = app.getRenderManager().createMainView("test", c);
And this produce an exception :
java.lang.IllegalStateException: Scene graph is not properly updated for rendering.
State was changed after rootNode.updateGeometricState() call.
Make sure you do not modify the scene from another thread!
Problem spatial name: PlanarStanceInstrumentState view
at java.lang.Thread.run(Unknown Source)
I’ve controlled every call of the myInstrumentNode, adding some Thread.currentThread() at each. It’s always done in the jMonkey LWJGL thread.
Do you know what can lead to such exception?
Another question : how will I draw the second view port above the main one? By turning some transparency on?
I’d try writing my own postprocessor and special material for such utility geometry but don’t know if it will really work - I have similar task deep in my own ToDo list but had no chance to verify assumptions using real code.