I’m trying to use video frame as material of primitive(an Irregular trapezoid).after i input the right st coordinates it’ like:
As you can see, the image didn’t show correctly.I looked up some related causes and solutions:
1.Fit texture coordinates to rectangle/trapezoid geometry · Issue #4164 · CesiumGS/cesium · GitHub
2.Mapping-fidelity in quadrilateral/triangle rendering - #17 by vielzutun.ch - Discussion - three.js forum
3.How to draw correctly textured trapezoid polygons
4.Protective Texture Mapping support in Cesium
But i still not undstand how to do with the st coordinates.The key problem is that I don’t know how to add a reasonable z value to the st coordinate and expand it to three dimensional coordinates.
Somebody help me out here?
===================================================
After a few days of trying, I still haven’t solved the problem. Here’s a sandbox to see the problem. Hopefully there will be a solution