bghgary / glTF-Assets-Viewer

Tool for viewing multiple glTF files from a GitHub directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

glTF Assets Viewer

The glTF Asset Generator README files uses this tool to view assets.

How to add your engine

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:

"BabylonJS": {
    "templateUrl": "http://sandbox.babylonjs.com/index.html?assetUrl=${assetUrl}&cameraPosition=${-cameraPosition.x},${cameraPosition.y},${-cameraPosition.z}&kiosk=true"
}

How to build the GitHub page locally

Pre-req: Be sure to have Ruby installed on your machine

  1. Install the bundle and github-pages gems
gem install bundle
gem install github-pages
  1. Run jekyll to run the local server
bundle exec jekyll serve

About

Tool for viewing multiple glTF files from a GitHub directory

License:MIT License


Languages

Language:JavaScript 84.4%Language:HTML 14.4%Language:Ruby 0.6%Language:CSS 0.6%