Flomotion Posted February 2, 2016 Share Posted February 2, 2016 I want to embed my BabylonJS scene in a wordpress website. We need to embed it using an iframe. But when we do that the hand.js is not working anymore. I can't get a response on mobile anymore. Does anyone have an idea how to fix that? thanks Floris Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 2, 2016 Share Posted February 2, 2016 Can you try with jQuery PEP? Quote Link to comment Share on other sites More sharing options...
Flomotion Posted February 2, 2016 Author Share Posted February 2, 2016 I think so.. is there anything I need to do in babylonjs to make it work? Or just include the library like with hand.js? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 2, 2016 Share Posted February 2, 2016 Just include it Quote Link to comment Share on other sites More sharing options...
Flomotion Posted February 3, 2016 Author Share Posted February 3, 2016 I've included it, just like in the demo's. <script src="http://code.jquery.com/pep/0.4.0/pep.min.js"></script> But it just doesn't work in my set-up.. don't know why. A very simple scene I made: http://flomotion.nl/tmp Included the pep and have an arcCamera. Quote Link to comment Share on other sites More sharing options...
Kesshi Posted February 3, 2016 Share Posted February 3, 2016 If i remember correctly, PEP needs the attribute touch-action="none" at the canvas. Like this: <canvas touch-action="none"></canvas> Quote Link to comment Share on other sites More sharing options...
Flomotion Posted February 3, 2016 Author Share Posted February 3, 2016 thanks for your answer. I've included that as well.. but no succes :-( Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 3, 2016 Share Posted February 3, 2016 Can you try with bjs 2.3? Quote Link to comment Share on other sites More sharing options...
jerome Posted February 3, 2016 Share Posted February 3, 2016 imho, it smells like a browser SOP problem... could you set the pep.min.js file on the same server than bjs and your own script, and then download all from the same domain ? Quote Link to comment Share on other sites More sharing options...
Flomotion Posted February 4, 2016 Author Share Posted February 4, 2016 Thank you Jerome and Deltakosh. You were both right! Headache solved :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.