# How to decrease transparency / alpha of AR effects on iOS?

**URL:** <https://forum.deepar.ai/t/how-to-decrease-transparency-alpha-of-ar-effects-on-ios/301>\
**Category:** Help & Questions\
**Tags:** effect-help, studio-info\
**Created:** [May 16, 2023, 12:44am UTC](https://forum.deepar.ai/t/how-to-decrease-transparency-alpha-of-ar-effects-on-ios/301 "2023-05-16T00:44:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Lim](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/benjamin_lim/32/447_2.png) [@Benjamin\_Lim](https://forum.deepar.ai/u/Benjamin_Lim)\
**Post date:** [May 16, 2023, 12:44am UTC](https://forum.deepar.ai/t/how-to-decrease-transparency-alpha-of-ar-effects-on-ios/301/1 "2023-05-16T00:44:52Z")

</div>

Does anyone know how to decrease the transparency of the alpha of the AR effects on mobile? My bet is that it has something to do with this code:

```auto
deepAR.changeParameter(gameObject: String!, component: String!, parameter: String!, floatValue: Float)

```

I’m trying to figure out how I can progressively decrease the alpha of the AR layer. Thanks!

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [May 16, 2023, 3:56pm UTC](https://forum.deepar.ai/t/how-to-decrease-transparency-alpha-of-ar-effects-on-ios/301/2 "2023-05-16T15:56:32Z")

</div>

Yes that would be the correct method however the parameters will depend on your exact effect, and you would need to do it for every object in the scene

An alternative might be to render the camera feed under the whole deepar view and somehow control the opacity of that view if that is possible on your platform.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Lim](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/benjamin_lim/32/447_2.png) [@Benjamin\_Lim](https://forum.deepar.ai/u/Benjamin_Lim)\
**Post date:** [May 17, 2023, 5:58pm UTC](https://forum.deepar.ai/t/how-to-decrease-transparency-alpha-of-ar-effects-on-ios/301/3 "2023-05-17T17:58:31Z")

</div>

Thanks for the response Jelena. I’ve tried the alternative method, the main issue is rendering two camera sources at the same time. Do you know if DeepAR lets you render the Arview without the camera view, and lets you handle the camera view yourself? (on iOS)

Thanks you!

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [May 17, 2023, 6:16pm UTC](https://forum.deepar.ai/t/how-to-decrease-transparency-alpha-of-ar-effects-on-ios/301/4 "2023-05-17T18:16:55Z")

</div>

You can capture the frames from DeepAR using offscreen rendering

> **[Offscreen Rendering Guide | DeepAR](https://docs.deepar.ai/deepar-sdk/deep-ar-sdk-for-ios/offscreen-rendering-guide/)**
>
> A cheat-sheet for offscreen rendering on iOS

This will return the entire frame, camera image included but it won’t be treated as a camera feed.
