Re: [osg-users] How can I embed OSG into imgui as a widget ?

2019-10-03 Thread Riccardo Corsi
Hi Jishen, if by ImGui you refer to the Dear Imgui library , what you're after is pretty odd, as ImGui is specifically designed to be embedded in other applications with their own rendering backend. This is why the library does create a window handle, nor is able

Re: [osg-users] Integrate Qt into OSG - not OSG into Qt osgQt

2019-10-03 Thread Raymond de Vries
Hi, Wrt Qt: you might be interested in the upcoming rendering interface abstraction where no direct OpenGL calls are made anymore. Not sure if it helps, let us know! Cheers, good luck, Raymond On 10/2/2019 8:02 PM, Jan Ciger wrote: Hello, On 02/10/2019 15:23, Trajce Nikolov NICK wrote: H

[osg-users] Image from shader

2019-10-03 Thread Lucas Amparo
Hi everyone, I'm trying to retrieve an image from a shader using OpenGL in OSG/OSGOcean. I can retrieve the depth from the simulation but can't access properly the color from each vertex. Using this code on *.vert Code: out vec3 pos out vec4 color void main() { pos = (gl_ModelViewMatrix * g

Re: [osg-users] Image from shader

2019-10-03 Thread Lucas Amparo
The depth works properly... -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76778#76778 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-us

Re: [osg-users] Image from shader

2019-10-03 Thread Lucas Amparo
An information: The image1.png was produced when I make something wrong on my shader and the compilation brokes. I believe which the default shader, from OSG take their place and rendering this image. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?

Re: [osg-users] Image from shader

2019-10-03 Thread Glenn Waldron
I think you want: gl_FragColor = color; Or, if you'd rather use the built-ins, get rid of your "out vec4 color" and write to gl_FrontColor in the vertex shader: gl_FrontColor = gl_Color; And read from gl_Color in the fragment shader: gl_FragColor = gl_Color; Glenn Waldron / osgEarth On Thu, Oc

Re: [osg-users] Image from shader

2019-10-03 Thread Lucas Amparo
Hi, thanks for the answer. changing color = gl_Color to gl_FrontColor = gl_Color and gl_FragColor = color to gl_FragColor = gl_Color same results :( -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76781#76781 __

Re: [osg-users] Image from shader

2019-10-03 Thread Chris Djali
Hi, I'm pretty sure you're not using your shaders at all. You're not setting gl_Position in the vertex shader, so it's not going to compile, and OSG will fall back to either its basic shader or fixed-function mode depending on how you've set it up. You should be seeing errors printed to the con