Create a 3D downloadable image based on an entered prompt
Key Features Added:
Shape Customization: The user can choose between a cube or sphere by entering the shape in the prompt.
Color Customization: The user can input a color in the form of a hex code (e.g., #ff0000 for red), which will apply to the 3D object's material.
Rotation: Rotation can be customized from the prompt and adjusted using sliders for the X, Y, and Z axes.
Scale: The user can scale the object using a slider, adjusting how large or small the 3D object appears.
User Controls: There are sliders below the canvas that allow users to interactively rotate the object around the X, Y, and Z axes and change its scale dynamically.
How to Use:
Enter a shape, color, rotation, and scale in the text input (e.g., cube, #ff0000, 0.5, 1.5).
Press Create 3D Object to generate the object.
Use the sliders to rotate or scale the object interactively.
Press Download as Image to save the 3D object as a PNG file.
Example Prompt:
cube, #ff0000, 1, 2 – This will generate a red cube, rotated slightly, and scaled larger.
sphere, #00ff00, 0.5, 1.2 – This will generate a green sphere with a small rotation and slight scaling.
Shape Options: The user can now input cube, sphere, cylinder, cone, or torus as shape options.