Replies: 12 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
That depends on how you define overlay. You could try rendering one scene and then saving that image to another render target using a |
Beta Was this translation helpful? Give feedback.
-
I don't quite understand. This did not successfully display two scenes |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm sorry, but it's not clear to me what result you're trying to achieve. If you're simply trying to render two scenes separately, one after another, then you can chain two const renderPass1 = new RenderPass(...);
const renderPass2 = new RenderPass(...);
renderPass2.clearPass.enabled = false;
composer.addPass(renderPass1);
composer.addPass(renderPass2);
composer.addPass(effectPass); |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
The edges will have obvious jagged edges, and the rotating arrows will disappear |
Beta Was this translation helpful? Give feedback.
-
If you render a blue arrow on a blue background, you won't be able to see it. The green arrow is slightly transparent, so rendering that on a blue background will yield green-blue results. The following example uses MSAA to reduce aliasing artifacts. Please note that raising the outline edge strength above 1 will interfere with antialiasing because it expects colors to be in low dynamic range [0.0, 1.0]: https://stackblitz.com/edit/three-ez-postprocessing-external-2zdftd?file=src%2Fmain.ts This demo first renders the main scene. Then it applies the outline effect to that scene and finally the transform gizmo is rendered on top of that. The result is then copied to screen. |
Beta Was this translation helpful? Give feedback.
-
I added a new box and plane to Scene2, but it encountered rendering errors @vanruesc |
Beta Was this translation helpful? Give feedback.
-
How to overlay multiple scenes with the same camera for display
Beta Was this translation helpful? Give feedback.
All reactions