Apply an opacity to the an entire scene

Question: Is it possible to apply an opacity setting for the scene’s ambient color?

Answer: Yes, it is possible to set the opacity for an entire scene with our x-ray transparency mode:

https://docs.techsoft3d.com/communicator/latest/build/api_ref/typedoc/classes/communicator.view.html#setdrawmode

https://docs.techsoft3d.com/communicator/latest/build/api_ref/typedoc/classes/communicator.view.html#setxrayopacity

Here’s the code that you’ll need:

hwv.view.setDrawMode(Communicator.DrawMode.XRay);
hwv.view.setXRayOpacity(.8);

1 Like