Update the render to use fewer cores

This commit is contained in:
Matt McWilliams 2025-02-09 12:05:46 -05:00
parent 684f880b81
commit 003705adbd
2 changed files with 35 additions and 116 deletions

View File

@ -8,32 +8,33 @@ function rotatePoint(centerX, centerY, distance, angleInDegrees) {
}
let obj = [
"16mm_2in",
"16mm_2in_np",
//"16mm_2in_np",
"16mm_3in",
"16mm_3in_np",
//"16mm_3in_np",
"8mm_2in",
"8mm_2in_np",
//"8mm_2in_np",
"8mm_3in",
"8mm_3in_np",
//"8mm_3in_np",
"35mm_2in",
"35mm_2in_np",
"35mm_3in",
"35mm_3in_np"
//"35mm_2in_np",
"35mm_3in"//,
//"35mm_3in_np"
];
let meta = {
objects : []
}
for (let i = 0; i < 12; i++) {
let starting = (360 / (obj.length * 2));
for (let i = 0; i < obj.length; i++) {
meta.objects.push ({
name : 'film_core_' + obj[i],
material : "white_plastic",
position : rotatePoint(0, 0, 160, i * (360 / 12)),
material : "green_plastic",
position : rotatePoint(0, 0, 120, starting + (i * (360 / obj.length))),
rotation : {
x : 0,
y : 90,
z : i * (360 / 12)
z : starting + (i * (360 / obj.length))
}
});
}

128
meta.json
View File

@ -1,30 +1,18 @@
{
"camera" : {
"x" : 0,
"y" : 0,
"z" : 0
"x" : 120,
"y" : -120,
"z" : 0,
"focus_x" : 130,
"focus_y" : -130
},
"objects": [
{
"name": "film_core_16mm_2in",
"material": "white_plastic",
"material": "green_plastic",
"position": {
"x": 160,
"y": 0,
"z": 0
},
"rotation": {
"x": 0,
"y": 90,
"z": 0
}
},
{
"name": "film_core_16mm_2in_np",
"material": "white_plastic",
"position": {
"x": 138.5640646055102,
"y": 79.99999999999999,
"x": 103.92304845413264,
"y": 59.99999999999999,
"z": 0
},
"rotation": {
@ -35,24 +23,10 @@
},
{
"name": "film_core_16mm_3in",
"material": "white_plastic",
"material": "green_plastic",
"position": {
"x": 80.00000000000001,
"y": 138.56406460551017,
"z": 0
},
"rotation": {
"x": 0,
"y": 90,
"z": 60
}
},
{
"name": "film_core_16mm_3in_np",
"material": "white_plastic",
"position": {
"x": 9.797174393178826e-15,
"y": 160,
"x": 7.34788079488412e-15,
"y": 120,
"z": 0
},
"rotation": {
@ -63,24 +37,10 @@
},
{
"name": "film_core_8mm_2in",
"material": "white_plastic",
"material": "green_plastic",
"position": {
"x": -79.99999999999997,
"y": 138.5640646055102,
"z": 0
},
"rotation": {
"x": 0,
"y": 90,
"z": 120
}
},
{
"name": "film_core_8mm_2in_np",
"material": "white_plastic",
"position": {
"x": -138.5640646055102,
"y": 79.99999999999999,
"x": -103.92304845413264,
"y": 59.99999999999999,
"z": 0
},
"rotation": {
@ -91,24 +51,10 @@
},
{
"name": "film_core_8mm_3in",
"material": "white_plastic",
"material": "green_plastic",
"position": {
"x": -160,
"y": 1.9594348786357652e-14,
"z": 0
},
"rotation": {
"x": 0,
"y": 90,
"z": 180
}
},
{
"name": "film_core_8mm_3in_np",
"material": "white_plastic",
"position": {
"x": -138.56406460551017,
"y": -80.00000000000001,
"x": -103.92304845413263,
"y": -60.000000000000014,
"z": 0
},
"rotation": {
@ -119,24 +65,10 @@
},
{
"name": "film_core_35mm_2in",
"material": "white_plastic",
"material": "green_plastic",
"position": {
"x": -80.00000000000007,
"y": -138.56406460551017,
"z": 0
},
"rotation": {
"x": 0,
"y": 90,
"z": 240
}
},
{
"name": "film_core_35mm_2in_np",
"material": "white_plastic",
"position": {
"x": -2.9391523179536473e-14,
"y": -160,
"x": -2.2043642384652355e-14,
"y": -120,
"z": 0
},
"rotation": {
@ -147,24 +79,10 @@
},
{
"name": "film_core_35mm_3in",
"material": "white_plastic",
"material": "green_plastic",
"position": {
"x": 80.00000000000001,
"y": -138.56406460551017,
"z": 0
},
"rotation": {
"x": 0,
"y": 90,
"z": 300
}
},
{
"name": "film_core_35mm_3in_np",
"material": "white_plastic",
"position": {
"x": 138.56406460551014,
"y": -80.00000000000007,
"x": 103.92304845413261,
"y": -60.00000000000006,
"z": 0
},
"rotation": {