-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Entity Shadows #4005
Entity Shadows #4005
Conversation
4942533
to
4ad90cc
Compare
Entities now have a single |
I am all for less code in the higher-level layers, but are we sure about this? If so, why didn't we just do this in the Primitive API? Separate cast/receive are standard and support all use cases. The other option is to make this an enum. |
Yeah, we talked offline and Dan mentioned some use cases where you would want both. An enum definitely sounds like the right call (perhaps that should have been done at the Primitive layer as well?) |
It will be easy to deprecate if we go this route. |
Given the uncertainty about the properties in this PR I am going to omit the CZML model shadow property merged with #3856 until we have an API that won't change. |
An enum doesn't really seem intuitive from the user's perspective. I'm ok with reverting back to |
Why not, it makes the most sense to me and is what we do elsewhere in Cesium. How is this different? |
It just seems overly complicated for the entity api, remembering the enum names is harder than just setting some booleans. |
They would not be names, we would have a new enum type. We already do this everywhere else in the Entity API (HorizontalOrigin, VerticalOrigin, etc..) no one has ever complained. |
I am fine with the enum or without it I suppose; it just seems like a lot more plumbing without it. I agree the enum names are a bit awkward, but could be simple enough:
@lilleyse perhaps see what is most common in game engines. |
Ok, I'll go with the enum approach. Hopefully today or tomorrow I'll have time to get this ready before the release. |
@lilleyse I see you pushed three new commits. Is this ready or should it wait until 1.24? |
This is ready for review at least. I'm still seeing issues with the checkered box though which I hope to fix soon. |
Let's finish this for 1.24 since 1.23 is on Friday. |
This is ready for review, though the Sandcastle demo may crash in certain cases until #4099 is merged.
@shunter Are there any additional czml changes that I need to make besides what's already here? |
Can we generate some performance numbers that compares both load time of |
Sure I can do that. |
What is the plan here? Will this make 1.24 on Monday? |
Would it be possible to squeeze this into the release, or should we just wait for the next? The last major change is to add back the |
You would have to code this now, right? If so, let's not hold up the release (but go ahead and still make the change now so we can get it into master early for the 1.25 release). |
Ok |
@mramato where can I find |
In terms of performance:
|
64eaa66
to
35c12c7
Compare
35c12c7
to
e862db5
Compare
I added back the deprecated properties and updated CHANGES.md. This is ready for a look now. |
@mramato please merge when ready. |
Merge in master and this is ready. Thanks @lilleyse! |
Thanks, I think if there were any major issues, they would have been obvious. |
No that I know of, but I can take a quick look. Does this happen in master? |
Yeah it's also in master. |
OK, then I'll merge this and we can look at this later. Can you write up a separate issue so that we don't forget? Thanks! |
Sure |
For #2594
Continuation of #3928 now that the
shadows
branch is gone.We talked about potentially using just
shadows
instead ofcastShadows
andreceiveShadows
.castShadows
andreceiveShadows