-
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
Fit texture coordinates to rectangle/trapezoid geometry #4164
Comments
We also need this to support KML latLonQuads |
We have done this in some of our other projects; see http://help.agi.com/AGIComponentsJava/html/BlogTrapezoidalTextureProjectionWithOpenGL.htm |
I took the very first steps of this in https://github.com/AnalyticalGraphicsInc/cesium/tree/trapezoid but this requires |
Specifically, this requires texturing ground primitive. @bagnell has most of the work done in this branch: https://github.com/AnalyticalGraphicsInc/cesium/compare/ground-primitive-tex-coords |
This came up again on the forum: https://groups.google.com/d/msg/cesium-dev/x3sYLgIr8Mc/wH2tdn_hCwAJ |
Came up on the forum again: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/zYikVZcfRMo |
Talked about this offline with @likangning93. This will require specific changes to Some early thoughts:
|
@likangning93 @lilleyse read http://help.agi.com/AGIComponentsJava/html/BlogTrapezoidalTextureProjectionWithOpenGL.htm if you haven't already |
Hi guys! Any progress with this issue? Or maybe someone has a samples of code at least? |
Any progress with this issue? |
4 years later. Please - Any progress with this issue? |
I updated the sandcastle demo to reproduce it with the latest Cesium (link below). |
Reported on the forum in https://community.cesium.com/t/how-to-project-textures-correctly/20592. |
Hi! Any progress with this issue? |
@ysp There hasn't been any activity on this item recently. If you'd like to add more information about your use case, that may help us prioritize. If you are interesting in contributing, please let us know and we'd be happy to discuss implementation or review a PR. Thanks! |
It would be useful to support stretching a texture along a rectangle/trapezoid geometry, or perhaps even support explicit texture coordinates. The effect would look like the second image:
@rumicuna created a demo for testing this:
https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Hello%20World.html&label=Showcases&gist=079b7bbc6c2c16bdaf23c57fe0a7f2c4
The text was updated successfully, but these errors were encountered: