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

2019-10-07 Thread Jishen Li
Thanks! It helped me. 


Chris Hanson wrote:
> This is usually pretty easy if you can expose an HWND (on Windows) of the UI 
> region that can be used to create an OpenGL context and passed to OSG's 
> GraphicsWindowEmbedded.
> 
> On Sun, Sep 29, 2019 at 4:32 AM Jishen Li < ()> wrote:
> 
> 
> > Hi,
> > 
> > I found people tried to embed ImGui into OSG, not vice verse. I am using 
> > OSG to render a scene in a separate thread. Since my main GUI is built by 
> > using ImGui, I want to embed OSG as a widget-like sub-window inside imgui. 
> > 
> > How can I do it ? 
> > 
> > Thanks!  
> > 
> > ... 
> > 
> > Thank you!
> > 
> > Cheers,
> > Jishen
> > 
> > --
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=76757#76757 
> > (http://forum.openscenegraph.org/viewtopic.php?p=76757#76757)
> > 
> > 
> > 
> > 
> > 
> > ___
> > osg-users mailing list
> >  ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
> > (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > 
> 
> 
> 
> -- 
> Chris 'Xenon' Hanson, omo sanza lettere.  http://www.alphapixel.com/ 
> (http://www.alphapixel.com/)
> Training • Consulting • Contracting
> 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • 
> GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
> Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • 
> Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • 
> Android
> @alphapixel (https://twitter.com/alphapixel) facebook.com/alphapixel 
> (http://facebook.com/alphapixel) (775) 623-PIXL [7495]
> 
>  --
> Post generated by Mail2Forum


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76792#76792





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 to render
itself, but just provides you vertex buffers that you have to use in your
rendering backend.



On Sun, Sep 29, 2019 at 12:32 PM Jishen Li  wrote:

> Hi,
>
> I found people tried to embed ImGui into OSG, not vice verse. I am using
> OSG to render a scene in a separate thread. Since my main GUI is built by
> using ImGui, I want to embed OSG as a widget-like sub-window inside imgui.
>
> How can I do it ?
>
> Thanks!
>
> ...
>
> Thank you!
>
> Cheers,
> Jishen
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=76757#76757
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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

2019-09-30 Thread Chris Hanson
This is usually pretty easy if you can expose an HWND (on Windows) of the
UI region that can be used to create an OpenGL context and passed to OSG's
GraphicsWindowEmbedded.

On Sun, Sep 29, 2019 at 4:32 AM Jishen Li  wrote:

> Hi,
>
> I found people tried to embed ImGui into OSG, not vice verse. I am using
> OSG to render a scene in a separate thread. Since my main GUI is built by
> using ImGui, I want to embed OSG as a widget-like sub-window inside imgui.
>
> How can I do it ?
>
> Thanks!
>
> ...
>
> Thank you!
>
> Cheers,
> Jishen
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=76757#76757
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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

2019-09-29 Thread Jishen Li
Hi,

I found people tried to embed ImGui into OSG, not vice verse. I am using OSG to 
render a scene in a separate thread. Since my main GUI is built by using ImGui, 
I want to embed OSG as a widget-like sub-window inside imgui. 

How can I do it ? 

Thanks!  

... 

Thank you!

Cheers,
Jishen

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76757#76757





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org