Jump to content

Babylon Embeded in Popup?


Recommended Posts


So I have been working on a 3d model viewer in babylon and it is to be embeded in an external website.It is a long scrolling website. This has caused a problem with our canvas with babylon running inside it as we take control over much input, such as scrolling.

I have been researching how to workaround this, something looking like a modal, or  Lightbox would be awesome, but doesn't support webgl. We could open a new window by embedding a button and making the site external but we would like it to be connected to the main page. 

Does anyone have a suggestion to point me in the right direction?

Link to comment
Share on other sites

17 hours ago, max123 said:

What do you mean "but doesn't support webgl"? A modal is just some basic CSS + js on your page.

It was babylon that threw the error "Uncaught Error: WebGL not supported".

But your confirmation was needed to get me on the right track :). The error was in my CSS.


Got it running inside a modal now, Need to figure out a way to assign the correct size to the canvas even when the modal starts out hidden with display: none.

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.

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.


  • Recently Browsing   0 members

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