Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Update index-dev.html
Browse files Browse the repository at this point in the history
  • Loading branch information
vim-sroberge authored May 30, 2024
1 parent df49d42 commit bbe7aa4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/index-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,16 @@

async function loadVim (cmp) {
const time = Date.now()

cmp.viewer.gizmos.loading.visible = true
const vim = await cmp.loader.open(
url ?? 'https://vim02.azureedge.net/samples/residence.v1.2.75.vim',
//url ?? 'https://vim02.azureedge.net/samples/residence.v1.2.75.vimx',
{
progressive: true,
rotation: new VIMReact.THREE.Vector3(270, 0, 0)
}
)
vim.loadAll()
cmp.camera.frameAllAndSave()

console.log(`Loading completed in ${((Date.now() - time)/1000).toFixed(2)} seconds`)
cmp.viewer.gizmos.loading.visible = false
}
</script>
</body>
Expand Down

0 comments on commit bbe7aa4

Please sign in to comment.