Skip to content

Edges shown when they should be hidden by other objects #718

@CabeDigicorp

Description

@CabeDigicorp

Describe the bug 📝

This is a sample model with PostProductionAspect set to "COLOR":
Image

And this is the same model with PostProductionAspect set to "COLOR_PEN":
Image

As you can see, a bunch of edges that should be hidden by other structures are visible.

This is my configuration for PostProduction:

world.renderer = new OBCF.PostproductionRenderer(components, viewerDiv);
    
world.renderer.postproduction.enabled = true;
world.renderer.postproduction.style = OBCF.PostproductionAspect.COLOR; //or COLOR_PEN
world.renderer.postproduction.outlinesEnabled = true;
world.renderer.postproduction.smaaEnabled = true;

world.renderer.postproduction.edgesPass.width = 1;
world.renderer.postproduction.edgesPass.mode = OBCF.EdgeDetectionPassMode.DEFAULT;
world.renderer.postproduction.edgesPass.color.set("#343a40");

Reproduction ▶️

No response

Steps to reproduce 🔢

No response

System Info 💻

System:
    OS: Windows 11 10.0.26200
    CPU: (16) x64 AMD Ryzen 9 6900HX with Radeon Graphics
    Memory: 14.89 GB / 31.24 GB
  Binaries:
    Node: 22.12.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.21 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.1 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Chrome: 146.0.7680.165
    Edge: Chromium (146.0.3856.62)
    Firefox: 149.0 - C:\Program Files\Mozilla Firefox\firefox.exe
    Internet Explorer: 11.0.26100.7309

Used Package Manager 📦

npm

Error Trace/Logs 📃

No response

Validations ✅

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
  • Check that this is a concrete bug. For Q&A join our Community.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions