MetaCell / MetaCell/geppetto-meta
Support different content source types for a visualValue Resource
Open
Nobody has claimed this yet.
geppetto-ui
- Dominant language
- JavaScript
- Stars
- 6
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Current State
as visualValue we support for gltf and draco resources:
- base64 for gltf + draco
- web URL for draco
Example simple instance
const instanceTemplate = {
"eClass": "SimpleInstance",
"id": "ANeuron",
"name": "The first SimpleInstance to be render with Geppetto Canvas",
"type": { "eClass": "SimpleType" },
"visualValue": {
"eClass": GEPPETTO.Resources.GLTF,
'gltf': neuron
}
}
Change Proposal
We should generalize the way data is provided to a Simple Instance.
Two common ways that we should start with:
- by web URL
- by directly passing content as string (e.g. base64)
Extension of visualValue structure by a type and data attribute:
"visualValue": { “data”: “https://github.com” , “type”: DataType.URL, “eClass”: GEPPETTO.Resources.GLTF,}
"visualValue": { “data”: “encoded-string” , “type”: DataType.Base64, “eClass”: GEPPETTO.Resources.GLTF,}
"visualValue": { data: “encoded-string” , type: DataType.Base64, “eClass”: GEPPETTO.Resources.DRACO, }
Contributor guide
No contributing guide indexed for this repository
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
No files or tests are named. Start by tracing how visualValue handles GLTF and DRACO resources, then verify that both web URLs and directly supplied strings are supported through the proposed type and data attributes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100