Jump to content

HTML/DOM/JQuery Overlay GUI


Kreeba
 Share

Recommended Posts

Hi. Is there a guide/tutorial/best-practice on using HTML DOM controls as a GUI overlayed ontop of Babylon?

I tried experimenting with it before. I found using jquery quite easy to work with Babylon, however when I had the overlay enabled (the div containing the GUI elements set to show()) no touch events triggered within Babylon, either my own coded ones or the ones attached to the ArcCamera.

 

Whats the best way to set this up?

Link to comment
Share on other sites

Hi Dad72,

I am using TypeScript and NPM. There is an issue with BabylonJS.GUI as an extension. I am not too versed in the technicalities of how TypeScript and NPM interact, but I am keenly following this issue:

https://github.com/BabylonJS/Babylon.js/issues/2569

 

Can you offer any guidance on using Babylon.GUI with TypeScript by referencing a CDN? I have tried every combination I can think of and I can't get it to work. I am using SystemJS as my module loader.

 

Kind Regards

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...