This tutorial explains how to integrate your to content in a web page.
It shows the way to convert some Sketchup file to GLB format.
Sketchup format is interesting because it allows a different material for front and back face, which is not supported by GTLF.
3DBrowser provide some options to handle this case correctly.
Here is the way to proceed :
Export your 3d models to the web using GLTF format
-
- Site Admin
- Posts: 282
- Joined: Thu Jul 05, 2007 11:06 am
- Contact:
-
- Site Admin
- Posts: 282
- Joined: Thu Jul 05, 2007 11:06 am
- Contact:
Re: Export your 3d models to the web using GLTF format
Some of you asked: "but finally how can I integrate the exported asset to my web site?"
Here are some piece of code to proceed in a simple way.
This is the entry point... Then GLTF is a sea and you can dive in it very deeply.
So, here is a link to the most simple HTML page that display a file content:
https://www.mootools.com/files/assets/glbsample.html
You find some equivalent HTML code here:
https://codepen.io/BabylonJS/pen/QxzBPd
and some more advanced sample in this tutorial:
https://babylonjs.medium.com/using-the- ... 1e6af46137
For those who have a WordPress site, there is a plugin that can integrate your 3D asset in your page:
https://forum.babylonjs.com/t/babylon-j ... N-dcseI9wg
Hope this help and will give you some great ideas!
Here are some piece of code to proceed in a simple way.
This is the entry point... Then GLTF is a sea and you can dive in it very deeply.
So, here is a link to the most simple HTML page that display a file content:
https://www.mootools.com/files/assets/glbsample.html
You find some equivalent HTML code here:
https://codepen.io/BabylonJS/pen/QxzBPd
and some more advanced sample in this tutorial:
https://babylonjs.medium.com/using-the- ... 1e6af46137
For those who have a WordPress site, there is a plugin that can integrate your 3D asset in your page:
https://forum.babylonjs.com/t/babylon-j ... N-dcseI9wg
Hope this help and will give you some great ideas!
Who is online
Users browsing this forum: No registered users and 2 guests