Skip to content

Latest commit

 

History

History
97 lines (49 loc) · 2.28 KB

tutorial-Add_quad_custom_texture.md

File metadata and controls

97 lines (49 loc) · 2.28 KB

HARFANG3D - Dogfight sandbox 2

Tutorial - Add a texture in the scene

1.Import the texture

Import your texture into the folder source/assets/textures/

2.Install Harfang Studio

You can download Harfang studio here : https://www.harfang3d.com/en_US/pricing

screenshot

3.Open the project:

After the installation procedure, start Harfang Studio, then click on "Open Project":

screenshot

From the browser that opens, go to the Dogfight folder and open the file: source/assets/project.prj

screenshot

4.Duplicate the plane.scn scene

From the Project panel, open the primitives/plane.scn scene

screenshot

Save the scene under another name (e.g.: my_plane.scn)

screenshot

screenshot

5.Load the texture into the material

Select the plane in the 3D view panel:

screenshot

In the Inspector panel, deploy the material:

screenshot

Click on the browser to select the Albedo texture:

screenshot

Select the texture:

screenshot

The texture has been assigned to the plane:

screenshot

Save the scene my_plane.scn

screenshot

6.Import the plane into the main scene

From the project explorer, open main.scn:

screenshot

In the Scene/Add menu, import an instance:

screenshot

Import your plane:

screenshot

Press Left-Shift + A to focus on the plane:

screenshot

Use the different types of gizmos to move / orient / scale your plane in the scene:

screenshot

Once you have placed your plane, save it:

screenshot

7.Start the Dogfight !

Start the Dogfight by clicking on the batch:

screenshot

Your texture is well within the scene !

screenshot