You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a hard time using the R3F -postprocessing library so I decided to use raw threejs classes:
By diving into the R3F extending third party library tutorials I managed to setup the renderPass and the outlinePass with typescript https://docs.pmnd.rs/react-three-fiber/tutorials/typescript
Now I wish to add a mesh to the scene and trigger the outlinePass effect on it.
I tried pushing the mesh to the selectedObjects but the Outline is not working:
const outlinePass = ViewerModel.effectComposer!
.passes[1] as unknown as OutlinePass;
outlinePass.selectedObjects = [];
outlinePass.selectedObjects.push(mesh);
This discussion was converted from issue #3305 on August 10, 2024 10:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm having a hard time using the R3F -postprocessing library so I decided to use raw threejs classes:
By diving into the R3F extending third party library tutorials I managed to setup the renderPass and the outlinePass with typescript https://docs.pmnd.rs/react-three-fiber/tutorials/typescript
The code is in the following sandbox:
https://codesandbox.io/p/sandbox/r3f-outlinepass-vdvhm8
Now I wish to add a mesh to the scene and trigger the outlinePass effect on it.
I tried pushing the mesh to the selectedObjects but the Outline is not working:
Beta Was this translation helpful? Give feedback.
All reactions