Git Product home page Git Product logo

Comments (17)

spencer17x avatar spencer17x commented on June 5, 2024 1

Nice,i saw it.

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

Maybe you can use something like Promise.all to solve this problem?

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

use Append / AppendAsync (loading screen automatically appears):

SceneLoader.AppendAsync(
    "https://a-cdn.qbox.net/test/models/pmx/[MODELS]%20Lovesick%20girls%20ver.1/[LSG]%20Jennie%20(Miku)%20ver.1.pmx",
    undefined,
    scene
);

use ImportMesh / ImportMeshAsync (show loading screen manually):

engine.displayLoadingUI();

SceneLoader.ImportMeshAsync(
    undefined,
    "https://a-cdn.qbox.net/test/models/pmx/[MODELS]%20Lovesick%20girls%20ver.1/[LSG]%20Jennie%20(Miku)%20ver.1.pmx",
    undefined,
    scene
).then(result => result.meshes[0])
    .then(mmdMesh => {
        engine.hideLoadingUI();
        mmdMesh.receiveShadows = true;
    });

or use LoadAssetContainer / LoadAssetContainerAsync (There is a lag while loading without a loading screen)

SceneLoader.LoadAssetContainerAsync(
    "https://a-cdn.qbox.net/test/models/pmx/[MODELS]%20Lovesick%20girls%20ver.1/[LSG]%20Jennie%20(Miku)%20ver.1.pmx",
    undefined,
    scene
).then(result => {
    result.addAllToScene();
});

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

Can't importMeshAsync solve this problem?

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

It's in the answer I gave you

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

Other loader using import mesh async does not have this problem, should it also be solved?

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

Now things will go as you want. However, as it doesn't seem to be a particularly important factor, I won't update the version right now. Please let me know if this is a problem that needs to be solved urgently

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

If you think this can be fixed with pr, then I can try to bring up a pr.

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

There seems to be a misunderstanding It's already solved and I just haven't updated the npm package version yet

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

Are you referring to the problem of this issue? If yes, please inform me if there is any package to update npm, thank you

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

I mean I don't seem to need to do npm publish right now because the severity of this problem seems low

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

Yes, but I hope you'll let me know if this issue is fixed after the next npm package is released, which I think is an optimization

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

Okay, I'll let you know when 0.24.0 released

I plan to do a new release when this issue is resolved.

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

Nice bro! And i suggest that you use Link Commits to GitHub Issues, which will make it clearer which issues are resolved by which commits, and it will also help your project to be more robust and maintainable.

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

I think commit already linked this issue

88a0596

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

babylon-mmd 0.24.0 is released now. see CHANGELOG.md

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

Nice job! It is solved.

from babylon-mmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.