question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OutlinePass does not support outlining child meshes

See original GitHub issue

Hello!

problem

I noticed that outline only works if Your objects are directly children of scene. Because of that, when I try to outline object that is child of an object in scene. The visible = false flag on parent makes child object invisible for outline pass.

live code snippet

soon

possible solutions

  • cloning scene?
  • using transparency instead of visibility?

I noticed that @Mugen87 is familiar with three.js/examples/js/postprocessing/OutlinePass.js

I could try to fix this issue, but I think that idea how to do it should be discussed here first.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Mugen87commented, May 25, 2020

I mean you never know what layer is used by a camera to render something on screen. I guess this could be a problem 🤔

0reactions
938640624commented, Aug 27, 2021

Hello, when I highlighted the mesh, the AxesHelper and coordinate axes in the scene were highlighted together. Is there any solution for this? Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

OutlinePass for child meshes - Questions - three.js forum
I am trying to use the OutlinePass example to outline meshes that can possibly be children of other meshes.
Read more >
How to use Three.js OutlinePass with React? - Stack Overflow
I'm trying to make this Post-processing Outline Thee.js example work using React server side rendering. My main problem is are these lines (47...
Read more >
Create a 3D Outline Animation with Three.js - Tips4Devs.com
The trick is to enable transparency on the mesh and set the opacity to 0 , This way the model is not visible...
Read more >
Screen-space outline effect for Unity (FREE) - Unity Forum
This is a screen space effect, it trades performance for outline quality. ... That said, HDRP outlines are not supported yet.
Read more >
Showing highlighted silhouette of mesh ONLY when it is ...
What I want to do is highlight the outline of these avatars ONLY when they are occluded by any other object, meaning that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found