diff --git a/components/canvascomponent.js b/components/canvascomponent.js index a7bf181..07fceb4 100644 --- a/components/canvascomponent.js +++ b/components/canvascomponent.js @@ -12,6 +12,7 @@ export function CanvasComponent({setCanvasRef, gltfModel}) { return ( <> @@ -28,14 +29,14 @@ function Scene({ setCanvasRef, gltfModel }) { // Set camera position closer to the object // camera.position.set(0, 0, 5); // x, y, z - + setCanvasRef(gl.domElement); return ( <> - // highlight-line + // highlight-line ); @@ -50,7 +51,7 @@ function Model({ gltfModel, ...props }) { return ( @@ -64,7 +65,7 @@ function Light({ brightness, color }) { height={3} color={color} intensity={brightness} - position={[-2, 0, 5]} + position={[7, 0, 3]} lookAt={[0, 0, 0]} penumbra={1} castShadow diff --git a/components/sample_3d_models/ancient_vase.glb b/components/sample_3d_models/ancient_vase.glb new file mode 100644 index 0000000..2688748 Binary files /dev/null and b/components/sample_3d_models/ancient_vase.glb differ diff --git a/components/sample_3d_models/arm_chair__furniture.glb b/components/sample_3d_models/arm_chair__furniture.glb new file mode 100644 index 0000000..c07f18f Binary files /dev/null and b/components/sample_3d_models/arm_chair__furniture.glb differ diff --git a/components/sample_3d_models/converse.glb b/components/sample_3d_models/converse.glb new file mode 100644 index 0000000..ab6d1a5 Binary files /dev/null and b/components/sample_3d_models/converse.glb differ diff --git a/public/sneaker.glb b/components/sample_3d_models/sneaker.glb similarity index 100% rename from public/sneaker.glb rename to components/sample_3d_models/sneaker.glb diff --git a/pages/index.js b/pages/index.js index 5e21f4a..3282c41 100644 --- a/pages/index.js +++ b/pages/index.js @@ -78,7 +78,7 @@ export default function Studio(){ "Content-Type": "application/json", }, body: JSON.stringify({ - prompt: promptText + ", photorealistic, high resolution product photography", + prompt: promptText + ", photorealistic, high resolution product photography, don't modify product", negative_prompt: "blurry, painting, cartoon, abstract, ugly, deformed", image: image, mask: mask,