IT201_Sprint2_ Anass Quaye
This Unity application allows users to draw shapes in a 3D environment, customize their appearance (color, shape, material), and interact with UI elements to control these features dynamically. Additionally, a real-time clock is displayed on the UI, showing the current time in a selected time zone, which can be changed using a dropdown menu. The app also includes options to apply random rotations to shapes and reset them to their original orientations.
How to Use the App
- Shape, Color, and Material Selection: Users interact with dropdown menus to select shape, color, and material.
- Color Customization: Use sliders to adjust RGB values for color customization.
- Creating Shapes: Clicking on the screen creates a shape at the mouse position.
- Creating Grids: Right-clicking creates a grid of shapes at the mouse position.
- Clearing Shapes: The Clear button deletes all created shapes.
- Applying Material: The Apply Material button applies the selected material and color to the last created shape.
- Mouse Position Display: The current mouse position is displayed on the UI for reference.
- Clock Display: A clock is displayed, showing the current time in the selected time zone.
- Time Zone Selection: A dropdown menu allows users to select the time zone for the clock display.
- Random Rotation: A checkbox to apply random rotations to all created shapes.
- Reset Rotation: A button to reset rotations of all shapes to their original orientations.
Features
Draw Shapes
- Input: Mouse click (left-click).
- Process: Raycast to determine click position, create shape object based on dropdown selection.
- Output: Displays a single shape at the clicked position.
Draw Grid of Shapes
- Input: Mouse click (right-click).
- Process: Raycast to determine click position, create a grid of shapes based on dropdown selection.
- Output: Displays a grid of shapes starting from the clicked position.
Color Customization
- Input: RGB Sliders or Color Dropdown.
- Process: Adjust RGB values or select a predefined color.
- Output: Updates the preview color and applies it to newly created shapes.
Material Selection
- Input: Material Dropdown.
- Process: Selects a material from the dropdown.
- Output: Applies the selected material to newly created shapes.
Clear Scene
- Input: Clear Button click.
- Process: Destroys all created shapes.
- Output: Removes all shapes from the scene.
Apply Material
- Input: Apply Material Button click.
- Process: Applies selected material and color to the last created shape.
- Output: Updates the material and color of the selected shape.
Clock Display
- Input: System time and selected time zone.
- Process: Converts UTC time to the selected time zone and formats the time string.
- Output: Displays the current time in the selected time zone on the UI.
Time Zone Selection
- Input: Dropdown menu selection.
- Process: Updates the selected time zone based on the dropdown menu.
- Output: Changes the time zone for the clock display.
Apply Random Rotation
- Input: Apply Random Rotation Checkbox click.
- Process: Applies a random rotation to each created shape.
- Output: Rotates all shapes randomly.
Reset Rotation
- Input: Reset Rotation Button click.
- Process: Resets each shape's rotation to its original orientation.
- Output: Shapes return to their original rotations.
Leave a comment
Log in with itch.io to leave a comment.