Skip to content

Croisened/SketchFabShowAndHide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to SKetchFabShowAndHide

Custom viewer for Sketfab utilizing the Viewer API to allow showing and hiding of the model's parts

Example Running Here: https://croisened.github.io/SketchFabShowAndHide/?id=784e95f4f22545199be7e165af6437f8

To use this project you only need 3 files...

  • index.html (This file just has the HTML scaffolding to house the Sketchfab API viewer)
  • style.css (This file contains the bootstrap based layout information)
  • sf_showhide.js (This file contains all the code to initialize the Sketchfab viewer, process all the Matrix Transforms and ultimatley generate the treeview with show and hide buttons for each object in the scene)

In the javascript file there is an "id" variable that you can change to be any model on Sketchfab based on that model's guid you can see in the URL for any given model. This acts as default model to load in the event there is no "id" variable set in the querystring for the HTML page so you can simply chage it there as well to view any model you choose.

Follow on Twitter @FullyCroisened

About

Javascript to create custom view of Sketchfab models and be able to show hide the various parts of the model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors