Implementing Babylon.js viewer in posts & on pages
-
Hi Armin,
Love your work! I've been super happy with the Laytheme experience on my blog.
I was wondering if there was an easy way to implement the babylon.js viewer inside posts and or on new pages. I'm super noobie when it comes to custom html, but figured I'd ask if there was already a simple way to make this work.
Their sample code is below:
<html>
<head>
<title>Babylon.js Viewer - Display a 3D model</title>
<script src="https://preview.babylonjs.com/viewer/babylon.viewer.js"></script>
</head>
<body>
<babylon model="https://models.babylonjs.com/boombox.glb" templates.main.params.fill-screen="true"></babylon>
</body>
</html>Any help or advice or pointing in the right direction would be amazing. =)
Cheers,
-
Dear @strayorbit
Because your Lay Theme website is a "Single Page" JavaScript application, so embedding other JS libraries is not possibly always.We are working on a PHP version though.
Best!
Marius
-
Dear @strayorbit
Because your Lay Theme website is a "Single Page" JavaScript application, so embedding other JS libraries is not possibly always.We are working on a PHP version though.
Best!
Marius
Thanks @mariusjopen Great to know! I'll stay tuned. =)