MetaCell / MetaCell/geppetto-meta

Add ability to configure canvas's loaders options

Open
#297 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement geppetto-ui
Dominant language
JavaScript
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I would like to be able to configure how I want the mesh created from an, for example, obj file is created.

The problem that originated the creation of this issue was the need to define the material of the mesh created from an obj as double-sided. With the default values, the obj would be invisible from the inside:

image

For context, adding the following to those default values would fix the issue:
child.material.side = THREE.DoubleSide;
but not all applications need that, so that's why I believe we would be better served with a way to configure those options

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

Start in geppetto.js/geppetto-ui/src/3d-canvas/threeDEngine/MeshFactory.js, especially the default values around lines 537-541, and trace how OBJ loaders create meshes. Define how applications can configure loader options, including the optional material behavior described in the issue. Done means the canvas supports configurable options without forcing all applications to use double-sided materials.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, three.js
Domain
computer-graphics, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.