Add a material property to chose texture orientation relative to the camera viewpoint
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 15.8k
- Forks
- 3.9k
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 34
Description
Hello,
I want to be able to decide the orientation of a texture image applied to an entity.polygon relative to the camera viewpoint.
Now it seems totally random (or I didn't get how the texture orientation is chosen); sometime the text on an image is readable, and sometime it's flipped left<->right.
I'm currently applying the texture as follow:
entity.polygon.material = new Cesium.ImageMaterialProperty({
image: './image.jpg',
alpha: 0.5
});
In addition, the alpha value doesn't apply. It would be great to be able to add transparency to the texture.
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the entity.polygon material path and the Cesium.ImageMaterialProperty API shown in the issue. Trace how texture orientation and alpha are passed to polygon rendering, then identify existing rendering tests or examples for material properties. Done means a material option can control camera-relative texture orientation and alpha transparency works as documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100