Can we use CEF to create a GUI inside our game engine?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Can we use CEF to create a GUI inside our game engine?

Postby simmania » Mon Sep 26, 2022 4:45 am

Hi,
I'm investigating if we can use CEF to generate a futuristic user interface inside a game (engine).
Inside our game engine we have a vehicle that has a dashboard on which a GUI should run. We would like to create this GUI using CEF. So what we would like to do:

    Create a futuristic GUI using HTML5 (lots of animations).
    Render this to a buffer at specific times and copy this buffer (each frame) to a texture in our game engine.
    Use input from our game engine for the actual user input (e.g. mouse clicks).
    Use other game engine information for the GUI (like motor status, driving speed etc)

Is this possible and is there some documentation telling us how to do this?
simmania
Newbie
 
Posts: 2
Joined: Mon Sep 26, 2022 4:19 am

Re: Can we use CEF to create a GUI inside our game engine?

Postby magreenblatt » Mon Sep 26, 2022 9:11 am

Yes, this is possible. You would use the off-screen rendering capability. See https://bitbucket.org/chromiumembedded/ ... -rendering
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 42 guests