My GitHub commits in 3D, made possible by Skyline which is made by Github
To display your 3D file elsewhere on the internet, modify this template and place it on any HTML page that supports JavaScript:
<script src="https://embed.github.com/view/3d/<username>/<repo>/<ref>/<path_to_file>"></script>
For example, if your model's URL is https://github.com/JesperKuipers/Skyline/blob/master/JesperKuipers-2023.stl
, your embed code would be:
<script src="https://embed.github.com/view/3d/JesperKuipers/Skyline/master/JesperKuipers-2023.stl"></script>
By default, the embedded renderer is 420 pixels wide by 620 pixels high, but you can customize the output by passing height and width variables as parameters at the end of the URL, such as ?height=300&width=500
.
Note:
ref
can be a branch or the hash to an individual commit (like 2391ae).