-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Bug: GLTF 1.0 Importer emission not loaded #6003
Comments
glTF1.0 or glFT2.0? |
glTF 1.0, I provide asset. A good way to see this is to ctrl-f 'emission' and ctrl-f 'specular' noting how specular is read in and emission is not. |
glTF emissive texture support in assimp has been solid for years, at least for glTF 2.0. Please close this issue, or rename to make clear it's specific to glTF 1.0 (note that latest khronos sample assets only provides glTF 2.0 models) Here's glTF 2.0 |
@crazyjackel Please attach asset or add download url, thank you |
I want to really apologize, I did not reread my own comments. I discovered during a code read-through that the 'emissive' variable is not used to be set on the material. In Material::SetDefaults, when it runs: https://github.com/assimp/assimp/blob/master/code/AssetLib/glTF/glTFAsset.inl I originally reported this as 'specular', which is a similar property, is handled differently. |
Describe the bug
GLTF Importer does not ever load in emission colors/textures
To Reproduce
https://github.com/assimp/assimp/blob/master/code/AssetLib/glTF/glTFAsset.inl
It is noticed that emission is not loaded in as a TexProperty with diffuse, ambient, and specular.
I have not had time to confirm, but I looked at all references and saw no other loading for the value. I just want to make note of this.
Expected behavior
Emission should be loaded in as per normal
Additional context
This was conducted by code read-through. I am not sure it is good to report read-through bugs as they haven't yet caused any issues, but thought I would mention this.
The text was updated successfully, but these errors were encountered: