mrdoob/three.js — Issue #844: how to control the model hide and show
Author: naoomi
Created: 2011-12-05 07:10:10+00:00
State: open

hi:
i am loading a collada model, i want to set a button to control the model "hide/show" .i was trying to use "THREE.Object3D.visiable=true/false",
here is the code i used,but i do not know why it did work...
function toggleshowing() {
//toggle the model showing flag.
showing = !showing;
if (showing) {
//	showing the model
dae.visiable=true;
document.getElementById("butt3").value = 'hidden';
} else {
//hidden the model
dae.visiable=false;
document.getElementById("butt3").value = 'showing';
}
}
here is all the code i used , thanks a lot.http://jsfiddle.net/naooomi/nrt6A/ .thanks a lot.