Skip to content

Commit

Permalink
Update test.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhushan0504 authored Oct 20, 2024
1 parent 500869f commit 254a28a
Showing 1 changed file with 49 additions and 44 deletions.
93 changes: 49 additions & 44 deletions test.json
Original file line number Diff line number Diff line change
@@ -1,68 +1,73 @@
"[
[
{
"material": {
"ambient": [0.9, 0.1, 0.1],
"diffuse": [1.0, 0.0, 0.0], // Red color
"ambient": [0.5, 0.1, 0.1],
"diffuse": [0.8, 0.2, 0.2],
"specular": [0.3, 0.3, 0.3],
"n": 20,
"alpha": 0.7,
"alpha": 1.0,
"texture": false
},
"vertices": [
[0.5, 0.5, 0.0], // Center of the flower
[0.4, 0.6, 0.0], // Petal point 1
[0.5, 0.75, 0.0], // Petal point 2
[0.6, 0.6, 0.0] // Petal point 3
[0.2, 0.0, 0.2], // Front left bottom
[0.8, 0.0, 0.2], // Front right bottom
[0.8, 0.0, 0.8], // Back right bottom
[0.2, 0.0, 0.8], // Back left bottom
[0.2, 0.5, 0.2], // Front left top
[0.8, 0.5, 0.2], // Front right top
[0.8, 0.5, 0.8], // Back right top
[0.2, 0.5, 0.8], // Back left top
[0.5, 0.8, 0.2], // Front roof peak
[0.5, 0.8, 0.8] // Back roof peak
],
"normals": [
[0, 0, 1],
[0, 0, 1],
[0, 0, 1],
[0, 0, 1]
],
"uvs": [
[0.5, 0.5],
[0.4, 0.6],
[0.5, 0.75],
[0.6, 0.6]
[0, -1, 0], // Bottom
[0, 1, 0], // Top
[1, 0, 0], // Right
[-1, 0, 0], // Left
[0, 0, -1], // Front
[0, 0, 1], // Back
[0, 0.6, -0.8], // Front roof
[0, 0.6, 0.8], // Back roof
[1, 0.6, 0], // Right roof
[-1, 0.6, 0] // Left roof
],
"triangles": [
[0, 1, 2], // Triangle for first petal
[0, 2, 3], // Triangle for second petal
[0, 3, 1] // Triangle for third petal
[0, 2, 1], [0, 3, 2], // Floor
[4, 5, 6], [4, 6, 7], // Ceiling
[1, 2, 6], [1, 6, 5], // Right wall
[0, 4, 7], [0, 7, 3], // Left wall
[0, 1, 5], [0, 5, 4], // Front wall
[2, 3, 7], [2, 7, 6], // Back wall
[4, 8, 5], // Front roof
[7, 6, 9], // Back roof
[5, 8, 9], [5, 9, 6], // Right roof
[4, 9, 8], [4, 7, 9] // Left roof
]
},
{
"material": {
"ambient": [0.9, 0.1, 0.1],
"diffuse": [1.0, 0.0, 0.0], // Red color
"specular": [0.3, 0.3, 0.3],
"n": 20,
"alpha": 0.7,
"ambient": [0.1, 0.1, 0.3],
"diffuse": [0.3, 0.3, 0.8],
"specular": [0.5, 0.5, 0.8],
"n": 10,
"alpha": 1.0,
"texture": false
},
"vertices": [
[0.5, 0.5, 0.0], // Center of the flower
[0.4, 0.4, 0.0], // Petal point 1
[0.5, 0.25, 0.0], // Petal point 2
[0.6, 0.4, 0.0] // Petal point 3
[0.45, 0.0, 0.199], // Bottom left
[0.55, 0.0, 0.199], // Bottom right
[0.45, 0.3, 0.199], // Top left
[0.55, 0.3, 0.199] // Top right
],
"normals": [
[0, 0, 1],
[0, 0, 1],
[0, 0, 1],
[0, 0, 1]
],
"uvs": [
[0.5, 0.5],
[0.4, 0.4],
[0.5, 0.25],
[0.6, 0.4]
[0, 0, -1],
[0, 0, -1],
[0, 0, -1],
[0, 0, -1]
],
"triangles": [
[0, 1, 2], // Triangle for fourth petal
[0, 2, 3], // Triangle for fifth petal
[0, 3, 1] // Triangle for sixth petal
[0, 1, 2], [1, 3, 2] // Door
]
}
]"
]

0 comments on commit 254a28a

Please sign in to comment.