You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like the title says, if your model's reference images that do not exist, it crashes because image.resource is null on line 698 of DAEParser.
What I have done at the moment is added a !== null check before building the material. If it is null, I just build the default material. PR coming soon.
Note: I dynamically replace certain materials after the model has been loaded. Previously with Papervision, I was able to pass in a list of materials to override, sort of the same way Away3D can use an AssetLoaderContext with asset urls. Anyways, some of our old models contain bad data (point to images that don't exist -- but are meant to be replaced dynamically), and this was causing our model loaders to crash.
The text was updated successfully, but these errors were encountered:
Like the title says, if your model's reference images that do not exist, it crashes because image.resource is null on line 698 of DAEParser.
What I have done at the moment is added a !== null check before building the material. If it is null, I just build the default material. PR coming soon.
Note: I dynamically replace certain materials after the model has been loaded. Previously with Papervision, I was able to pass in a list of materials to override, sort of the same way Away3D can use an AssetLoaderContext with asset urls. Anyways, some of our old models contain bad data (point to images that don't exist -- but are meant to be replaced dynamically), and this was causing our model loaders to crash.
The text was updated successfully, but these errors were encountered: