CesiumGS / CesiumGS/cesium

Picking issue with custom shaders

Open
#6,329 0 comments 0 reactions 0 assignees View on GitHub
category - model/gltf category - picking type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

From the forum: https://groups.google.com/d/msg/cesium-dev/25jPqr5ODg0/gYHeDX8uDQAJ

> A better gtTF with custom shader generation pipeline. Right now we have to paste our shaders (base64 encoded) into the glTF after it is converted. But doing so makes the models unpickable because Cesium does some string replacing code to add a picking mode to the shader, which is not compatible with our custom shader. Using czm_ automatic uniforms should be easy in this pipeline.

Contributor guide

Open the contributing guide

Research direction

Start with the linked Cesium forum discussion and trace the glTF custom-shader generation and picking path described in the issue. Identify where Cesium performs shader string replacement and how automatic uniforms could fit the pipeline. Done means converted models using custom shaders remain pickable without manually editing base64-encoded shaders.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.