MetaCell / MetaCell/geppetto-meta

Support different content source types for a visualValue Resource

Open
#128 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.