View Single Post
  #1  
04-03-2018, 09:56 AM
Nemin's Avatar
Nemin
Thudslug
 
: Apr 2011
: Hungary
: 171
Rep Power: 15
Nemin  (219)Nemin  (219)Nemin  (219)
How to modify NnT's camera to use Orthographic Projection

Hi!
A few people from the OWF discord and myself spent a few hours today digging around in NnT's source code and we found a way to disable the dynamic camera and instead use a static one, which is more faithful to AO.

Preview:




Here are the instructions, how you can do the same:

1. Download dnSpy.
You don't need any of the Unity packages, just the "dnSpy.zip"

2. After unzipping open dnSpy.exe, press File -> Open.

3. Navigate to the Game's folder and then open "NNT_Data/Managed".

4. Select the four "Assembly-" DLL-s.

5. Open "Assembly-CSharp -> Assembly-CSharp.dll -> "-" (the hyphen) -> DynamicCamera".

6. Open the "Awake()" function.

7. Right click -> Edit Method and insert this two lines just below the first one:
:
this.cCamera.isOrthoGraphic = true;
this.cCamera.orthographicSize = 8f;

(Optionally: After finishing the other file, mess with the 8f to find the most desirable zoom level.)

8. In DynamicCamera find "LastUpdate()" function and Right click -> Edit Method. Scroll to the bottom of the file and just before the last line insert this:
:
base.transform.rotation = Quaternion.identity;

9. Press Ctrl+Shift+S, don't change any of the settings, press OK.

10. You're done! Start NnT.

[Disclamer: I don't know if the game can actually be finished using this projection, but it's a fun thing to try.]
__________________
Probably the only active Hungarian on OWF.

https://oddwords.hu - My essays and other Oddworld-related content.


Last edited by Nemin; 04-03-2018 at 10:01 AM..
Reply With Quote