ozRocker Posted March 27, 2016 Share Posted March 27, 2016 I'm building web-pages which contain multiple iframes of Babylon.js sites. At most I've had 6 iframes on the same page with 3D content. (this one http://www.aarontyler.com.au/blog/strayashrapnel) I'm doing this because I want to sprinkle 3D elements throughout the website and it can't be done with one canvas. Is there any problem that this could cause? If so, is there a better way to do this? I previously had an issue with multiple audio engines being created but that was fixed by using the core js file without the audio engine. Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted March 27, 2016 Share Posted March 27, 2016 why you dont create multiple scene in one page with multi canvas? Quote Link to comment Share on other sites More sharing options...
Temechon Posted March 27, 2016 Share Posted March 27, 2016 Multiple active webgl iframe could cause your browser to freeze and crash, due to a memory issue. It depends on the user config, so be careful. Quote Link to comment Share on other sites More sharing options...
ozRocker Posted March 27, 2016 Author Share Posted March 27, 2016 2 hours ago, NasimiAsl said: why you dont create multiple scene in one page with multi canvas? Is this possible? I tried it and couldn't get a second one working. Maybe I did it wrong :/ If I can get that working, I'll give it a go. But sometimes iframes is useful for people that want to include 3D into their Wordpress site. That was the case for the work I did on Straya Shrapnel. That guy wasn't able to add javascript code to his blog so I had to give him an iframe link. Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted March 27, 2016 Share Posted March 27, 2016 yes it is possible Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 27, 2016 Share Posted March 27, 2016 Actually every scene will be tied up to a single engine/canvas but there is no issue to have multiple engine per page ozRocker 1 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.