-
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
Add an option to use html5 canvas as a rectangle material #2509
Comments
I'm surprised this doesn't work already, but I agree we should support it. |
I would like to know the status of supporting canvas with rectangle geometries. The use of canvas. in materials instead of toDataURL() will greatly improve the performance of my Cesium application. Thanks, Alberto |
An often requested feature on the mailing list, this change allows you to assign a canvas directly to an Entity material property (and also low level material uniforms). Fixes #2509
@alberto-acevedo thanks for the reminder. You caught me on a good day so I was able to open up #2667 which adds this capability. |
I just tried the new tml5 canvas as a rectangle material capability but there seems to be a problem when rendering more than one canvas. The first time I render a canvas it works fine. But when I tried to render a different canvas, what is rendered is the first canvas. Is it something I'm doing wrong or is this a bug? My code is below: var multiPointRectangle = new Cesium.RectangleGraphics(); var entity = new Cesium.Entity(); |
You might be running into the issue described in #2633. I'll see if I can reproduce and confirm. |
Canvas has very useful capabilities and it would be great to be able to use it directly as a material.
I thought of Something like this:
For now one can use code that looks like this:
but this way is not very efficient...
The text was updated successfully, but these errors were encountered: