I need to draw a silhouette on the xy, xz, yz planes together or on other random planes for some objects. How i can get it without generate new objects and change “display mode” using a boolean property. for OrthographicCamera
It similar demo https://codepen.io/vitaly777887/pen/wvawLqe
I also need an algorithm to calculate the silhouette of an object
thanks
yombo
February 6, 2020, 8:00pm
2
You can use a black background and do:
scene.overrideMaterial = new THREE.MeshBasicColor( { color: "White" } );
That will make all objects paint in white (See overrideMaterial )
For the silhouette border, I would use OutlinePass. You can adjust the parameters to obtain the desired thickness etc. See the outline example .
You can render to three textures and show them on three rectangles placed on the three main planes.
1 Like
I know about OutlinePass, but how to render on three main planes. I create Three OutlinePass project.
yombo
February 10, 2020, 5:17pm
4
I told you already: Draw the scene in 3 RenderTarget
s and use them as textures in 3 PlaneBufferGeometry
placed at the main planes.
1 Like
I understood what you mean, but this solution doesn’t suit me. I try to change OutlinePass so that it draws an outline on the main planes.
Thanks
1 Like
Up, I didn’t solve this problem