Oddworld Forums > Zulag One > Oddworld Discussion > Oddworld Mods & Hacks


 
Thread Tools
 
  #1  
04-03-2018, 09:56 AM
Nemin's Avatar
Nemin
Thudslug
 
: Apr 2011
: Hungary
: 171
Rep Power: 14
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
  #2  
04-03-2018, 10:00 AM
Wircea's Avatar
Wircea
Chippunk
 
: Mar 2017
: Romania
: 29
Rep Power: 0
Wircea  (54)

Should be mentioned that the perspective will get messed up due to the foreground and background bending. Some particles such as the electric gates and smoke will not render.
Also be warned the game will get trippy every time the camera rotates.

Only do this for some nice screencaps
__________________
My steam.

Reply With Quote
  #3  
04-03-2018, 12:59 PM
Phoetux's Avatar
Phoetux
Riot Slug
 
: Aug 2016
: Joe's Pizza
: 559
Blog Entries: 14
Rep Power: 9
Phoetux  (881)Phoetux  (881)Phoetux  (881)Phoetux  (881)Phoetux  (881)Phoetux  (881)Phoetux  (881)

I think this is the first mod ever made for NnT. As already said in Discord good job to both of ya
__________________
v- My other places -v


Reply With Quote
  #4  
04-04-2018, 02:09 AM
OWI_Alex's Avatar
OWI_Alex
Oddworld Inhabitant
 
: Mar 2014
: Oddworld
: 523
Rep Power: 11
OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)

While obviously we can't support mods officially, this is quite interesting.
Reply With Quote
  #5  
04-04-2018, 02:11 AM
Varrok's Avatar
Varrok
Wolvark Grenadier
 
: Jun 2009
: Beartopia
: 7,301
Blog Entries: 52
Rep Power: 25
Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)

I'd love to see Soulstorm like that
Reply With Quote
  #6  
04-04-2018, 03:09 AM
OWI_Alex's Avatar
OWI_Alex
Oddworld Inhabitant
 
: Mar 2014
: Oddworld
: 523
Rep Power: 11
OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)OWI_Alex  (1039)

:
I'd love to see Soulstorm like that
I doubt DynCam would be so easy to break this time around, given we're not using it!
Reply With Quote
  #7  
04-04-2018, 05:15 AM
Varrok's Avatar
Varrok
Wolvark Grenadier
 
: Jun 2009
: Beartopia
: 7,301
Blog Entries: 52
Rep Power: 25
Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)

I mean, with ortographic camera

edit: as in, by design

Last edited by Varrok; 04-04-2018 at 10:54 AM..
Reply With Quote
  #8  
04-04-2018, 12:45 PM
Samtastic
Formely Samlaptop95
 
: Oct 2012
: UK
: 169
Rep Power: 13
Samtastic  (121)Samtastic  (121)

That is really cool! Someone was recommending I should use that camera for the bird portal for my fan Abe game. I could use it for one of the levels in the game maybe!
Reply With Quote
  #9  
04-04-2018, 10:45 PM
Varrok's Avatar
Varrok
Wolvark Grenadier
 
: Jun 2009
: Beartopia
: 7,301
Blog Entries: 52
Rep Power: 25
Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)Varrok  (7896)

I think it needs clarifying:
The camera in the mod is still dynamical, it follows Abe. It's just that it doesn't rotate in Z axis to keep the 2D view of the scenes. It's not as static as in AO/AE in a way that it quickly switches between "screens" when you reach an edge
Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 








 
 
- Oddworld Forums - -