Demo NICOHOME Orthographic

The steps for creating an orthographic scene are mostly the same as for a perspective scene.

Refer to the NICOHOME Perspective Demo chapter. In this chapter we will discuss only the few differences between the two projections.

First of all, it will not be possible to change the size of the camera which is fixed automatically by the script according to the size of the background image. To change the size of the areas and the depth of the scene you will have to act on the rotation of the camera but as you will see a small rotation will significantly change these values.

The meter function will not be available. To get the right camera setup you’ll need to look at the shape of the areas in Scene View and test character movement in Play Mode. But it will be easier to do than to explain.

A special mention must be made for the Character settings tab available only in orthographic projection.

We will use the MAINFRAME Demo as an example because the size of the character at the closest point and farthest point are more accentuated than those in the NICOHOME Demo.

This is the opening scene, with the character initialized:

As can be expected in orthographic projection the character maintains its size throughout the screen:

What we have to do is find two distant reference points to be able to set two different dimensions.

In the case of this image we can consider the fire extinguisher positioned on the central column and the one at the back of the room, between the windows.

Select the Character settings tab.

Let’s start by placing the character near the first fire extinguisher and resizing it.

Use Constrained scale to do this. As indicated by the red line, the character’s arms are at the same height as the fire extinguisher handle.

Click on Save point, in the First point section.

The Second point section will appear.

Now let’s move the character to the bottom, near the second fire extinguisher and resize it in the same way.

Click on Save point in the Second point section.

Done. From now on our character will resize according to these parameters. Try moving it around the screen.

Now you can draw your areas, place your objects, change the camera settings and whatever changes you make the character will keep these proportions.

The script attached to the character (2.5d Toolkit/Demo/script/CharCtrl) is a simple script that takes care of resizing the character in Play Mode. You can improve it and use it in your games but its purpose is to allow you to have an optimal view of your scene. Probably, if you use assets for game creation, you will be able to find much more effective scaling scripts in them.

Author: vbgamestudio