ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Help with CopperCube
forum topic indicator Load a simple HTML page inside Coppercube.
person icon
justicekk
Registered User
Quote
2025-11-27 01:22:52

embedded external image
🔎︎

Is it possible to do something like this within Coppercube? Something like loading an HTML page into the game as a surface "texture" or something like that.

It would be great so I could update certain things without having to edit them in the engine, plus I personally enjoy playing around with HTML

It would also be nice to be able to interact with the page using the crosshair, if possible

I intend to build it for Windows; my PC runs WebGL very poorly, bruh

person icon
guest
Guest
Quote
2025-11-27 04:05:22

you can't show an example correctly so i'd say nah, bruh

person icon
okeoke
Registered User
Quote
2025-11-27 08:58:10

It is not possible to render html inside coppercube using built-in functionality.

But there are multiple workarounds that you can do:

1. For background - make plane mesh, specify "repeat count" or whatever this option is called so it tiles the texture other the plane. Set plane to 0,0,0. Add simple camera, go to "views -> add camera view" and add a new view for just created camera. Set camera and it's view to 0,0,0 position. Start shifting it up on Z axis, so your plane looks like a nice background - remember that your players usually will use 16:10, 16:9 screens, so test with those as well (default windowed mode is 4:3). Apply night sky texture. You can also animate it using built in behavior. For foreground - make buttons in any software of your choice including texts. Put them into engine as 2d nodes. Put actions that you need on the buttons.

2. Use external framework like electron/tauri/neutralino/etc to builld an app that renders your html. You're looking for ones that have some runtime backend, like node js in electron or rust backend in tauri. You ship your game along with this app, so the app works as a start menu or manager, which starts your actual game exe. I believe it's also super simple to make settings and so on using this approach. Downsides - you have 2 exe files instead of one. Also electron, which I would use, is pretty heavy, so it generates .exe of size ~250 mb. Tauri and other webview based frameworks will not work on win10 and earlier from the box - user needs to manually enable webview. The big plus of using electron is that you can totally use chatgpt to guide you through the app creation. So you prompt something like:
"I don't have anything installed, I need to make an electron app, that works like a start menu for my game. Clicking a button inside the app should start another .exe. Walk me step by step how to do that."

3. You can make html render it and use as a background picture, make buttons with blank 2d nodes. Downside - it's hard to match 2d nodes with background image. I would approach 1 instead.

4. You can buy studio version, somehow integrate webview into it, build the runtime and render html natively. I suppose it should be doable, but I have not idea how to make it work, or how hard is it.

I would go with option 1 or if you feel adventures option 2.

person icon
justicekk
Registered User
Quote
2025-11-29 02:30:57

Thanks for the solutions @okeoke, I'll test them, I think they'll be good for what I'm planning to do


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |