Comments (17)
Nice,i saw it.
from babylon-mmd.
Maybe you can use something like Promise.all to solve this problem?
from babylon-mmd.
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.
Can't importMeshAsync solve this problem?
from babylon-mmd.
It's in the answer I gave you
from babylon-mmd.
Other loader using import mesh async does not have this problem, should it also be solved?
from babylon-mmd.
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.
If you think this can be fixed with pr, then I can try to bring up a pr.
from babylon-mmd.
There seems to be a misunderstanding It's already solved and I just haven't updated the npm package version yet
from babylon-mmd.
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.
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.
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.
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.
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.
I think commit already linked this issue
from babylon-mmd.
babylon-mmd 0.24.0 is released now. see CHANGELOG.md
from babylon-mmd.
Nice job! It is solved.
from babylon-mmd.
Related Issues (20)
- Whether there are plans to support vmd animation HOT 5
- The project won't work HOT 16
- How do I drive the model HOT 12
- Physical engine drive problem HOT 14
- A Big Shoutout to the Amazing babylon-mmd Repository! HOT 1
- Whether there are plans to support the pmd format HOT 4
- Animation Blending HOT 9
- Model texture .tga format supports HOT 9
- Uncaught TypeError: Cannot read properties of undefined (reading 'errorTextureDatas') at _MmdAsyncTextureLoader._addErrorTextureReferenceCount HOT 3
- The model in the form of file cannot be loaded normally HOT 1
- Whether other character models can load vmd animation format HOT 3
- Submesh optimization HOT 3
- About Light Sources HOT 4
- Is there a way to bind or attach a pmx model to the bones of a character model? HOT 1
- Animation timescale modification HOT 1
- Integrating BPMX Model Files into Private PNG Chunks to Display Previews HOT 4
- Hair is flying arbitrarily around HOT 5
- BPMX and BVMD directly from the application HOT 2
- Original MmdMesh Object Fails isMmdSkinnedMesh Check After Creating MmdModel HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babylon-mmd.