-
Notifications
You must be signed in to change notification settings - Fork 2
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
COLLADA - Materials missing not None in Scene #67
Comments
The relevant code is here, and IIRC the behavior here is mostly refers that of assimp. (However, some of it is specified in the spec.) mesh-loader/src/collada/effect.rs Lines 439 to 450 in 44ad136
We refer to the behavior of assimp because this library was started to replace the use of assimp in our other projects, and it was more convenient to have the same behavior. And the STL parser has a similar behavior. Lines 147 to 148 in 44ad136
That said, the OBJ parser, which was added later than these two parsers, does not have this behavior (defaults to None), and in fact, it may make sense to all parsers do the same as the OBJ parser (aside from the default value specified in the spec). Lines 1189 to 1205 in 44ad136
|
Ok I understand 👍 |
If some materials are omitted, there are not set to None in
Scene
. Instead there are Some with default values.I don't know if that's the behavior wanted. If that the case, it would be nice to see that in the documentation ;-)
Example :
The text was updated successfully, but these errors were encountered: