(2019-07-16, 6:41)Lasse Deleuran Wrote: A quick and dirty approach to this is to use the same type of method overwriting as for the other modes:
Code:var acceptedColors = [1, 2, 4, 5, 13, 14, 19, 22, 25, 27, 69, 71, 72, 73, 74, 77, 288, 308, 484];
THREE.LDRStep.prototype.addSubModel = function(subModel) {
subModel.colorID = acceptedColors[Math.floor(Math.random() * acceptedColors.length)];
this.subModels.push(subModel);
}
This leaves each type of part with a random color. All studs on a brick will thus be colored the same random color.
If you want each part to have its own color (such as each stud on a brick in its own color) then additional functions have to be overwritten.
I think what is wanted is the colors for all the quads/tri/and subparts in the top level file to be randomized.