Page 1 of 1

Embed native window in CEF

PostPosted: Thu Oct 03, 2019 8:06 am
by qberthet
I'm trying to embed a native window with 3D rendered by OpenGL "inside" an html page.
I have came across a lot of example with Offscreen rendering but this is not i am looking for.

I don't know if it is possible, I watch a GDC conference where the company guy spoke about a chrome plugin they wrote to "dock" a native window in chrome.
The idea is to have a html UI all around a 3D viewer but again without any offscreen rendering. For now all i can achieve is to have several html pages in several browsers around my 3D window instead on only one html page.

Re: Embed native window in CEF

PostPosted: Thu Oct 03, 2019 8:51 am
by magreenblatt
Your best option is to use a canvas with WebGL, and render into that.

Re: Embed native window in CEF

PostPosted: Thu Oct 03, 2019 9:37 am
by qberthet
Ok but what if i don't want to use WebGL and stick to OpenGL for performance reason ?

Re: Embed native window in CEF

PostPosted: Thu Oct 03, 2019 9:48 am
by magreenblatt
qberthet wrote:Ok but what if i don't want to use WebGL and stick to OpenGL for performance reason ?

Then you will need to implement the necessary functionality in Chromium/Blink.

Re: Embed native window in CEF

PostPosted: Thu Oct 03, 2019 10:42 am
by qberthet
ok that's a shame... I am not very familiar with this environment. Thought it might need only work CEF-side...