MichaelBluetooth / MichaelBluetooth/ifc-transparency-test

Transparency Oddities

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

After reducing the code to the smallest I could I'm seeing something a tad different.

On initial load:
![image](https://user-images.githubusercontent.com/3442848/194871229-beb101b0-a803-4de6-9ea9-d884b07b22c5.png)

When I toggle transparency, the elements in the `everything_else` subset get set to transparent, but the wireframed elements are not transparent and turn a different color.
![image](https://user-images.githubusercontent.com/3442848/194871431-2ba45ce3-c7f2-4cfa-8a4d-f75d946df103.png)

If you look in `ifc.service.ts`, I'm trying to:
1. Get all the express ids in the model
2. Get all the ids of stuff I want to wireframe (declared in `wireframe-elements.ts`)
3. Create a subset of wireframe elements
4. Create a subset of everything else

I'm not sure if this is the underlying problem, but one thing I noticed when debugging using the `/src/app/assets/simple.ifc` file is that my `getIdsFromSubset()` seems to return a different set of IDs than `getWireframeElements()`. I'd expect that the ids in tue wireframe set would exist in the "all" ids collection, so maybe I'm not finding all ids correctly?
![image](https://user-images.githubusercontent.com/3442848/194873024-38b3aeb9-d0a5-49eb-8741-d0cb866dfd19.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in ifc.service.ts and wireframe-elements.ts, using /src/app/assets/simple.ifc to compare the IDs returned by getIdsFromSubset() and getWireframeElements(). Trace how those IDs form the wireframe and everything_else subsets, then verify the transparency result against the two screenshots. Done means the intended wireframed elements and remaining elements receive the expected transparency behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.