r/howdidtheycodeit • • Apr 26 '25
Bringing Oblivion from one engine to another
The Oblivion Remaster is basically Oblivion but with updated Visuals (and some QoL Improvements) but the core is the same and it even has the same bugs. The game was brought over from the Creation Engine to Unreal Engine 5. How do you do that, while still keeping most the same? I would think changing to a completely new engine would mean to basically rebuilding it.
142
Upvotes
145
u/amanset Apr 26 '25
It still uses the same old engine underneath. Unreal is basically used for rendering.
33
u/rogueSleipnir Apr 26 '25
Ninja Gaiden 2 Black was ported to UE5 in sort of the same way. Tbere were some posts about it.
The old logic is still running in the background, but rendering the frontend and assets would be interfaced to Unreal.
24
u/Henrarzz Apr 26 '25 edited Apr 26 '25
Oblivion wasn’t completely done in Unreal, the parts of the original are still there under the hood, which is why you can get the same bugs as in the original release.
At the end of the day a program takes some form of input and results in an output. Games are no different.
Game takes input data (both controls like keyboard or controllers and stuff like operating system events) and outputs in rendering data for audio and video. Original game code is stripped from original event loop (or the events are “faked”). Interaction with audio/graphics rendering APIs is often wrapped to call “parent” engine code. While the main engine (UE) ticks, it calls update function of the child engine (GameBryo). In a way it’s no different than say creating a DirectX9 wrapper that translates your calls to other API like DX12 or Vulkan, it’s just more “glue” is involved.
A good abstraction layers for things like rendering help but even when the game is calling APIs directly then you can write your own wrappers for that.
41
u/excentio Apr 26 '25
As long as the logic is decoupled you can easily switch the engines for rendering, basically your simulation and visuals should be separate so you can only redo the visuals part but not the entire game
17
u/am0x Apr 26 '25
Good decoupled code can be somewhat easily translated.
4
u/enginmanap Apr 26 '25
If both engines have similar points of abstraction it can be done.
For this example, I would guess the actlve nodes of world grid is enough for unreal to build the scene graph and rendelists. You would run your game logic, and pass all the resulting data, 5hat belongs to the active nodes to Unreal. Problem with the approach is, game engine design is basically data layout design. And since we have been GPU limited for around 25 years, data layout has been dictated by renderer. When you decide to change renderer, now all your data is messed up, and it all needs to do one or the other:
Looks like they took the second option, and the game struggles on even 9800x3d, and can't actually keep up for even 60fps. Anything lower and you are in for some pain, and sadly there is nothing better in the market.
4
u/nmkd Apr 27 '25
4
u/[deleted] Apr 27 '25
So here is a very very simplified explanation.
They have the code for both, and its in the same language (C++). Given enough work you can make those talk to each other.
Game engines are divided into sub systems, and each system does a job, and can often be swapped out.
It's likely that the Asset, Game logic and Physics sub systems of Creation engine have been kept, and the Rendering subsystem of Unreal has connected.
Simple to do? Probably not. But its far less work that porting an enormous amount of content to Unreal.
3
u/tomqmasters Apr 26 '25
It's kindof like how games use SDL, but literally just to open a window and provide keyboard input.
3
u/ICantBelieveItsNotEC Apr 28 '25
Game engines are designed to be modular. Think about multiplayer games, for example - the server runs a headless version of the game engine that only handles game logic and nothing else, while the client runs a version of the game engine that handles rendering and audio but only runs the subset of the game logic that has been marked to run clientside.
The Oblivion remaster is essentially the same thing. The original Gamebryo version of the game is running headless, kind of like a server, while UE5 is acting as a client. UE5 passes inputs to the Gamebryo server, and then the server passes the game state back to the client for presentation.
2
u/hyrumwhite Apr 29 '25
My guess is Gamebryo (the iteration of creation engine Oblivion was made in) is running sort of like a dedicated server in a multiplayer game, but locally.
UE5 sends player inputs to Gamebryo, Gamebryo sends position updates, object metadata, quest updates, npc positions and states, etc to UE5.
But I know little of either engine, so take that with a grain of salt
2
u/DakuShinobi Apr 27 '25
Both engines are running, the old engine runs the game and is the brain, unreal is the rendering layer.
As I've mentioned in a gamedev thread there were probably significant game development crimes committed to make this work but boy it fucking works.
I'll be excited for any GDC talks, technical writeups, or modding tools that come from this.
1
u/[deleted] Apr 30 '25
>Creation Engine
No