Reputation: 11
When I attach the TransformControls to a mesh containing materials with transparent:true, the Transform Control object is ALWAYS placed 'behind' the object it is attached to - meaning, you cannot see it behind the object. This appears to be a bug.
How can I resolve this? Three.js version = v85 enter image description here
Upvotes: 0
Views: 268
Reputation: 11
I found the answer myself.
The solution is to set the renderOrder property of the attached object to -1. This will always place the attached object behind the transformControls object. Adjusting transparency (opacity) of the object material will work fine after that.
Upvotes: 1
Reputation: 419
You can try sidewise rendering.. since here it is mendatory to appear the front side only (to ignore the backview) you can try
Three.MeshYourMaterial({side:THREE.FrontSide})
or
Three.MeshYourMaterial({side:THREE.BackSide})
may be among two of them one can be worked....
Upvotes: 0