# Defold 1.2.118 has been released

**URL:** <https://forum.defold.com/t/defold-1-2-118-has-been-released/14603>\
**Category:** Release notes\
**Created:** [December 12, 2017, 3:48pm UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603 "2017-12-12T15:48:46Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![sven](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sven/32/1086_2.png) [@sven](https://forum.defold.com/u/sven)\
**Post date:** [December 12, 2017, 3:48pm UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/1 "2017-12-12T15:48:46Z")

</div>

# Defold 1.2.118

This release includes a couple of fixes enabling better error handling in native extension builds and when hot-reloading shaders. We have also added launch image options to game.project for iPhone X and some that were previously missing.

## Engine

- `DEF-2739` - **Fixed** : Better error handling when reloading invalid shaders.
- `DEF-3035` - **Fixed** : 3D physics objects can now be spawned with a scale != 1.
- `DEF-3026` - **Fixed** : Improved error/warning parsing from native extension compile logs.
- `DEF-2993` - **Fixed** : Added missing launch images (iPhone X, iPhone 6 landscape).

## Work in progress

### Resource properties

We are working on a feature that will make it possible to add resources (textures, texturesets and materials) as script properties.  
This together with the built in property `texture0`, and some new properties for `material`, `textureset` and `texture[1..7]`, this will make it possible to switch both texture, textureset and materials for renderable components at runtime.

### Render Targets with texture resources

We are investigating a way to use texture resources as render target attachments. This means it will be possible to set a texture on a drawable component (sprite, model etc) in the editor, while using the same texture as color attachment for a render target. It will make it easier to create post processing passes without having to do a lot of manual setup in the render scripts. It will also be possible to get the _sampler name_ (as specified in the material file) to _texture property name_ (`texture[0..7]`) for material resources, making it easier to set textures for their correct texture unit as expected by the material.

### Particle stretch and particle orientation along movement direction

The idea for this feature came from a hack-day where the idea was to make it easier to create more advanced particle effects, such as sparks flying or a jet engine flame.

This resulted in two new features currently being implemented; an option to orient particles along the direction it is moving in, and adding a keyable particle property “stretch” where the stretch property can be set according to particle velocity (making it part of the simulation) or fully custom controlled with keys in the curve editor.

---

<div class="post-metadata">

**Author:** ![sven](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sven/32/1086_2.png) [@sven](https://forum.defold.com/u/sven)\
**Post date:** [December 12, 2017, 3:48pm UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/2 "2017-12-12T15:48:58Z")

</div>



---

<div class="post-metadata">

**Author:** ![coderm4ster](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/c/b3f665/32.png) [@coderm4ster](https://forum.defold.com/u/coderm4ster)\
**Post date:** [December 12, 2017, 4:16pm UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/3 "2017-12-12T16:16:41Z")

</div>

Thanks for the update! When is the built-in script debugger expected?

---

<div class="post-metadata">

**Author:** ![universityofgames](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/universityofgames/32/5455_2.png) [@universityofgames](https://forum.defold.com/u/universityofgames)\
**Post date:** [December 13, 2017, 10:40am UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/4 "2017-12-13T10:40:29Z")

</div>

Finally !!!

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [December 13, 2017, 11:19am UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/5 "2017-12-13T11:19:48Z")

</div>

> [@sven](#):
>
> Particle stretch and particle orientation along movement direction

This seems like it will be cool!

Allowing particles to face a specified vector direction dynamically would be useful.

---

<div class="post-metadata">

**Author:** ![sicher](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sicher/32/8_2.png) [@sicher](https://forum.defold.com/u/sicher)\
**Post date:** [December 13, 2017, 12:19pm UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/6 "2017-12-13T12:19:15Z")

</div>

Here’s a quick test with regular sprites but with an additional normal map texture and a custom material and shader to do the light calculations. This is way easier with the new upcoming features.

[https://forum-defold-uploads.b-cdn.net/original/2X/b/ba45ca5f45dcf00fd7a1cd3b16e9b5d92c627dd3.mov](https://forum-defold-uploads.b-cdn.net/original/2X/b/ba45ca5f45dcf00fd7a1cd3b16e9b5d92c627dd3.mov)

---

<div class="post-metadata">

**Author:** ![ross.grams](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/r/cab0a1/32.png) [@ross.grams](https://forum.defold.com/u/ross.grams)\
**Post date:** [December 13, 2017, 1:03pm UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/7 "2017-12-13T13:03:02Z")

</div>

@sicher 😮 Whaaaat?! This is awesome!

---

<div class="post-metadata">

**Author:** ![sicher](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sicher/32/8_2.png) [@sicher](https://forum.defold.com/u/sicher)\
**Post date:** [December 13, 2017, 1:23pm UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/8 "2017-12-13T13:23:48Z")

</div>

Yeah, it looks pretty cool. And the workflow to make this is quite simple. I have on my list to make a tutorial on the method later on.

---

<div class="post-metadata">

**Author:** ![Xorboo](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/xorboo/32/1987_2.png) [@Xorboo](https://forum.defold.com/u/Xorboo)\
**Post date:** [December 13, 2017, 4:07pm UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/9 "2017-12-13T16:07:29Z")

</div>

This looks so good, i can’t even. A couple of questions:

1. If i have a flipbook animated sprite, can i pass the corresponding normalmaps for each sprite?
2. Can i, on the other hand, pass one texture, which will stay the same for every sprite from animation? Some color lookup texture for example, or other stuff i might need in the custom shader.
3. Can i change this second texture dynamically? Not to some rendered texture, but to some (other) texture from the assets?

Tutorial will be awesome, but plain sources of some demo on github should do just as well.

---

<div class="post-metadata">

**Author:** ![Andreas\_Tadic](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/a/e9bcb4/32.png) [@Andreas\_Tadic](https://forum.defold.com/u/Andreas_Tadic)\
**Post date:** [December 13, 2017, 4:28pm UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/10 "2017-12-13T16:28:03Z")

</div>

I don’t want to get to detailed on implementation or api prior to this being released, but I can say that the answer to your questions are all yes 🙂

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [August 2, 2018, 9:11am UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/11 "2018-08-02T09:11:10Z")

</div>

I would love to see how you did this, @sicher ! 😃 I’ve tried to make such an effect in Defold already, tinkering with normal maps, but the results weren’t even close to this 😛 Moreover, which tool do you use to create normal map? I’ve tried with Crazy bump because it’s free, but I saw commercial Sprite Lamp and Sprite DLight in action and they look great

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 2, 2018, 9:46am UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/12 "2018-08-02T09:46:24Z")

</div>

> [@Pawel](#):
>
> I would love to see how you did this

We had an almost finished version of multi texturing, but decided that it wasn’t good enough. It’s been put on the back-burner, but we will definitely do a retake and ship this during the autumn.

> [@Pawel](#):
>
> which tool do you use to create normal map?

I actually think he created them by hand 🙂

---

<div class="post-metadata">

**Author:** ![sven](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sven/32/1086_2.png) [@sven](https://forum.defold.com/u/sven)\
**Post date:** [August 2, 2018, 9:47am UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/13 "2018-08-02T09:47:40Z")

</div>

> [@britzl](#):
>
> I actually think he created them by hand 🙂

I recall we talked about this application: [SpriteIlluminator - Normal map editor for 2d dynamic lighting](https://www.codeandweb.com/spriteilluminator)  
But I’m not sure he ended up using it or not. 🙂

---

<div class="post-metadata">

**Author:** ![sicher](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sicher/32/8_2.png) [@sicher](https://forum.defold.com/u/sicher)\
**Post date:** [August 2, 2018, 6:19pm UTC](https://forum.defold.com/t/defold-1-2-118-has-been-released/14603/14 "2018-08-02T18:19:13Z")

</div>

Yes, I used Sprite Illuminator which allows you to paint normal maps by hand.
