Skip to content

JKSunny/EternalJK

 
 

Repository files navigation

EternalJK - Vulkan API

build

This fork is centered around improving the rendering backend, specifically focusing on adding the Vulkan API.
Other forks or mods can incorporate the latest updates from this repository.

NOTE: Game logic remains untouched, required changes are to include SDL2 vulkan headers and refapi.
also relocating some structures from common tr_types.h to renderer module tr_local.h 90d4de9, a9b7248

Its increasingly difficult to maintain a clear list of modified files, because there have been no upstream commits since 2021.
*engine related: eb18020, 3ae2bbd, 4eee7ab

Support Initially started by porting to Quake-III-Arena-Kenny-Edition.
After that, I found vkQuake3, hence the file structure.

Lastly, I stumbled across Quake3e.
Which is highly maintained, and is packed with many additions compared to the other repositories.

Therefore the vulkan renderer is now based on Quake3e.
A list of the additions can be found on here.

License

License

OpenJK is licensed under GPLv2 as free software. You are free to use, modify and redistribute OpenJK following the terms in LICENSE.txt.

Fork branching explained

Master branch

Native implemention of the Vulkan renderer module.

NOTE: upstream repository EternalJK is discontinued and is replaced with TaystJK - includes Vulkan

master-todo master-release taystjk-release


Beta branch

Based on master, with addition of features like instanced MD3 and Ghoul2 model caching on the gpu.

cvar r_vbo: Cache static surfaces: 0 - off 1 - world 2 - world + models

master-todo beta-release beta-comparision-video


ImGui (archived)

Basic implementation of ImGui in the vulkan renderer module, cImGui in client, game and ui modules

NOTE Release unavailable! build binaries yourself from source - This branch is archived and unmaintained


PBR branch

Implementation of PBR (Physical Based Rendering) material system based on Rend2 renderer from OpenJK
This adds the ability to apply normal, roughness, metallic or specular mapping. by introducing the .mtr file extension which is an override for .shader

NOTE Incompatible with master or beta branch! cvar r_fbo and r_vbo are enabled hard-coded.

NOTE Release unavailable! build binaries yourself from source

master-todo rend2-what-is rend2-showcase rend2-pbr-retexture


PBR Inspector branch

Combines PBR and ImGui branch.
Began as a local codebase to inspect/debug the PBR material system implementation.
A basic GUI is added, renders the game in a viewport and allows displaying various PBR layers
Other features: View collapsed shader, text/node based shader editor, profiler and a few more bits an bobs.

Started entity inspector, but this has been commented out.

NOTE Release unavailable! build binaries yourself from source - Initially for personal use only, but here we are

master-todo pbr-inspector-devlogs


Forks supporting Vulkan

In addition to this fork, I also have implemented the Vulkan renderer to my forks of OpenJK and JK2MV

jedi-academy-openjk - based on beta branch
jedi-outcast-jk2mv - based on master branch - (Implemented modular renderer)

For players

Installing and running EternalJK:

  1. Download the latest release.
  2. Extract the file into the Jedi Academy GameData folder. For Steam users, this will be in <Steam Folder>/steamapps/common/Jedi Academy/GameData/.
  3. Run eternaljk.x86.exe (Rename to jamp.exe for better steam support)

How to enable vulkan

  1. Open up the console by pressing ~ Tilde key
  2. Type "/cl_renderer rd-vulkan; vid_restart" and hit enter

For Developers

Contributing to EternalJK

  • Fork the EternalJK project on GitHub
  • Create a new branch on your fork and make your changes
  • Send a pull request to upstream (eternaljk/master)

Maintainers

Contributors

About

Effort to maintain and improve OpenJK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 73.0%
  • C++ 26.1%
  • CMake 0.4%
  • ShaderLab 0.4%
  • GLSL 0.1%
  • Batchfile 0.0%