Jump to content

[SOLVED] Integration with VueJS 2.0 framework


Areknawo
 Share

Recommended Posts

Hi,

I've recently started making my new (first) game. I decided to go with ThreeJS and A-frame as framework/engine but these aren't very well prepared for game development (lack features I need) so I've switched to BabylonJS. But with my UI being created in Vue (worked well with A-frame HTML elements) there isn't any advice in Google. I've tried integrating it with my Vue component but in a console it says :

Quote

"Error: WebGL not supported"

I thought it is because of Canvas isn't the correct element by when I tried to log it, it prints it is. I don't know if this integration is even possible. As I said I'm new to BabylonJS and maybe I lack some knowledge.

Link to comment
Share on other sites

Hi,

I've manage to get it working. It was because my element note being canvas sorry for that as I said I'm newbie. I also delete DomContentLoaded event and placed my code im Vue mounted function. Now I have problem with Canvas filling all availible space but I would rather make it myself. Sorry again for question.^_^

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...