Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rend2 unified wip #56

Merged
merged 61 commits into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
137f55a
Add OpenJO build to GitHub actions (#1173)
Razish Oct 10, 2023
4d0dfaf
remove old CI files (travis, appveyor) (#1180)
Razish Oct 16, 2023
e8454e3
Fix memory leak
xycaleth Nov 11, 2023
4c422ea
Merge pull request #1186 from JACoders/xycaleth-patch-1
xycaleth Nov 11, 2023
247fe8b
Update Dockerfile (#1191)
veosar Nov 22, 2023
2ed26b3
Unix: copy path into a static variable to work on in Sys_Basename and…
Daggolin Nov 22, 2023
a3aa7dd
Copy all rend2 files to sp directory
SomaZ Oct 2, 2023
07ab3b0
[vanilla] LS_NONE -> LS_LSNONE
SomaZ Oct 2, 2023
99a8eec
COM_GetCurrentParseLine fix
SomaZ Oct 2, 2023
c27c4b4
Prepare qcommon and rd-common
SomaZ Oct 2, 2023
33045e1
Patch rend2 for sp
SomaZ Oct 2, 2023
3b7df7a
Move mp rend2 to shared folder
SomaZ Oct 3, 2023
bef35ee
[SP] rit.Malloc -> rit.Z_Malloc
SomaZ Oct 3, 2023
76f8b6c
[MP] Get rid of _skinSurface_t
SomaZ Oct 3, 2023
a8b019a
[Rend2] Fix cg_showtris depthtest
SomaZ Oct 3, 2023
9c85f09
[SP] Match R_LerpTag with MP API
SomaZ Oct 4, 2023
b43770d
[SP] Match R_LerpTag with MP API for the UI too
SomaZ Oct 4, 2023
0397ddb
[SP] Match G2_SetupModelPointers with MP version
SomaZ Oct 4, 2023
a12a5a0
[rend2] make sp renderer use the shared rend2 files
SomaZ Oct 4, 2023
7464c90
Remove duplicate files
SomaZ Oct 4, 2023
e05b65a
Fix incorrect texture coordnates
SomaZ Oct 5, 2023
ef4da7b
[rend2] WIP Weather functions
SomaZ Oct 5, 2023
5e34341
[rend2-sp] Fix broken endscreen yavin2
SomaZ Oct 5, 2023
36d7672
[rend2-sp] Fix ParseSessions
SomaZ Oct 5, 2023
12b51bf
[rend2-sp] Add missing G2 functions
SomaZ Oct 6, 2023
156d92a
[rend2-sp] Add OpenJO cmake config
SomaZ Oct 6, 2023
c3bc53d
[rend2-sp] Add basic JO support
SomaZ Oct 7, 2023
0aaf13b
[rend2] Fix ghoul2 cache crashes
SomaZ Oct 7, 2023
0f2c420
[rend2] Increase max fog count
SomaZ Oct 7, 2023
080de13
[rend2-sp] Fix force push refraction and force speed doppelgaenger
SomaZ Oct 7, 2023
de7f309
[rend2-sp] Add SP tcGen environment
SomaZ Oct 7, 2023
4c11f83
[rend2-sp] Fix SP force lightning
SomaZ Oct 7, 2023
0f7bbea
[rend2-sp] Add missing entity surface render types
SomaZ Oct 7, 2023
05a2357
[rend2] Add md3 animations back, just CPU for now
SomaZ Oct 7, 2023
8dbeb54
[rend2-sp] Fix ghoul2 saber marks
SomaZ Oct 8, 2023
ac4eb0e
[rend2-sp] Enabling additional sp g2 gore features
SomaZ Oct 8, 2023
5b035b5
[rend2-sp] Fix vid_restart and changing renderers
SomaZ Oct 8, 2023
6128f8e
[rend2] Add missing weather functions
SomaZ Oct 8, 2023
077848e
[SP] Increase REF_API_VERSION & UI_API_VERSION
SomaZ Oct 8, 2023
a82a42c
[rend2-sp] Attempt fixing non Windows builds
SomaZ Oct 9, 2023
0093a2b
[rend2] Fix viewport when RDF_NOWORLDMODEL
SomaZ Oct 9, 2023
98508ec
[rend2-sp] Implement RDF_doLAGoggles
SomaZ Oct 9, 2023
030c784
[rend2] Init Uniforms for the splashScreenShader
SomaZ Oct 9, 2023
6db4a17
[rend2-sp] Fix LA Goggles
SomaZ Oct 11, 2023
1c0e11e
[rend2-sp] Fix fog assignments
SomaZ Oct 11, 2023
32c0fb1
[rend2-sp] Make level end screenshot work correctly
SomaZ Oct 11, 2023
b3e5f53
[rend2-sp] Implement screen dissolve
SomaZ Oct 11, 2023
64a9266
[rend2] Don't draw shadowmap shadows for g2 effects
SomaZ Oct 11, 2023
3b966a4
[rend2] Fallback to surface normal for lighting vectors when lightgri…
SomaZ Oct 13, 2023
293ccdc
[rend2] Fix depth writes for shaders with blendFunc & sort opaque
SomaZ Oct 13, 2023
5d0191b
[rend2] Load weather images as SRGB in hdr lighting conditions
SomaZ Oct 22, 2023
9ae08ab
[rend2] Fix fog color in hdr lighting conditions
SomaZ Oct 22, 2023
35b799f
[SP] Match AddPolyToScene with MP
SomaZ Oct 25, 2023
51ff8fa
[SP/MP] Match most of tr_types.h
SomaZ Dec 12, 2023
3cdbeee
[rend2] Fix compile after rebase
SomaZ Dec 12, 2023
fc77a23
[rend2] Fix misc_bsp related crash
SomaZ Jan 2, 2024
9ca479d
[rend2] Revert VIS related change
SomaZ Jan 2, 2024
cb5a8c1
[rend2] Fix overly bright ibl cloth specular
SomaZ Feb 16, 2024
494abea
[rend2] Reduce goreVBO size
SomaZ Feb 16, 2024
a257512
[rend2] Fix alphaGen portal
SomaZ Feb 18, 2024
0db338a
Merge branch 'rend2-builds' into rend2-unified-wip
SomaZ Feb 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,26 @@ jobs:
artifact_name: OpenJO-rend2-macos-x86_64.tar.gz
zip: false

- artifact_dir: OpenJO-windows-x86-Release-Non-Portable/JediOutcast
artifact_name: OpenJO-windows-x86.zip
zip: true

- artifact_dir: OpenJO-windows-x86_64-Release-Non-Portable/JediOutcast
artifact_name: OpenJO-windows-x86_64.zip
zip: true

- artifact_dir: OpenJO-linux-x86-Release-Non-Portable
artifact_name: OpenJO-linux-x86.tar.gz
zip: false

- artifact_dir: OpenJO-linux-x86_64-Release-Non-Portable
artifact_name: OpenJO-linux-x86_64.tar.gz
zip: false

- artifact_dir: OpenJO-macos-x86_64-Release-Non-Portable
artifact_name: OpenJO-macos-x86_64.tar.gz
zip: false

steps:
- uses: actions/checkout@v3
with:
Expand Down
49 changes: 0 additions & 49 deletions .travis.yml

This file was deleted.

12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#============================================================================
# Copyright (C) 2013 - 2018, OpenJK contributors
#
#
# This file is part of the OpenJK source code.
#
#
# OpenJK is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#============================================================================
Expand Down Expand Up @@ -67,7 +67,7 @@ set(UseInternalPNGDefault OFF)
set(UseInternalJPEGDefault OFF)
set(UseInternalSDL2Default OFF)

if(WIN32)
if(UseInternalLibs OR WIN32)
set(UseInternalOpenALDefault ON)
set(UseInternalZlibDefault ON)
set(UseInternalPNGDefault ON)
Expand Down Expand Up @@ -252,7 +252,7 @@ elseif (("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") OR ("${CMAKE_C_COMPILER_ID}" M

# enable somewhat modern C++
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-comment")
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN mkdir /usr/src/openjk/build.i386 &&\
cmake -DCMAKE_TOOLCHAIN_FILE=/usr/src/openjk/cmake/Toolchains/linux-i686.cmake \
-DCMAKE_INSTALL_PREFIX=/opt \
-DBuildMPCGame=OFF -DBuildMPEngine=OFF -DBuildMPRdVanilla=OFF -DBuildMPUI=OFF \
-DBuildSPEngine=OFF -DBuildSPGame=OFF -DBuildSPRdVanilla=OFF \
-DBuildSPEngine=OFF -DBuildSPGame=OFF -DBuildSPRdVanilla=OFF -DBuildMPRend2=OFF \
.. &&\
make &&\
make install
Expand All @@ -26,7 +26,7 @@ RUN mkdir /usr/src/openjk/build.x86_64 &&\
cd /usr/src/openjk/build.x86_64 &&\
cmake -DCMAKE_INSTALL_PREFIX=/opt \
-DBuildMPCGame=OFF -DBuildMPEngine=OFF -DBuildMPRdVanilla=OFF -DBuildMPUI=OFF \
-DBuildSPEngine=OFF -DBuildSPGame=OFF -DBuildSPRdVanilla=OFF \
-DBuildSPEngine=OFF -DBuildSPGame=OFF -DBuildSPRdVanilla=OFF -DBuildMPRend2=OFF \
.. &&\
make &&\
make install
Expand Down
74 changes: 0 additions & 74 deletions appveyor.yml

This file was deleted.

14 changes: 7 additions & 7 deletions cmake/Modules/InstallConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#============================================================================
# Copyright (C) 2015, OpenJK contributors
#
#
# This file is part of the OpenJK source code.
#
#
# OpenJK is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#============================================================================
Expand Down Expand Up @@ -71,7 +71,7 @@ if(WIN32)
set(CPACK_NSIS_PACKAGE_NAME "OpenJK")
set(CPACK_NSIS_MUI_ICON "${SharedDir}/icons/icon.ico")
set(CPACK_NSIS_MUI_UNIICON "${SharedDir}/icons/icon.ico")
set(CPACK_NSIS_URL_INFO_ABOUT "http://openjk.org")
set(CPACK_NSIS_URL_INFO_ABOUT "https://openjk.org")

set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
include(InstallRequiredSystemLibraries)
Expand Down Expand Up @@ -121,8 +121,8 @@ if(WIN32)
endif()

# Don't run this for now until we have JK2 SP working
if(FALSE AND BuildJK2SPEngine)
string(REPLACE "/" "\\\\" ICON "${SPDir}/win32/starwars.ico")
if(BuildJK2SPEngine)
string(REPLACE "/" "\\\\" ICON "${JK2SPDir}/win32/starwars.ico")
set(CPACK_NSIS_CREATE_ICONS_EXTRA
"${CPACK_NSIS_CREATE_ICONS_EXTRA}
CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Jedi Outcast SP.lnk' \\\\
Expand Down
2 changes: 1 addition & 1 deletion code/client/cl_cgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ intptr_t CL_CgameSystemCalls( intptr_t *args ) {
case CG_R_GETLIGHTING:
return re.GetLighting( (const float * ) VMA(1), (float *) VMA(2), (float *) VMA(3), (float *) VMA(4) );
case CG_R_ADDPOLYTOSCENE:
re.AddPolyToScene( args[1], args[2], (const polyVert_t *) VMA(3) );
re.AddPolyToScene( args[1], args[2], (const polyVert_t *) VMA(3), 1 );
return 0;
case CG_R_ADDLIGHTTOSCENE:
re.AddLightToScene( (const float *) VMA(1), VMF(2), VMF(3), VMF(4), VMF(5) );
Expand Down
2 changes: 1 addition & 1 deletion code/client/cl_cin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,7 @@ static void CIN_AddTextCrawl()

// render it out
re.ClearScene();
re.AddPolyToScene( cinTable[CL_handle].hCRAWLTEXT, 4, verts );
re.AddPolyToScene( cinTable[CL_handle].hCRAWLTEXT, 4, verts, 1 );
re.RenderScene( &refdef );

//time's up
Expand Down
2 changes: 1 addition & 1 deletion code/client/cl_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ void CL_InitUI( void ) {
#endif
uii.R_ClearScene = re.ClearScene;
uii.R_AddRefEntityToScene = re.AddRefEntityToScene;
uii.R_AddPolyToScene = re.AddPolyToScene;
uii.R_AddPolyToScene = re.AddPolyToScene;
uii.R_AddLightToScene = re.AddLightToScene;
uii.R_RenderScene = re.RenderScene;

Expand Down
2 changes: 1 addition & 1 deletion code/rd-common/tr_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ typedef struct {
// Nothing is drawn until R_RenderScene is called.
void (*ClearScene)( void );
void (*AddRefEntityToScene)( const refEntity_t *re );
void (*AddPolyToScene)( qhandle_t hShader , int numVerts, const polyVert_t *verts );
void (*AddPolyToScene)( qhandle_t hShader , int numVerts, const polyVert_t *verts, int numPolys );
void (*AddLightToScene)( const vec3_t org, float intensity, float r, float g, float b );
void (*RenderScene)( const refdef_t *fd );
qboolean(*GetLighting)( const vec3_t org, vec3_t ambientLight, vec3_t directedLight, vec3_t lightDir);
Expand Down
Loading
Loading