# Parallax Scrolling with Orthographic Camera?

**URL:** <https://forums.unrealengine.com/t/parallax-scrolling-with-orthographic-camera/299201>\
**Category:** Rendering\
**Tags:** orthographic, parallax, perspective, unreal-engine, question\
**Created:** [November 17, 2014, 5:33pm UTC](https://forums.unrealengine.com/t/parallax-scrolling-with-orthographic-camera/299201 "2014-11-17T17:33:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Novrasplice](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Novrasplice](https://forums.unrealengine.com/u/Novrasplice)\
**Post date:** [November 17, 2014, 5:33pm UTC](https://forums.unrealengine.com/t/parallax-scrolling-with-orthographic-camera/299201/1 "2014-11-17T17:33:52Z")

</div>

Currently working on a side scrolling game with classmates for our major project in university, so far we’ve been playing around with different camera perspectives and really love the Orthographic viewpoint for the aesthetic we want to go for.

My question is, how can we get parallax scrolling working with the orthographic camera? Or at least take all of the perspective out of the perspective camera so it has the same effect, but objects in the foreground/background move at a different rate than the focal point?

---

<div class="post-metadata">

**Author:** ![Ninetail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ninetail](https://forums.unrealengine.com/u/Ninetail)\
**Post date:** [November 17, 2014, 5:48pm UTC](https://forums.unrealengine.com/t/parallax-scrolling-with-orthographic-camera/299201/2 "2014-11-17T17:48:49Z")

</div>

To simulate perspective in an orthographic view, you need to counter animate the foreground and background elements separately. This is how we used to do it back in the days of 2D.

You need to translate foreground/background objects in a direction OPPOSITE to the camera movement.

Background elements should translate slower than the camera, foreground elements should translate faster than the camera. You can also stack the layers up. Layers farther back should get progressively slower, layers closer to the camera should get progressively faster.

---

<div class="post-metadata">

**Author:** ![Novrasplice](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Novrasplice](https://forums.unrealengine.com/u/Novrasplice)\
**Post date:** [November 17, 2014, 5:52pm UTC](https://forums.unrealengine.com/t/parallax-scrolling-with-orthographic-camera/299201/3 "2014-11-17T17:52:58Z")

</div>

Okay, I understand, just not sure how to go about setting that up. We’ll try play around and experiment, thanks!

---

<div class="post-metadata">

**Author:** ![Ninetail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ninetail](https://forums.unrealengine.com/u/Ninetail)\
**Post date:** [November 17, 2014, 5:59pm UTC](https://forums.unrealengine.com/t/parallax-scrolling-with-orthographic-camera/299201/4 "2014-11-17T17:59:07Z")

</div>

Have you guys looked at the “Tappy Chicken” example game? It’s free on the Asset Store.

---

<div class="post-metadata">

**Author:** ![Novrasplice](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Novrasplice](https://forums.unrealengine.com/u/Novrasplice)\
**Post date:** [November 17, 2014, 6:03pm UTC](https://forums.unrealengine.com/t/parallax-scrolling-with-orthographic-camera/299201/5 "2014-11-17T18:03:48Z")

</div>

I’ll take a look for that now! The Unreal 4 Asset Store, correct?

---

<div class="post-metadata">

**Author:** ![Novrasplice](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Novrasplice](https://forums.unrealengine.com/u/Novrasplice)\
**Post date:** [November 17, 2014, 6:08pm UTC](https://forums.unrealengine.com/t/parallax-scrolling-with-orthographic-camera/299201/6 "2014-11-17T18:08:17Z")

</div>

It might be worth mentioning that we’re still building all our objects in 3D, it was originally going to be a 2.5D scroller with perspective camera, but we really like how it looks in Orthographic.

---

<div class="post-metadata">

**Author:** ![Ninetail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ninetail](https://forums.unrealengine.com/u/Ninetail)\
**Post date:** [November 17, 2014, 6:16pm UTC](https://forums.unrealengine.com/t/parallax-scrolling-with-orthographic-camera/299201/7 "2014-11-17T18:16:45Z")

</div>

That’s totally fine. You can stick all your 3D objects into one blueprint and translate them all together. Start by looking at the “Event Tick”, “Get/Set Actor Location”, and “Vector \* Float” blueprint nodes.

---

<div class="post-metadata">

**Author:** ![Novrasplice](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Novrasplice](https://forums.unrealengine.com/u/Novrasplice)\
**Post date:** [November 17, 2014, 6:18pm UTC](https://forums.unrealengine.com/t/parallax-scrolling-with-orthographic-camera/299201/8 "2014-11-17T18:18:46Z")

</div>

Ok cool, thanks very much for all your help!

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [April 12, 2024, 5:37am UTC](https://forums.unrealengine.com/t/parallax-scrolling-with-orthographic-camera/299201/9 "2024-04-12T05:37:54Z")

</div>

A much easier solution is to use a perspective camera with a lower FOV and a longer boom arm. I set my FOV to 50 and the boom arm length to 2400. This gives a pretty good balance.
