Embed native window in CEF

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Embed native window in CEF

Postby qberthet » Thu Oct 03, 2019 8:06 am

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.
qberthet
Newbie
 
Posts: 5
Joined: Thu Oct 03, 2019 7:56 am

Re: Embed native window in CEF

Postby magreenblatt » Thu Oct 03, 2019 8:51 am

Your best option is to use a canvas with WebGL, and render into that.
magreenblatt
Site Admin
 
Posts: 9837
Joined: Fri May 29, 2009 6:57 pm

Re: Embed native window in CEF

Postby qberthet » Thu Oct 03, 2019 9:37 am

Ok but what if i don't want to use WebGL and stick to OpenGL for performance reason ?
qberthet
Newbie
 
Posts: 5
Joined: Thu Oct 03, 2019 7:56 am

Re: Embed native window in CEF

Postby magreenblatt » Thu Oct 03, 2019 9:48 am

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.
magreenblatt
Site Admin
 
Posts: 9837
Joined: Fri May 29, 2009 6:57 pm

Re: Embed native window in CEF

Postby qberthet » Thu Oct 03, 2019 10:42 am

ok that's a shame... I am not very familiar with this environment. Thought it might need only work CEF-side...
qberthet
Newbie
 
Posts: 5
Joined: Thu Oct 03, 2019 7:56 am


Return to CEF Discussion

Who is online

Users browsing this forum: Osspial and 1 guest