Skip to content

Conversation

@Markil3
Copy link
Contributor

@Markil3 Markil3 commented Feb 1, 2021

This adds a GLTF loader extention that will allow jMonkeyEngine to use the Common/MatDefs/Misc/Unshaded.j3md material definition whenever a GLTF scene has the "unlit" material on an object. The branch contains a test environment for demonstration.

Note that in some other testing, I've noticed that the supposedly "unlit" material will be affected by shadows, which I did not notice when composing the scene in Blender. This appears to be due to jMonkey's shadows in particular, and not related to GLTF.

I first introduced it here. The thread mostly focuses on punctual lights, but I originally started on it for the unlit lights.

@stephengold
Copy link
Member

Thanks for your contribution to JMonkeyEngine!

@stephengold
Copy link
Member

Do you understand the cause of the "AssetNotFoundException: gltf/scene/map.gltf"?

@Markil3
Copy link
Contributor Author

Markil3 commented Feb 1, 2021

It appears that there is a file missing that one of the tests use. The only issue is that I have no idea where it is, or where it may have dropped off (I don't think it was one of my commits). I'll try to track it down.

@Markil3
Copy link
Contributor Author

Markil3 commented Feb 1, 2021

Found it. The test is actually one of mine, it seems. I was probably using an asset from my own game, but didn't want to include it in the commit.
Since I think that the TestGLTFUnlit example demonstrates things well enough, I'll probably just remove the test. Give me a few minutes...

It was left over from development and inevitably fails. TestGLTFUnlit serves as a good enough test anyway.
@Markil3
Copy link
Contributor Author

Markil3 commented Feb 1, 2021

And, the fix is green. Sorry I didn't catch that earlier.

@stephengold stephengold added this to the v3.4.0 milestone Feb 25, 2021
@stephengold stephengold merged commit 62dc29b into jMonkeyEngine:master Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants