CesiumGS / CesiumGS/cesium

Fit texture coordinates to rectangle/trapezoid geometry

Open
#4,164 17 comments 5 reactions 0 assignees View on GitHub
category - graphics priority - high type - enhancement
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

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:

screen_shot_2016_07_25_at_11_22_39_pm
cesium_good

@rumicuna created a demo for testing this:

https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Hello%20World.html&label=Showcases&gist=079b7bbc6c2c16bdaf23c57fe0a7f2c4

Contributor guide

Open the contributing guide

Research direction

Start with the linked Sandcastle Hello World demo and inspect the geometry and texture-coordinate path it exercises. The issue leaves the API choice open between stretching textures over rectangle/trapezoid geometry and accepting explicit texture coordinates, so review the 17-comment discussion before deciding scope. Done means the requested texture mapping is supported and demonstrated by the effect shown in the issue images.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.