> For the complete documentation index, see [llms.txt](https://picnic-in-the-oblivion.gitbook.io/level-editor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://picnic-in-the-oblivion.gitbook.io/level-editor/intro-or-easy/complex-objects.md).

# Complex objects

We can combine different objects to make something new. Let's create lamppost with light glare and a barrel with campfire.

1. Lamppost - first add on the scene lamppost.tscn prefab from STATIC\_OBJECTS/ folder.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2F60YfFdhxk9wwaMIorfZ0%2Fimage.png?alt=media&amp;token=1ae4fb4b-054b-4ffd-9b9a-9bb1d2b2f670" alt=""><figcaption></figcaption></figure>

Then go to the SPRITES/ folder and get sprite\_3d.tscn prefab and place in the scene.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FiojRcCQCAVYwj74or0Vj%2Fimage.png?alt=media&amp;token=16d8aa3e-8cfb-4ab5-95e0-ad0f2932cd3b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
We can change texture of glare by changing **Texture** parameter in inspector. Right click on texture and select **Load**. Search needed texture in **res\://assets/textures/**

![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FnLBRRTZIgA8TbpAMoJfv%2Fimage.png?alt=media\&token=b637950e-f6dc-4184-9ab9-09bb905509b1)
{% endhint %}

Then move sprite to the top of the lamppost.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FuayjLSa37fm7csw9xIQn%2Fimage.png?alt=media&amp;token=db87288c-9297-4a99-a3ce-5c236b5678eb" alt=""><figcaption></figcaption></figure>

Then add point\_light.tscn from LEVEL\_EDITOR/ main folder. And place it on the top of lamppost.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FLF7X6Hzlu6MYHkqtWa6I%2Fimage.png?alt=media&amp;token=3e09d805-da0a-481c-a4a5-bb11c86a0b97" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can change radius of the light by dragging red dot on the right side of the light source. Also you can change light color in inspector in Light group. For strong light raise up Energy parameter around 2-2.5\
![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2F7KDq2KmpWOGBxDSxsK7y%2Fimage.png?alt=media\&token=160b9813-7fb9-4530-bcf3-59759412d1a1)
{% endhint %}

And if we change daylight key inside "level\_settings" node to false.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FnczuD3bC7D3ZruZLALpr%2Fimage.png?alt=media&amp;token=a1b4e812-06a7-4cb8-b4a1-3db39841401d" alt=""><figcaption></figcaption></figure>

Then save level and play.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FqIWDHtS96KfniLTFgpEF%2Fimage.png?alt=media&amp;token=c1dc79e7-d473-4ea6-948f-4353fb023d8c" alt=""><figcaption></figcaption></figure>

Ah yes, we're forget to change sky color and skybox texture for TRUE night :D

Lets fix this. Inside level\_settings node change weather color to black color with hex 0a0a0a in swatches group.\
![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FaQqogRoEXOII3twlh1Yv%2Fimage.png?alt=media\&token=a365aa42-1b3a-422e-9bd1-2f6a3f04efc5)<br>

{% hint style="info" %}
First 3 swatches is day, evening and night sky colors!
{% endhint %}

Select skybox\_1 node and in inspector find out Material Override parameter in Geometry group.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2F0l2zad5bgWIKT1Y9ygFH%2Fimage.png?alt=media&amp;token=e4791bfb-7c2b-4b02-976e-300793348697" alt=""><figcaption></figcaption></figure>

Click on blue sphere and find Albedo group inside the list, open it, click Right mouse on Texture and Load texture form res\://assets/textures/ folder skybox texture with night sky.\
![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FRjCzAbUDo1cpZj9kzT84%2Fimage.png?alt=media\&token=b43c7aaf-6996-437e-8350-518a69eae729)<br>

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FOfBk8uZ2HDJcBWpD06RC%2Fimage.png?alt=media&amp;token=92bd30a4-c40c-47eb-b877-e16dd6c1613c" alt=""><figcaption></figcaption></figure>

Save scene and play again. And its better.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FQxYDUgqJZXd0xgGggRNV%2Fimage.png?alt=media&amp;token=5213724f-4479-4d08-9e6c-60eb3732164a" alt=""><figcaption></figcaption></figure>

2. Campfire - add on the scene barrel.tscn from STATIC\_OBJECTS/ folder. But you can see, that barrel has transparent normals inside.\
   ![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FgcUh8YHJKDEyasviSBAi%2Fimage.png?alt=media\&token=dc626e74-626d-4bb5-9b1e-0ff0a80da210)

Go to inspector and find Material Override in Geometry group. Click on textured sphere. Find Transparency group.\
![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FprboNY7pIMrxPVCP7BGx%2Fimage.png?alt=media\&token=cffa6fa2-f294-436e-a516-d612524934e1)

Find there Cull Mode parameter and set it to Disabled.\
![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FqhVNyPXXipQnxhJuS4Xb%2Fimage.png?alt=media\&token=bdb4465b-eb69-487b-a1b8-3bc35134019d)

Now barrel looks normal.\
![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FMxCH7u3ZJf8Bzce0tpoS%2Fimage.png?alt=media\&token=6c0de183-09a9-4118-8c8e-c5d4bf54735b)

\
Lets add animated fire sprite! Go to SPRITES/ folder and drag sprite\_3d\_anim\_fire.tscn to the scene. And it's underground -\_-\
![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FTMbyK5MNyLAoNy9bIPu4%2Fimage.png?alt=media\&token=71fe7657-6037-4704-b4b1-c9c2f837fc6b)\
\
Drag fire inside barrel. Keep it centered inside.\
![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FHFe8hXlH17QrgfLb4NBU%2Fimage.png?alt=media\&token=6c715f7d-64ed-40e7-9e0a-deabc5afc2dd)![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FVqOUFnyWpkFPcEYbIRZZ%2Fimage.png?alt=media\&token=de9ee20b-5d7c-49f3-ba11-92023befde58)

You can parent sprite to the barrel simply dragging sprite node on barrel node.\
![](https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FAAlCkyZUrOWiEyBsjSJK%2Fimage.png?alt=media\&token=c6c75ade-7be2-44e3-bee6-7dd54a5391e7)

Then add point\_light, you can just duplicate (Ctrl + D) lamppost light and drag it to the barrel.\
Set the color to orange and energy to 1.5.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FujYDnl9ItnHArZVIeq3a%2Fimage.png?alt=media&amp;token=9e98f9d8-f049-48d4-a500-944e01b7ddd7" alt=""><figcaption></figcaption></figure>

Lets test. It works. Also, I recommend placing light source not fully above the barrel but a little bit at the side, 'cause the barrel not be lighted by own light if it will be fully above.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FzabR5Ly7SCLc1q8rXOrV%2Fimage.png?alt=media&amp;token=9a07578b-4f42-4d13-b4ca-f2f5fa116e5d" alt=""><figcaption></figcaption></figure>
