Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| brasil:courses:blender_unity:unity:2_game_objects [2026/08/24 20:46] – yann | brasil:courses:blender_unity:unity:2_game_objects [2026/08/24 21:21] (Version actuelle) – [Scene Rendering] yann | ||
|---|---|---|---|
| Ligne 32: | Ligne 32: | ||
| From Windows File Explorer, copy and paste your earth texture into the “Textures” subfolder. | From Windows File Explorer, copy and paste your earth texture into the “Textures” subfolder. | ||
| - | {{: | + | {{: |
| Now, go to the menu at the very top: GameObject / 3D Object / Sphere. | Now, go to the menu at the very top: GameObject / 3D Object / Sphere. | ||
| - | {{: | + | {{ : |
| We create a sphere primitive directly in Unity. | We create a sphere primitive directly in Unity. | ||
| Ligne 43: | Ligne 43: | ||
| Our GameObject is named “Sphere” and consists of 3 components. | Our GameObject is named “Sphere” and consists of 3 components. | ||
| - | {{: | + | {{ : |
| The Different Components of the “Sphere” GameObject | The Different Components of the “Sphere” GameObject | ||
| Ligne 62: | Ligne 62: | ||
| It’s important to name things properly; otherwise, when your scene contains dozens of GameObjects, | It’s important to name things properly; otherwise, when your scene contains dozens of GameObjects, | ||
| - | {{: | + | {{ : |
| Collisions aren't important in this example, so we're going to remove (delete) the “Sphere Collider” component. | Collisions aren't important in this example, so we're going to remove (delete) the “Sphere Collider” component. | ||
| - | {{: | + | {{ : |
| We’re now going to create a material so we can assign the texture to the sphere. | We’re now going to create a material so we can assign the texture to the sphere. | ||
| Ligne 73: | Ligne 73: | ||
| Now create a new material (Create / Material) | Now create a new material (Create / Material) | ||
| - | {{: | + | {{ : |
| You will name this material “EarthMat.” | You will name this material “EarthMat.” | ||
| Select this material; its properties will appear in the right-hand panel. | Select this material; its properties will appear in the right-hand panel. | ||
| - | Click the small dot (anchor) next to Albedo. | + | Click the small dot (anchor) next to " |
| Select the earth texture (JPEG bitmap texture). | Select the earth texture (JPEG bitmap texture). | ||
| - | {{: | + | {{ : |
| + | |||
| + | {{ : | ||
| We're now going to assign the “EarthMat” material to our “Earth” sphere. | We're now going to assign the “EarthMat” material to our “Earth” sphere. | ||
| Ligne 87: | Ligne 89: | ||
| Select the “EarthMat” material. | Select the “EarthMat” material. | ||
| - | {{: | + | {{ : |
| + | |||
| + | {{ : | ||
| ===== Scene Rendering ===== | ===== Scene Rendering ===== | ||
| Ligne 101: | Ligne 105: | ||
| – Or, you can set the camera to a wider field of view. | – Or, you can set the camera to a wider field of view. | ||
| - | {{: | + | {{ : |
| Set “Field of view” to 10, select “Solid Color” for Clear Flags, and set the Background to black. To get pure black, all three R, G, and B components must be 0. Set the camera' | Set “Field of view” to 10, select “Solid Color” for Clear Flags, and set the Background to black. To get pure black, all three R, G, and B components must be 0. Set the camera' | ||
| - | + | {{ : | |
| - | {{: | + | |
| There you go—our scene is ready to be rendered! | There you go—our scene is ready to be rendered! | ||
| Ligne 114: | Ligne 117: | ||
| The Play button lets you preview the game's runtime. | The Play button lets you preview the game's runtime. | ||
| - | {{: | + | {{ : |
