The glTF Asset Generator README files uses this tool to view assets.
Add an entry to engines.json and provide a templateUrl
to your engine. The templateUrl
is a JavaScript template literal that is evaluated into the url for viewing the asset. The following arguments are available to the template literal:
assetUrl
The url to the glTF asset.cameraPosition
The camera position in glTF's coordinate system and units.
"BabylonJS": {
"templateUrl": "http://sandbox.babylonjs.com/index.html?assetUrl=${assetUrl}&cameraPosition=${-cameraPosition.x},${cameraPosition.y},${-cameraPosition.z}&kiosk=true"
}
Pre-req: Be sure to have Ruby installed on your machine
- Install the
bundle
andgithub-pages
gems
gem install bundle
gem install github-pages
- Run jekyll to run the local server
bundle exec jekyll serve