Replies: 12 comments 2 replies
That depends on how you define overlay. You could try rendering one scene and then saving that image to another render target using a |
|
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); |
|
The edges will have obvious jagged edges, and the rotating arrows will disappear |
|
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. |
|
I added a new box and plane to Scene2, but it encountered rendering errors @vanruesc |










Uh oh!
There was an error while loading. Please reload this page.
How to overlay multiple scenes with the same camera for display
All reactions