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
Shadows Tests #3958
Shadows Tests #3958
Conversation
There are some jsHint failures: Source/Scene/Scene.js ⚠ 2 warnings Specs/Scene/ShadowMapSpec.js ⚠ 1 warning |
This looks good to me. I'm also not sure how to test terrain. I have some failing tests on Linux with the Intel HD 4000, but there are a bunch of others that are failing with that graphics card too. @pjcozzi Can you review and merge? |
JSHint is failing:
See https://travis-ci.org/AnalyticalGraphicsInc/cesium/builds/132971153 |
Wow, these tests look really good. Code coverage is pretty good, but it doesn't look hard to get |
Remind me - what is the issue again? Something to do with loading? We can include sample data, e.g., a really small quantized-mesh tileset, write a mock terrain provider that procedurally generates terrain if needed, and mock things as needed to get reasonably isolated tests. |
By default the loaded tiles are really big so even if the shadow is drawn it is offscreen somewhere (I think). I tried changing the |
Added the globe tests. This should be ready to go, but we can leave it open for a little while if we come up with new tests. |
Actually it looks like some tests are still failing, I'll fix those now. |
I think something about sharing the same Globe across tests was causing weird things to happen. This is ready now. |
This is all good with me. If you want more tests later, open up another PR. |
For #2594
These are most of the shadows tests unless I or anyone else can think of more. I have the globe test commented out for now but plan on figuring that out soon. After that, I'm not sure of the best way of testing terrain casting on terrain.
I also made some small code changes, a lot of which were related to first-frame type problems. Also
Scene
is a little smarter about not rendering with shadows if no shadow maps are in view.