Transparency collada file

1.1k Views Asked by At

I need to change the transparency of a file. Dae (collada), by my code with the library Three.js with dat.gui. I'm using: $gui = new DAT.GUI(); gui.add(opacity_pele, 'pele').onChange(function(){

                if ( opacity_pele.pele ) {
                    material[pele].transparency = 1.0;

                } else {
                    material[pele].transparency = 0.0;

                }

            });
           gui.close();
1

There are 1 best solutions below

2
On

Have you tried seting the transparency right in your 3D editor program? E.g. in Blender you can adjust the transparency of your object on the panels (please see below). I'm using this method for displaying transparent objects and this works perfectly for me.

enter image description here