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:3_from_blender_to_unity [2026/08/18 21:21] – [Modeling Our Earth 2.0] yann | brasil:courses:blender_unity:unity:3_from_blender_to_unity [2026/09/16 15:51] (Version actuelle) – [Fly to the Moon] yann | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | <note tip> | ||
| + | **Get an offline copy of this page by clicking the libreoffice writer icon** ~~ODT~~ | ||
| + | </ | ||
| + | |||
| + | ------ | ||
| + | |||
| ====== From Blender to Unity : Earth V2.0 ====== | ====== From Blender to Unity : Earth V2.0 ====== | ||
| Ligne 14: | Ligne 20: | ||
| {{: | {{: | ||
| + | |||
| + | Next, create the following shaders: | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | For the earth, we'll use the following materials: | ||
| + | |||
| + | * {{ : | ||
| + | * {{ : | ||
| + | |||
| + | For the atmosphere, we'll also use the available image file in the archive: | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Before exporting in GLTF format just remove the " | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | The result is as follows: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Atmospheric transparency: | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Next, we export the earth and the atmosphere separately in the glTF binary format: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | To import these files directly into Unity, you need to add an import plugin. There are several available; we’ll install FastGLTF, which supports version 2.0 of the GLTF format. | ||
| + | |||
| + | |||
| + | ===== FastGLTF for importing GLTF files into Unity ===== | ||
| + | |||
| + | The project can be found at the following GitHub addresshttps:// | ||
| + | |||
| + | For Unity, importing glTF files requires adding the glTFast package, which is now integrated into Unity: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | ===== Install the Unity glTFast package using the Unity Package Manager ===== | ||
| + | |||
| + | |||
| + | To install the Unity glTFast package, follow these steps: | ||
| + | |||
| + | - In your Unity project, go to **Windows > Package Manager**. | ||
| + | - On the status bar, select the Add **(+)** button. | ||
| + | - From the Add menu, select Add + package by name. The Name and Version fields appear. | ||
| + | - In the Name field, enter ''< | ||
| + | - Select **Add**. | ||
| + | - | ||
| + | The Editor installs the latest available version of the package and any dependent packages. | ||
| + | |||
| + | Once the plugin is installed, glTF files can be dragged and dropped into the project' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ===== Fly to the Moon ===== | ||
| + | |||
| + | Now it's your turn to create the moon in glTF format using Blender and import it into Unity: | ||
| + | |||
| + | Moon Texture : | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
