GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE is returned if the value of GL_RENDERBUFFER_SAMPLES is not the same for all attached renderbuffers; if the value of GL_TEXTURE_SAMPLES is the not same for all attached textures; or, if the attached images are a mix of renderbuffers and textures, the value of GL_RENDERBUFFER_SAMPLES does not match the value of GL_TEXTURE_SAMPLES.
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE is also returned if the value of GL_TEXTURE_FIXED_SAMPLE_LOCATIONS is not the same for all attached textures; or, if the attached images are a mix of renderbuffers and textures, the value of GL_TEXTURE_FIXED_SAMPLE_LOCATIONS is not GL_TRUE for all attached textures.
Maybe you already checked this, but are all those variable the same?
@nehon I already looked at that but I didnāt try to display the values of these variables to find the root cause, we should do it.
@normen I have not tested these classes but the NEWT canvas and the NEWT display are on the repository now. Mouse and keyboard input are not very smart, they do not need java.awt.Robot but they look like existing AWT implementations. I donāt know yet how to implement TouchInput.
Applets should work with the both canvases thanks to the brigde.
Some JogAmp contributors (including me) have to work on JInput and when it is ready, we will use JInput For JogAmp.
I still have to implement headless rendering and off-screen rendering.
@gouessej: You donāt need to implement TouchInput, its for touchscreens only. Headless rendering doesnāt require an OpenGL context so you donāt have to worry about it either.
@gouessej said: @normen Sven has just given me an example using touch input with NEWT, I just need to use a mouse listener :)
Heh, interesting. We are looking into mapping mouse and touch via one input but it turns out that in a real app/game one probably wants to address both environments separately. We do have a touch input interface in core for such stuff as well. But the mouse input "wrapping" is also in place so theres use for that too :)
mhhhā¦there might be other issues though, the skybox is not rendered, or at least itās black , and there is an unbearable lag when you move the cam. (best noticed in 1280x720 or higher)
the framerate display numbers around 200, but when the water pools are in the view you can feel this lag.
This is not the case with the lwjgl renderer.
Maybe you re-attach the frame buffer on each frame?
@nehon Thanks for the fix. Maybe I did another mistake, you are probably right, I will have to investigate a bit more.
@normen I can hardly handle them separately or I have to check if touch input is supported to know whether to provide a TouchInput implementation and no MouseInput implementation or the opposite.
@normen MouseEvent.getPressure() seems to return 0 when coming from a real mouse. Therefore, I will return both a TouchInput implementation and a MouseInput implementation even though the former will produce no JMonkeyEngine specific event with no touch screen. This TouchInput implementation will probably use 2 delegates, depending on whether āsimulateMouseā is set to true.
@gouessej: I donāt think it is necessary to simulate touch input on desktop. The mouse simulation on Android is only done to be compatible with older jME3 apps before touch input was implemented.
@Momoko_Fan said: @gouessej: I don't think it is necessary to simulate touch input on desktop. The mouse simulation on Android is only done to be compatible with older jME3 apps before touch input was implemented.
Ok thanks. I have no tablet under GNU Linux to test NEWT X11 driver, I can't even make some tests.
@gouessej: Regarding offscreen buffer support, you donāt have to check for FBO availability. Offscreen buffers should be implemented by using pbuffers in both JOGL and LWJGL. This means that supporting OpenGL2/FBO is not required for offscreen buffer support.
@Momoko_Fan said: @gouessej: Regarding offscreen buffer support, you don't have to check for FBO availability. Offscreen buffers should be implemented by using pbuffers in both JOGL and LWJGL. This means that supporting OpenGL2/FBO is not required for offscreen buffer support.
Ok I will have to refine my tests but some people might want to use the renderer based on the fixed pipeline with this off-screen buffer.
@gouessej said:
Ok I will have to refine my tests but some people might want to use the renderer based on the fixed pipeline with this off-screen buffer.
Sven asked me to replace GL2 by GL2GL3. Why is glAlphaFunc still used in the renderer based on the programmable pipeline? This is the single call that is probably not supported by OpenGL-ES 2.0 in this renderer.
@gouessej: glAlphaFunc is a special caseā¦ There are many people who still use it in the RenderState even though they shouldnāt cause its gone in OGL3 and Android. All of the jME3 core shaders do it properly by using an alpha discard threshold and do not rely on glAlphaFunc. On the other hand for OpenGL1 we have bindings that allow you to bind the alpha discard threshold parameter into the fixed binding which ends up in a call to glAlphaFunc.
We can support it on desktop, by checking if the GL is GL2 and if so enabling alpha func. However I think we should have some sort of warning shown so that users know not to rely on it in the future.
@Momoko_Fan said: @gouessej: glAlphaFunc is a special case... There are many people who still use it in the RenderState even though they shouldn't cause its gone in OGL3 and Android. All of the jME3 core shaders do it properly by using an alpha discard threshold and do not rely on glAlphaFunc. On the other hand for OpenGL1 we have bindings that allow you to bind the alpha discard threshold parameter into the fixed binding which ends up in a call to glAlphaFunc.
We can support it on desktop, by checking if the GL is GL2 and if so enabling alpha func. However I think we should have some sort of warning shown so that users know not to rely on it in the future.
Slightly off topic: Unshaded does not have an alpha discard threshold. It should probably be added... and BitmapFont's loader should probably be setup to turn it on so that text doesn't z-fight with itself.
As it is, alpha test is still required in some cases.
Btw @gouessej , feel free to tell @sgothel heās more than welcome to join us in this thread It seems the two of you are actively communicating, which is great, but itād be even greater if his input was provided in this thread directly. That way thereās less branching of the discussion and fewer details left out.