> For the complete documentation index, see [llms.txt](https://jiffycrew.gitbook.io/jiffycrew-hatching-unity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jiffycrew.gitbook.io/jiffycrew-hatching-unity/getting-started/step-1-configure-scene.md).

# Step 1: Configure Scene

We describe here how to configure the first hatching scene using Jiffycrew Hatching (UE4).

## Make a simple test scene with basic 3D shapes and materials <a href="#make-a-simple-level-with-basic-3d-shapes" id="make-a-simple-level-with-basic-3d-shapes"></a>

### Add shapes

Create a new scene and name it "TutorialScene". Then add a plane at the origin (0,0,0) and add a sphere at (0,0.4,0).

![](https://859944319-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LaPCtUvXbkkavpHbH8q%2F-LaxslMGbk-nalZKjygA%2F-LaxuMviTJaWU-aVF7YE%2F1.jpg?alt=media\&token=e92bfc01-e76c-470b-9b91-8e4229d0bc20)

### Setup materials

Create two materials and name them "SphereMat", and "FloorMat." Make their albedo to (128,128,128,255). Apply SphereMat to the sphere, Apply FloorMat to Floor.

![](https://859944319-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LaPCtUvXbkkavpHbH8q%2F-LaxslMGbk-nalZKjygA%2F-LaxsS8l3_-zQrCZta65%2F3.jpg?alt=media\&token=b0b5d32a-dd9b-4f01-bffd-030d958599bf)

### Setup lights

Change Directional Light's rotation to (50,90,0).&#x20;

![](https://859944319-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LaPCtUvXbkkavpHbH8q%2F-LaxycJ2dXQeKE18t3P8%2F-LaxysOnKEBx7AnxaY1e%2F2-2.jpg?alt=media\&token=99f6af73-accb-4999-a947-0504bcc40174)

### Setup cameras

Change the Main Camera's Position to (0,2,-2), and Rotation to (45,0,0).&#x20;

![](https://859944319-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LaPCtUvXbkkavpHbH8q%2F-LaxwaKpehhgAw3vI8Oa%2F-LaxsAdBAvnMaqL6pkxJ%2F2.jpg?alt=media\&token=ac5bc1b7-9a6c-47a0-8d3b-7ef05a567925)

## Apply Hatching

Applying hatching to a scene is simply done by adding a script to Main Camera.&#x20;

Find "JiffycrewHatching.cs" script in /Assets/JiffycrewHatching/Scripts and click Main Camera in the Hierarchy to open its Inspector. Add JiffycrewHatching.cs to Main Camera.

![](https://859944319-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LaPCtUvXbkkavpHbH8q%2F-LaxzgOpFuueENqe13QX%2F-LaxvC0YZsaBK-rEVTo3%2F4.jpg?alt=media\&token=c8546375-25a9-4516-a810-7af1b28ab4e2)

Click Game tap to see our initial Hatching Result.

![](https://859944319-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LaPCtUvXbkkavpHbH8q%2F-LaxyU3uspiNhDKg97Gk%2F-LaxvLNIKqUnLHougMGA%2F5.jpg?alt=media\&token=92b145e0-9382-4683-a326-99d5a658dc78)
