singleton TSShapeConstructor(DiceCubeDts)
{
baseShape = "./DiceCube.dts";
};
function DiceCubeDts::onLoad(%this)
{
// Sets the size of the baseshape
%this.setDetailLevelSize("0", "600");
// This works
/*
%this.addMesh("DiceCube 2", "art/shapes/dice/DiceCube2.dts", "DiceCube 0");
%this.setDetailLevelSize("2", "500");
%this.addMesh("Dicecube 2", "art/shapes/dice/DiceCube3.dts", "DiceCube 0");
%this.setDetailLevelSize("2", "400");
%this.addMesh("Dicecube 2", "art/shapes/dice/DiceCube4.dts", "DiceCube 0");
%this.setDetailLevelSize("2", "300");
%this.addMesh("Dicecube 2", "art/shapes/dice/DiceCube5.dts", "DiceCube 0");
%this.setDetailLevelSize("2", "200");
%this.addMesh("Dicecube 2", "art/shapes/dice/DiceCube5.dts", "DiceCube 0");
%this.setDetailLevelSize("2", "100");
*/
// This also works
/*
%this.addMesh("DiceCube2", "art/shapes/dice/DiceCube2.dts", "DiceCube 0");
%this.setDetailLevelSize("2", "500");
%this.addMesh("Dicecube2", "art/shapes/dice/DiceCube3.dts", "DiceCube 0");
%this.setDetailLevelSize("2", "400");
%this.addMesh("Dicecube2", "art/shapes/dice/DiceCube4.dts", "DiceCube 0");
%this.setDetailLevelSize("2", "300");
%this.addMesh("Dicecube2", "art/shapes/dice/DiceCube5.dts", "DiceCube 0");
%this.setDetailLevelSize("2", "200");
%this.addMesh("Dicecube2", "art/shapes/dice/DiceCube5.dts", "DiceCube 0");
%this.setDetailLevelSize("2", "100");
*/
/**
* the above two methods create the name+detail using the addMesh()
* it then replaces the +detail part using setDetailLevelSize(old, new)
*
* They essentially create the following methods
* It appears that names are arbitrarily irrelevent, but there must be a name.
*/
// This works too
//%this.addMesh("DiceCube 500", "art/shapes/dice/DiceCube2.dts", "DiceCube 0");
//%this.addMesh("Dicecube 400", "art/shapes/dice/DiceCube3.dts", "DiceCube 0");
//%this.addMesh("Dicecube 300", "art/shapes/dice/DiceCube4.dts", "DiceCube 0");
//%this.addMesh("Dicecube 200", "art/shapes/dice/DiceCube5.dts", "DiceCube 0");
//%this.addMesh("Dicecube 100", "art/shapes/dice/DiceCube6.dts", "DiceCube 0");
// This works too
//%this.addMesh("DiceCube500", "art/shapes/dice/DiceCube2.dts", "DiceCube 0");
//%this.addMesh("Dicecube400", "art/shapes/dice/DiceCube3.dts", "DiceCube 0");
//%this.addMesh("Dicecube300", "art/shapes/dice/DiceCube4.dts", "DiceCube 0");
//%this.addMesh("Dicecube200", "art/shapes/dice/DiceCube5.dts", "DiceCube 0");
//%this.addMesh("Dicecube100", "art/shapes/dice/DiceCube6.dts", "DiceCube 0");
// This works too
// I think this method best reflects the actuality of whats going on
%this.addMesh("detail500", "art/shapes/dice/DiceCube2.dts", "DiceCube 0");
%this.addMesh("detail400", "art/shapes/dice/DiceCube3.dts", "DiceCube 0");
%this.addMesh("detail300", "art/shapes/dice/DiceCube4.dts", "DiceCube 0");
%this.addMesh("detail200", "art/shapes/dice/DiceCube5.dts", "DiceCube 0");
%this.addMesh("detail100", "art/shapes/dice/DiceCube6.dts", "DiceCube 0");
// This Crashes (waahhhhh)
/*
%this.addMesh("500", "art/shapes/dice/DiceCube2.dts", "DiceCube 0");
%this.addMesh("400", "art/shapes/dice/DiceCube3.dts", "DiceCube 0");
%this.addMesh("300", "art/shapes/dice/DiceCube4.dts", "DiceCube 0");
%this.addMesh("200", "art/shapes/dice/DiceCube5.dts", "DiceCube 0");
%this.addMesh("100", "art/shapes/dice/DiceCube5.dts", "DiceCube 0");
*/
}
Comments
0 B
|👍
/👎