Skip to content

Open source camera hack for the FrostBite engine

License

Notifications You must be signed in to change notification settings

Cacaonut/OpenGameCamera

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is OpenGameCamera?

OpenGameCamera (OGC) is a free, open-source camera tool for Frostbite games. Our aim is to build a cinematic tool with the freedom to allow content creators, modders and PC users to create stunning artwork.

We are open-source; we need people to help us flesh out OGC. Without support we will not be able to update OpenGameCamera with each new game update.

How can I help?

We are looking for people that know C++ or are willing to learn. Ideally you will also have some knowledge or experience in reverse engineering videogames, however, that is not totally necessary. If you think you can help then please contact us. If you don't have these skills but would still like to help, whether that you'd like to spread awareness, create promotional content or help with testing, please contact us.

Discord Server

For communication, support, sharing, and development, join our Discord server: OpenGameCamera Discord

Instructions

  1. Install this C++ redistributable: Download
    (OpenGameCamera will not work without this.)

  2. Download the injector: Download
    (Your browser or anti-virus may falsely flag this as dangerous. You must allow the file on your PC.)

  3. Inject OpenGameCamera.DLL with the injector.
    (Star Wars: Battlefront II must be running when you inject OpenGameCamera.DLL, and must be done each time you launch the game.)

  4. Make awesome content.
    (Practice may be required!)

Key Bindings

Action Key
Show/Hide OpenGameCamera Home
Enter/Exit camera F5
Ignore input F6
Show/Hide UI F7
Time-freeze F8
Move camera WASD
Cam up Space
Cam down Ctrl
Fast move Shift
Slow move Alt
Eject mod End

Building

Code Structure

File Purpose
Source.cpp The entrypoint of the modification, and where all of the magic happens
MouseManager.hpp Management class for hooking the mouse state, allowing the mod to enable/disable the cursor at will
KeyMan.cpp/hpp HotKey management. Also defined here are the default keybindings.
Renderer.hpp Code for hooking into the engine's DebugRenderer functions.
Menu.hpp Using renderer.hpp, this code allows easily building and displaying menus.
Candy.hpp Hooking class. Allows VTable hooking, and a wrapper for MinHook.
Typedefs.hpp Contains typedefs used for our hooks.
sdk.hpp The reverse-engineered game classes.
BasicTypes.hpp Definitions for things like vectors and matrices. Serves to replate DirectX.

Building guide

The code is designed to be easily built. You don't even need the DirectX SDK installed.

  1. Clone, or download and extract
  2. Open OpenGameCamera in Visual Studio
  3. Build (Ctrl-B)

Docs

Here you can find extended documentation, as well as explantions on various concepts.

About

Open source camera hack for the FrostBite engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 64.6%
  • C++ 35.4%