Open GoogleCodeExporter opened 8 years ago
Simply override viewer.onloadingcomplete() method, in which create a new
material with the given color and set it to your mesh:
viewer.onloadingcomplete = function() {
// this assumes your scene contains only a single mesh
var mesh = viewer.getScene().getChildren()[0];
mesh.setMaterial(new JSC3D.Material('', 0, the_given_color, 0, true));
};
and it will be ok.
Original comment by Humu2...@gmail.com
on 13 Jan 2014 at 9:07
Original issue reported on code.google.com by
papa...@gmail.com
on 12 Jan 2014 at 12:34