Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix json material loading #1308

Merged
merged 3 commits into from Aug 21, 2018
Merged

Fix json material loading #1308

merged 3 commits into from Aug 21, 2018

Conversation

daredevildave
Copy link
Contributor

See: https://forum.playcanvas.com/t/getting-major-issue-in-loading-models-from-remote-json-model-is-loading-but-not-the-texture/7799

loadFromUrl has special behaviour when loading models to load and link up materials and textures. The new material validation broke this and this changes fixes it.

Also added pc.path.normalize for cleaning up URLs before use (not required, but nicer)

Update asset registry texture loading for engine-only
Added pc.path.normalize()
Load textures and materials with loadFromUrl using normalized paths.
Fix asset-reference when using urls
@daredevildave daredevildave merged commit 3dda432 into master Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants