# Orthographic camera ignoring depth?

**URL:** <https://forums.unrealengine.com/t/orthographic-camera-ignoring-depth/323780>\
**Category:** Rendering\
**Tags:** orthographic, ignore, unreal-engine, question\
**Created:** [July 2, 2015, 4:12am UTC](https://forums.unrealengine.com/t/orthographic-camera-ignoring-depth/323780 "2015-07-02T04:12:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AronD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AronD](https://forums.unrealengine.com/u/AronD)\
**Post date:** [July 2, 2015, 4:12am UTC](https://forums.unrealengine.com/t/orthographic-camera-ignoring-depth/323780/1 "2015-07-02T04:12:58Z")

</div>

Hi,  
I have a 2D game where I’ve put different sprites on the scene on top of each other, but it seems that the orthographic camera I use ignores depth, and therefore some sprites that should be in front of the others, don’t show up, just sometimes, or just behind the actor that I’ve put behind them.

When I switch to perspective mode, everything works fine. The problem with that is that I need an orthographic camera( I’ve got a sprite that follows the finger of the player where the screen is touched, and this only works with orthographic properly)

Is there a workaround?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [November 9, 2015, 3:40am UTC](https://forums.unrealengine.com/t/orthographic-camera-ignoring-depth/323780/2 "2015-11-09T03:40:50Z")

</div>

bump? anyone has a solution?

---

<div class="post-metadata">

**Author:** ![Achilleon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Achilleon](https://forums.unrealengine.com/u/Achilleon)\
**Post date:** [November 9, 2015, 3:50am UTC](https://forums.unrealengine.com/t/orthographic-camera-ignoring-depth/323780/3 "2015-11-09T03:50:48Z")

</div>

Have all your 2d Flipbooks have translucent materials and fiddle with the sort order.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [November 9, 2015, 4:11am UTC](https://forums.unrealengine.com/t/orthographic-camera-ignoring-depth/323780/4 "2015-11-09T04:11:44Z")

</div>

What if I’m using sprites created straight from images, no flipbooks or particular materials? They’re all using TranslucentUnlitSpriteMaterial.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [November 18, 2015, 9:47pm UTC](https://forums.unrealengine.com/t/orthographic-camera-ignoring-depth/323780/5 "2015-11-18T21:47:27Z")

</div>

Hi everyone,

Unfortunately Orthographic cameras are not intended to display depth. I did just check on my end and layers still appear to be working correctly, however once the game is run the orthographic view will not display depth, whatever is closed to the camera will appear on the topmost layer. For additional information on orthographic cameras, please take a look here:

> **[Orthographic projection](https://en.wikipedia.org/wiki/Orthographic_projection)**
>
> Orthographic projection (also orthogonal projection and analemma)\[a\] is a means of representing three-dimensional objects in two dimensions. Orthographic projection is a form of parallel projection in which all the projection lines are orthogonal to the projection plane, resulting in every plane of the scene appearing in affine transformation on the viewing surface. The obverse of an orthographic projection is an oblique projection, which is a parallel projection in which the projection lines Th...

If you are looking to display depth in a 2D environment, you will need to utilize a perspective camera positioned to display depth while maintaining a 2D view. You can find additional information on perspective cameras here:

> **[Perspective (graphical)](https://en.wikipedia.org/wiki/Perspective_(graphical))**
>
> Linear or point-projection perspective (from Latin: perspicere 'to see through') is one of two types of graphical projection perspective in the graphic arts; the other is parallel projection.\[citation needed\] Linear perspective is an approximate representation, generally on a flat surface, of an image as it is seen by the eye. Perspective drawing is useful for representing a three-dimensional scene in a two-dimensional medium, like paper.
> The most characteristic features of linear perspective ...

---

<div class="post-metadata">

**Author:** ![Anonymous\_5159d00b0e4ee0018d110305c74f8704](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_5159d00b0e4ee0018d110305c74f8704](https://forums.unrealengine.com/u/Anonymous_5159d00b0e4ee0018d110305c74f8704)\
**Post date:** [April 22, 2018, 7:39am UTC](https://forums.unrealengine.com/t/orthographic-camera-ignoring-depth/323780/6 "2018-04-22T07:39:24Z")

</div>

I also encountered the elements in the orthogonal camera scene that have no hierarchy to the back and forth.

How do you solve this problem?

---

<div class="post-metadata">

**Author:** ![goncasmage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@goncasmage](https://forums.unrealengine.com/u/goncasmage)\
**Post date:** [April 22, 2018, 8:01am UTC](https://forums.unrealengine.com/t/orthographic-camera-ignoring-depth/323780/7 "2018-04-22T08:01:02Z")

</div>

There should be some way to change that through some sort of sprite zorder, like you would in UMG. Can you change the position of the sprite in the z axis?

---

<div class="post-metadata">

**Author:** ![Anonymous\_5159d00b0e4ee0018d110305c74f8704](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_5159d00b0e4ee0018d110305c74f8704](https://forums.unrealengine.com/u/Anonymous_5159d00b0e4ee0018d110305c74f8704)\
**Post date:** [April 22, 2018, 9:21am UTC](https://forums.unrealengine.com/t/orthographic-camera-ignoring-depth/323780/8 "2018-04-22T09:21:45Z")

</div>

Yes, I did it now, because I changed the material, The material has an Alpha before。

---

<div class="post-metadata">

**Author:** ![Manoloon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/manoloon/32/1001796_2.png) [@Manoloon](https://forums.unrealengine.com/u/Manoloon)\
**Post date:** [October 27, 2018, 9:50pm UTC](https://forums.unrealengine.com/t/orthographic-camera-ignoring-depth/323780/9 "2018-10-27T21:50:35Z")

</div>

I know this post is older than hell ,but I found that using this feature on 4.20 respect depth even in orthographic cameras.

 ![257899-2018-10-27-18-49-12-usualoutlaws-unreal-editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/c/82cf6f172441300839bdef76e860b48357503d02.png)
