Commit
·
810ef98
1
Parent(s):
e592a1a
Upload dataset_new.jsonl
Browse files- dataset_new.jsonl +30 -0
dataset_new.jsonl
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"instr": "What is the definition of the TwoHandleCup in threejs?", "msg": "function createTwoHandleCup(scene, position = {x: 0, y: 0, z: 0}, color = 0xaaaaaa, size = 1) {\n const cupGeometry = new THREE.CylinderGeometry(2 * size, 2 * size, 5 * size, 32);\n const handleGeometry = new THREE.TorusGeometry(size, size / 2, 16, 100, Math.PI);\n\n const material = new THREE.MeshBasicMaterial({color: color});\n\n const cup = new THREE.Mesh(cupGeometry, material);\n cup.position.set(position.x, position.y + 2.5 * size, position.z);\n\n const handle1 = new THREE.Mesh(handleGeometry, material);\n handle1.position.set(position.x + 2 * size, position.y + 2.5 * size, position.z);\n handle1.rotation.set(0, 0, 3*Math.PI / 2);\n\n const handle2 = new THREE.Mesh(handleGeometry, material);\n handle2.position.set(position.x - 2 * size, position.y + 2.5 * size, position.z);\n handle2.rotation.set(0, 0, Math.PI / 2);\n\n scene.add(cup);\n scene.add(handle1);\n scene.add(handle2);\n }"}
|
| 2 |
+
{"instr": "What is the definition of the ThreeLegTable in threejs?", "msg": "function createThreeLegTable(scene, position = {x: 0, y: 0, z: 0}, color = 0x8B4513, size = 1) {\n const tableTopWidth = 4 * size;\n const tableTopHeight = 0.2 * size;\n const tableTopDepth = 3 * size;\n const legWidth = 0.2 * size;\n const legHeight = 2 * size;\n const legDepth = 0.2 * size;\n\n const tableTopGeometry = new THREE.BoxGeometry(tableTopWidth, tableTopHeight, tableTopDepth);\n const legGeometry = new THREE.BoxGeometry(legWidth, legHeight, legDepth);\n\n const material = new THREE.MeshBasicMaterial({color: color});\n\n const tableTop = new THREE.Mesh(tableTopGeometry, material);\n tableTop.position.set(position.x, position.y + legHeight / 2, position.z);\n\n const leg1 = new THREE.Mesh(legGeometry, material);\n leg1.position.set(position.x + tableTopWidth / 2 - legWidth / 2, position.y - legHeight / 2 - tableTopHeight / 2, position.z + tableTopDepth / 2 - legDepth / 2);\n\n const leg2 = new THREE.Mesh(legGeometry, material);\n leg2.position.set(position.x - tableTopWidth / 2 + legWidth / 2, position.y - legHeight / 2 - tableTopHeight / 2, position.z + tableTopDepth / 2 - legDepth / 2);\n\n const leg3 = new THREE.Mesh(legGeometry, material);\n leg3.position.set(position.x + tableTopWidth / 2 - legWidth / 2, position.y - legHeight / 2 - tableTopHeight / 2, position.z - tableTopDepth / 2 + legDepth / 2);\n\n scene.add(tableTop);\n scene.add(leg1);\n scene.add(leg2);\n scene.add(leg3);\n}"}
|
| 3 |
+
{"instr": "What is the definition of the TwoLidCup in threejs?", "msg": "function createTwoLidCup(scene, position = {x: 0, y: 0, z: 0}, color = 0xaaaaaa, size = 1) {\n const cupGeometry = new THREE.CylinderGeometry(2 * size, 2 * size, 5 * size, 32);\n const lidGeometry = new THREE.CylinderGeometry(2 * size, 2 * size, size / 2, 32);\n\n const material = new THREE.MeshBasicMaterial({color: color});\n\n const cup = new THREE.Mesh(cupGeometry, material);\n cup.position.set(position.x, position.y + 2.5 * size, position.z);\n\n const lidTop = new THREE.Mesh(lidGeometry, material);\n lidTop.position.set(position.x, position.y + 5 * size + size / 2, position.z); // Make the top lid higher\n lidTop.rotation.x = Math.PI / 2;\n\n const lidBottom = new THREE.Mesh(lidGeometry, material);\n lidBottom.position.set(position.x, position.y - size / 4, position.z); // Make the bottom lid lower\n lidBottom.rotation.x = Math.PI / 2;\n\n scene.add(cup);\n scene.add(lidTop);\n scene.add(lidBottom);\n}"}
|
| 4 |
+
{"instr": "What is the definition of the PerfumeBottle in threejs?", "msg": "function createPerfumeBottle(scene, position = {x: 0, y: 0, z: 0}, color = 0xaaaaaa, size = 1) {\n const bottleBottomGeometry = new THREE.CylinderGeometry(2 * size, 3 * size, 4 * size, 32);\n const bottleTopGeometry = new THREE.CylinderGeometry(1 * size, 2 * size, 2 * size, 32);\n const bottleNeckGeometry = new THREE.CylinderGeometry(1 * size, 1 * size, 1 * size, 32);\n\n const material = new THREE.MeshBasicMaterial({color: color});\n\n const bottleBottom = new THREE.Mesh(bottleBottomGeometry, material);\n bottleBottom.position.set(position.x, position.y, position.z);\n\n const bottleTop = new THREE.Mesh(bottleTopGeometry, material);\n bottleTop.position.set(position.x, position.y + 3 * size, position.z);\n\n const bottleNeck = new THREE.Mesh(bottleNeckGeometry, material);\n bottleNeck.position.set(position.x, position.y + 4.5 * size, position.z);\n\n scene.add(bottleBottom);\n scene.add(bottleTop);\n scene.add(bottleNeck);\n}"}
|
| 5 |
+
{"instr": "What is the definition of the WaterKettle in threejs?", "msg": "function createWaterKettle(scene, position = {x: 0, y: 0, z: 0}, color = 0xaaaaaa, size = 1) {\n const kettleBodyGeometry = new THREE.CylinderGeometry(3 * size, 3 * size, 6 * size, 32);\n const handleGeometry = new THREE.TorusGeometry(3 * size, size / 4, 16, 100, Math.PI);\n const spoutGeometry = new THREE.CylinderGeometry(size, 2 * size, 3 * size, 32);\n\n const material = new THREE.MeshBasicMaterial({color: color});\n\n const kettleBody = new THREE.Mesh(kettleBodyGeometry, material);\n kettleBody.position.set(position.x, position.y, position.z);\n\n const handle = new THREE.Mesh(handleGeometry, material);\n handle.position.set(position.x, position.y, position.z + 3 * size);\n handle.rotation.set(0, Math.PI / 2, 0);\n\n const spout = new THREE.Mesh(spoutGeometry, material);\n spout.position.set(position.x + 3 * size, position.y, position.z);\n spout.rotation.z = Math.PI / 2;\n\n scene.add(kettleBody);\n scene.add(handle);\n scene.add(spout);\n}"}
|
| 6 |
+
{"instr": "How to create a TwoHandleCup in Three.js?", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 15;\n\ncreateTwoHandleCup(scene, {x: 0, y: 0, z: 0}, 0xff0000, 1);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 7 |
+
{"instr": "How to create a ThreeLegTable in Three.js?", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 5;\n\ncreateThreeLegTable(scene, {x: 0, y: 0, z: 0}, 0x8B4513, 1);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 8 |
+
{"instr": "How to create a TwoLidCup in Three.js?", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 15;\n\ncreateTwoLidCup(scene, {x: 0, y: 0, z: 0}, 0x0000ff, 1);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 9 |
+
{"instr": "How to create a PerfumeBottle in Three.js?", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 15;\n\ncreatePerfumeBottle(scene, {x: 0, y: 0, z: 0}, 0xff00ff, 1);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 10 |
+
{"instr": "How to create a WaterKettle in Three.js?", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 15;\n\ncreateWaterKettle(scene, {x: 0, y: 0, z: 0}, 0xff00ff, 1);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 11 |
+
{"instr": "Use threejs to call the function to generate the following scene: the Three-leg Table is large, the two-handled cup is small, while two-lid cup, perfume bottle, and water kettle are very small. The bottle of the double-handle cup is placed on the center of the desktop of the three-leg table. Two-lid cup, perfume bottle, and kettle are placed under the three-leg table and each is near a table leg. These five objects do not overlap, and have different colors.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 15;\n\ncreateThreeLegTable(scene, {x: 0, y: 0, z: 0}, 0x00ff00, 3, 1, 1);\n\ncreateTwoHandleCup(scene, {x: 0, y: 3, z: 0}, 0xff0000, 0.5);\n\ncreateTwoLidCup(scene, {x: 3, y: 0, z: 3}, 0x0000ff, 0.2);\n\ncreatePerfumeBottle(scene, {x: -3, y: 0, z: 3}, 0xffff00, 0.2);\n\ncreateWaterKettle(scene, {x: 3, y: 0, z: -3}, 0xff00ff, 0.2);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 12 |
+
{"instr": "Use threejs to call the function to generate the following scene: a Two-lid Cup is placed on a Three-leg Table. The Three-leg Table is larger than the Two-lid Cup. The lowest end of the Two-lid Cup just touches the highest end of the Three-leg Table.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 15;\n\ncreateTwoLidCup(scene, {x: 0, y: 2.5, z: 0}, 0x0000ff, 1);\ncreateThreeLegTable(scene, {x: 0, y: -2, z: 0}, 0x8B4513, 2);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 13 |
+
{"instr": "Create a scene with a ThreeLegTable, TwoLidCup, PerfumeBottle, WaterKettle, and TwoHandleCup, each with specific positions, colors, and sizes in Three.js", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 50;\n\n// Add objects to the scene with position, color, and size\ncreateThreeLegTable(scene, {x: -20, y: 0, z: 0}, 0x00ff00, 1.5);\ncreateTwoLidCup(scene, {x: -10, y: 0, z: 0}, 0x0000ff, 1);\ncreatePerfumeBottle(scene, {x: 0, y: 0, z: 0}, 0xffff00, 0.5);\ncreateWaterKettle(scene, {x: 10, y: 0, z: 0}, 0xff00ff, 2);\ncreateTwoHandleCup(scene, {x: 20, y: 0, z: 0}, 0xff0000, 1.2);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 14 |
+
{"instr": "In Three.js, create a scene where a small Perfume Bottle is placed on top of a larger Water Kettle. The bottom of the Perfume Bottle should align with the top of the Water Kettle.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 15;\n\ncreatePerfumeBottle(scene, {x: 0, y: 5, z: 0}, 0xFFC0CB, 0.5);\ncreateWaterKettle(scene, {x: 0, y: 0, z: 0}, 0x808080, 2);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 15 |
+
{"instr": "Create a scene in Three.js where a TwoHandleCup and a ThreeLegTable are next to each other. The TwoHandleCup is half the size of the ThreeLegTable.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 20;\n\ncreateTwoHandleCup(scene, {x: -5, y: 0, z: 0}, 0xFF0000, 1);\ncreateThreeLegTable(scene, {x: 5, y: 0, z: 0}, 0x8B4513, 2);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 16 |
+
{"instr": "In a Three.js scene, place a Perfume Bottle between two TwoLidCups. The Perfume Bottle is smaller and sits equidistant from both cups.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 15;\n\ncreatePerfumeBottle(scene, {x: 0, y: 0, z: 0}, 0xFFC0CB, 0.5);\ncreateTwoLidCup(scene, {x: -5, y: 0, z: 0}, 0x0000FF, 1);\ncreateTwoLidCup(scene, {x: 5, y: 0, z: 0}, 0x0000FF, 1);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 17 |
+
{"instr": "Create a scene in Three.js with a large Water Kettle surrounded by smaller TwoHandleCups. The cups are arranged in a circle around the kettle.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 30;\n\ncreateWaterKettle(scene, {x: 0, y: 0, z: 0}, 0x808080, 3);\ncreateTwoHandleCup(scene, {x: -7, y: 0, z: 0}, 0xFF0000, 1);\ncreateTwoHandleCup(scene, {x: 7, y: 0, z: 0}, 0xFF0000, 1);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 18 |
+
{"instr": "Create a Three.js scene where a small Perfume Bottle is placed inside a larger TwoLidCup. The Perfume Bottle should fit inside the cup without touching its sides.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 10;\n\ncreateTwoLidCup(scene, {x: 0, y: 0, z: 0}, 0x0000ff, 2);\ncreatePerfumeBottle(scene, {x: 0, y: 0.5, z: 0}, 0xFFC0CB, 0.5);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 19 |
+
{"instr": "In Three.js, create a scene with three TwoHandleCups forming a pyramid structure above a large ThreeLegTable. The base of the pyramid should be just above the table.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 20;\n\ncreateThreeLegTable(scene, {x: 0, y: 0, z: 0}, 0x8B4513, 3);\ncreateTwoHandleCup(scene, {x: -2, y: 4, z: -2}, 0xFF0000, 1);\ncreateTwoHandleCup(scene, {x: 2, y: 4, z: -2}, 0xFF0000, 1);\ncreateTwoHandleCup(scene, {x: 0, y: 4, z: 2}, 0xFF0000, 1);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 20 |
+
{"instr": "Design a Three.js scene where a Perfume Bottle and a TwoHandleCup are placed at opposite ends of a large Water Kettle, maintaining a balanced look.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 25;\n\ncreateWaterKettle(scene, {x: 0, y: 0, z: 0}, 0x808080, 3);\ncreatePerfumeBottle(scene, {x: -10, y: 0, z: 0}, 0xFFC0CB, 0.5);\ncreateTwoHandleCup(scene, {x: 10, y: 0, z: 0}, 0xFF0000, 1);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 21 |
+
{"instr": "In Three.js, create a scene where a Water Kettle is suspended in the air above a TwoLidCup. The kettle should be twice the size of the cup.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\n\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\n\ncamera.position.z = 15;\n\ncreateTwoLidCup(scene, {x: 0, y: 0, z: 0}, 0x0000FF, 1);\ncreateWaterKettle(scene, {x: 0, y: 5, z: 0}, 0x808080, 2);\n\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 22 |
+
{"instr": "Create a Three.js scene with a small Perfume Bottle leaning against a larger Water Kettle. The Bottle is half the size of the Kettle.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\ncamera.position.z = 10;\ncreateWaterKettle(scene, {x: 0, y: 0, z: 0}, 0x808080, 2);\ncreatePerfumeBottle(scene, {x: 1, y: 0, z: 0}, 0xFFC0CB, 1);\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 23 |
+
{"instr": "In Three.js, create a scene with a ThreeLegTable and a TwoHandleCup at each leg. The cups are significantly smaller than the table.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\ncamera.position.z = 20;\ncreateThreeLegTable(scene, {x: 0, y: 0, z: 0}, 0x8B4513, 3);\ncreateTwoHandleCup(scene, {x: -2, y: -2, z: 2}, 0xFF0000, 1);\ncreateTwoHandleCup(scene, {x: 2, y: -2, z: 2}, 0xFF0000, 1);\ncreateTwoHandleCup(scene, {x: 0, y: -2, z: -2}, 0xFF0000, 1);\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 24 |
+
{"instr": "Design a Three.js scene where a large Perfume Bottle is surrounded by four smaller TwoLidCups in a square formation.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\ncamera.position.z = 15;\ncreatePerfumeBottle(scene, {x: 0, y: 0, z: 0}, 0xFFC0CB, 2);\ncreateTwoLidCup(scene, {x: -3, y: 0, z: 3}, 0x0000FF, 1);\ncreateTwoLidCup(scene, {x: 3, y: 0, z: 3}, 0x0000FF, 1);\ncreateTwoLidCup(scene, {x: -3, y: 0, z: -3}, 0x0000FF, 1);\ncreateTwoLidCup(scene, {x: 3, y: 0, z: -3}, 0x0000FF, 1);\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 25 |
+
{"instr": "In Three.js, create a scene with a Water Kettle and a TwoHandleCup on opposite sides of a large ThreeLegTable.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\ncamera.position.z = 25;\ncreateThreeLegTable(scene, {x: 0, y: 0, z: 0}, 0x8B4513, 3);\ncreateWaterKettle(scene, {x: -10, y: 0, z: 0}, 0x808080, 2);\ncreateTwoHandleCup(scene, {x: 10, y: 0, z: 0}, 0xFF0000, 1);\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 26 |
+
{"instr": "Create a scene in Three.js where a small TwoHandleCup is balancing on top of a slender Perfume Bottle.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\ncamera.position.z = 10;\ncreatePerfumeBottle(scene, {x: 0, y: 0, z: 0}, 0xFFC0CB, 1);\ncreateTwoHandleCup(scene, {x: 0, y: 3, z: 0}, 0xFF0000, 0.5);\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 27 |
+
{"instr": "In Three.js, make a scene with a ThreeLegTable, a Water Kettle underneath it, and two TwoLidCups on its top.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\ncamera.position.z = 20;\ncreateThreeLegTable(scene, {x: 0, y: 5, z: 0}, 0x8B4513, 2);\ncreateWaterKettle(scene, {x: 0, y: -5, z: 0}, 0x808080, 2);\ncreateTwoLidCup(scene, {x: -2, y: 6, z: 0}, 0x0000FF, 1);\ncreateTwoLidCup(scene, {x: 2, y: 6, z: 0}, 0x0000FF, 1);\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 28 |
+
{"instr": "Design a Three.js scene where several Perfume Bottles are arranged in a circle around a central TwoHandleCup.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\ncamera.position.z = 15;\ncreateTwoHandleCup(scene, {x: 0, y: 0, z: 0}, 0xFF0000, 2);\nfor (let i = 0; i < 6; i++) { createPerfumeBottle(scene, {x: 5 * Math.sin(i * Math.PI / 3), y: 0, z: 5 * Math.cos(i * Math.PI / 3)}, 0xFFC0CB, 1); }\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 29 |
+
{"instr": "In Three.js, create a scene with a large Water Kettle flanked on each side by a smaller Perfume Bottle.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\ncamera.position.z = 15;\ncreateWaterKettle(scene, {x: 0, y: 0, z: 0}, 0x808080, 2);\ncreatePerfumeBottle(scene, {x: -3, y: 0, z: 0}, 0xFFC0CB, 1);\ncreatePerfumeBottle(scene, {x: 3, y: 0, z: 0}, 0xFFC0CB, 1);\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|
| 30 |
+
{"instr": "Create a Three.js scene where a stack of TwoLidCups is topped with a small Perfume Bottle.", "msg": "import * as THREE from 'https://unpkg.com/three/build/three.module.js';\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);\nconst renderer = new THREE.WebGLRenderer();\nrenderer.setSize(window.innerWidth, window.innerHeight);\ndocument.body.appendChild(renderer.domElement);\ncamera.position.z = 20;\ncreateTwoLidCup(scene, {x: 0, y: 0, z: 0}, 0x0000FF, 1);\ncreateTwoLidCup(scene, {x: 0, y: 2, z: 0}, 0x0000FF, 1);\ncreatePerfumeBottle(scene, {x: 0, y: 4, z: 0}, 0xFFC0CB, 0.5);\nfunction animate() {\n requestAnimationFrame(animate);\n renderer.render(scene, camera);\n}\nanimate();"}
|