static void Init() { int a = Voxlap.Initialize(); Voxlap.AddStack("voxdata.zip"); or = Voxlap.LoadNull(); Voxlap.LoadSky("png/TOONSKY.JPG"); //or = Voxlap.LoadVoxel("vxl/untitled.vxl"); Voxlap.SetLightingMode(Voxlap.LightingType.Multipointsource); or = new Voxlap.Orientation() { ifo = new Voxlap.dpoint3d() { x = 1, y = 0, z = 0 }, ihe = new Voxlap.dpoint3d() { x = 0, y = 0, z = 1 }, ist = new Voxlap.dpoint3d() { x = 0, y = 1, z = 0 }, ipo = new Voxlap.dpoint3d() { x = 50, y = 50, z = 256 - 200 } }; Voxlap.ClearRect( new Voxlap.lpoint3d() { x = 0, y = 0, z = 0 }, new Voxlap.lpoint3d() { x = 2047, y = 2047, z = 255 }); Voxlap.UpdateVxl(); Voxlap.SetRectWithWoodTexture( new Voxlap.lpoint3d() { x = 0, y = 0, z = 256 - 8 }, new Voxlap.lpoint3d() { x = 2047, y = 2047, z = 255 }, Color.BurlyWood); Voxlap.SetRectWithWoodTexture( new Voxlap.lpoint3d() { x = 1000, y = 2047, z = -100 }, new Voxlap.lpoint3d() { x = 2047, y = 2047, z = 255 }, Color.BurlyWood); Voxlap.SetMaxScanDistToMax(); Voxlap.SetMipUse(10); Voxlap.UpdateVxl(); //or.ipo.z -= 70; }
static void Init() { int a = Voxlap.Initialize(); Voxlap.AddStack("voxdata.zip"); or = Voxlap.LoadNull(); Voxlap.LoadSky("png/TOONSKY.JPG"); //or = Voxlap.LoadVoxel("vxl/untitled.vxl"); Voxlap.SetLightingMode(Voxlap.LightingType.Multipointsource); or = new Voxlap.Orientation() { ifo = new Voxlap.dpoint3d() { x = 1, y = 0, z = 0 }, ihe = new Voxlap.dpoint3d() { x = 0, y = 0, z = 1 }, ist = new Voxlap.dpoint3d() { x = 0, y = 1, z = 0 }, ipo = new Voxlap.dpoint3d() { x = 50, y = 50, z = 256-200} }; Voxlap.ClearRect( new Voxlap.lpoint3d() { x = 0, y = 0, z = 0 }, new Voxlap.lpoint3d() { x = 2047, y = 2047, z = 255 }); Voxlap.UpdateVxl(); Voxlap.SetRectWithWoodTexture( new Voxlap.lpoint3d() { x = 0, y = 0, z = 256-8 }, new Voxlap.lpoint3d() { x = 2047, y = 2047, z = 255 }, Color.BurlyWood); Voxlap.SetRectWithWoodTexture( new Voxlap.lpoint3d() { x = 1000, y = 2047, z = -100 }, new Voxlap.lpoint3d() { x = 2047, y = 2047, z = 255 }, Color.BurlyWood); Voxlap.SetMaxScanDistToMax(); Voxlap.SetMipUse(10); Voxlap.UpdateVxl(); //or.ipo.z -= 70; }