Thursday, September 12, 2019

Setting up a stationary isometric camera in Unreal Engine 4

The project templates in Unreal cover most of the common game types. However, I'm interested in making something isometric with a stationary camera. The top down template uses mouse control rather than directions, and the third person template has a mobile camera rotated by the mouse. As I've never used Unreal before this, it took a bit of searching to put together how to set up a suitable starting point for this. Before I get focused on something else, I have transcribed the steps here for future reference.

First select the Third Person project. I don't think Blueprint or C++ makes a difference, but I used Blueprints.

Drag in a Camera, which will appear in World Outliner as CameraActor.

Next open the level blueprint and set it up to use the CameraActor on BeginPlay. The individual steps for this are explained in this clear tutorial from the Unreal documentation.
 Don't forget to delete off the front walls so the floor is visible.
Using cmd + shift + p or right clicking on the CameraActor will enter pilot mode which allows the camera to move while looking through its view. Unfortunately, this does not seem to work in orthographic mode, so it will take some trial and error dragging the camera around while checking the view. Here I have found some reasonable settings to use for now.
Finally, the default third person project uses the mouse to turn, so turn off "Turn" in the axis mapping section of the input section of the project settings.

Now running it looks something like this.
Now a quick comparison to a classic puzzle platformer for reference.
The camera needs to be lower. After quite a bit of time positioning the camera and hastily rescaling some geometry this looks more like the position.

After some more scaling, and applying some quick textures and light, we have something a little closer.

Tuesday, August 20, 2019

Less Greek

I published a portfolio app called Less Greek in the Play Store recently. I made Less Greek to practice using Kotlin and RxKotlin. My previous portfolio app was in Java, so I wanted to go through the process completely in Kotlin. While working on it, I also ended up learning the Greek alphabet which was nice. Now I have some time before the start of the fall semester to start working on something new. I'm going to try to learn as much of Unreal Engine as I can over the next couple of weeks.

Monday, July 8, 2019

Where I Am

I'll write about things that I'm working on here since I don't use any social media other than LinkedIn. I am active in some other places though. I have apps in the Apple App Store and Google Play Store. I use Github. From time to time, I practice on HackerRank. I also learn on Kaggle.