Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
brasil:courses:blender_unity:unity:3_from_blender_to_unity [2026/08/18 21:21] yannbrasil: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~~
 +</note>
 +
 +------
 +
 ====== From Blender to Unity : Earth V2.0 ====== ====== From Blender to Unity : Earth V2.0 ======
  
Ligne 13: Ligne 19:
 In Blender, we start by generating two spheres: the first for the atmosphere and the second for the Earth. In Blender, we start by generating two spheres: the first for the atmosphere and the second for the Earth.
  
-{{:brasil:courses:blender_unity:unity:earthv2modelisation.png|}}+{{:brasil:courses:blender_unity:unity:earthv2modelisation.png?1024|}} 
 + 
 +Next, create the following shaders: 
 + 
 +{{ :brasil:courses:blender_unity:unity:earthshaderv2.png?1024 |}} 
 + 
 +For the earth, we'll use the following materials: 
 + 
 +  * {{ :brasil:courses:blender_unity:unity:textures-earth-nasa.zip |}} 
 +  * {{ :brasil:courses:blender_unity:unity:milkywayskybox.unitypackage |}} 
 + 
 +For the atmosphere, we'll also use the available image file in the archive: 
 + 
 +{{ :brasil:courses:blender_unity:unity:earthcloudsshaderv2.png?1024 |}} 
 + 
 +Before exporting in GLTF format just remove the "EEVEE" part of renderin. If not, the import of the object will not work : 
 + 
 +{{ :brasil:courses:blender_unity:unity:earthcloudsshaderexportv2.png?1024 |}} 
 + 
 +The result is as follows: 
 + 
 +{{:brasil:courses:blender_unity:unity:earthv2blender.png?1024|}} 
 + 
 +Atmospheric transparency: 
 + 
 +{{ :brasil:courses:blender_unity:unity:earthcloudbackculling.png |}} 
 + 
 +Next, we export the earth and the atmosphere separately in the glTF binary format: 
 + 
 +{{:brasil:courses:blender_unity:unity:exportglb.png?1024|}} 
 + 
 +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://github.com/atteneder/glTFast 
 + 
 +For Unity, importing glTF files requires adding the glTFast package, which is now integrated into Unity: 
 + 
 +https://docs.unity3d.com/Packages/com.unity.cloud.gltfast@6.2/manual/installation.html 
 + 
 +===== 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 ''<color #ed1c24>com.unity.cloud.gltfast</color>''
 +  - 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's “Assets” folder and will be immediately usable as GameObjects: 
 + 
 +{{:brasil:courses:blender_unity:unity:gltfassetsimport.png?1024|}} 
 + 
 +===== 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 :  
 + 
 +{{ :brasil:courses:blender_unity:unity:moon_2k.png?1024 |}} 
 + 
 +{{:brasil:courses:blender_unity:unity:moon.png?1024|}} 
 + 
 +{{:brasil:courses:blender_unity:unity:moonunity.png?1024|}} 
 + 
 +{{:brasil:courses:blender_unity:unity:moonshader.png?1024|}}
brasil/courses/blender_unity/unity/3_from_blender_to_unity.1787080867.txt.gz · Dernière modification : de yann
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0