Jump to content

Babylon JS - How to optimized loading by using cache


Amethyst17
 Share

Recommended Posts

So I have 2 files:

1. shirt.obj

2. shirt.mtl

 

I want to load this via babylon.js:

BABYLON.SceneLoader.Load(folder, fileName, $scope.engine, function (loadedScene) {...}

What should I do to optimized the file loader?

I have read the cache optimization from the babylon.js documentation, but none are working.

Babylon Caching Docs

 

I keep getting the model file from cache, I already put the updated model into the resources folder. How to load the new model file?

 

What should I name my manifest file? I tried shirt.obj.manifest and shirt.babylon.manifest, both of them did not work.

And what code should I insert in my script?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...