Commit graph

263 commits

Author SHA1 Message Date
Robert Beckebans
f72d98a1eb Disabled shadow mapping for Mesa drivers fixes #103 2014-05-11 11:49:14 +02:00
Robert Beckebans
11456a231d Changed Mesa backend to output GLSL ES 3.00 in order to support shadow mapping 2014-05-11 11:30:56 +02:00
Robert Beckebans
14f87fe9db Added support for loading .png image files as textures and changed screenshot command to write in .png format 2014-05-10 18:15:33 +02:00
Robert Beckebans
0c8463ea5b Added -Wno-inline-new-delete for Clang 2014-05-10 16:11:47 +02:00
Robert Beckebans
887773cb24 Removed dangerous and obsolete memset 2014-05-10 16:03:28 +02:00
Robert Beckebans
96e879361d Fixed a problem with the searching for embedding local and embedded shaders 2014-05-10 16:00:18 +02:00
Robert Beckebans
12fd563fce Merge branch 'advanced-renderer-upgrades' of github.com:RobertBeckebans/RBDOOM-3-BFG into advanced-renderer-upgrades 2014-05-10 15:30:55 +02:00
Robert Beckebans
ade5c434f8 Replaced QGL with GLEW in sdl_glimp.cpp 2014-05-10 15:30:48 +02:00
Robert Beckebans
485417ab41 Removed obsolete sdl_qgl.cpp and fixed some compile errors 2014-05-10 15:29:59 +02:00
Robert Beckebans
08cacdfe17 Added utility functions for dmap 2014-05-10 15:03:06 +02:00
Robert Beckebans
277964f074 Because I can :)
- Implemented soft shadows using PCF hardware shadow mapping

  The implementation uses sampler2DArrayShadow and PCF which usually
  requires Direct3D 10.1 however it is in the OpenGL 3.2 core so it should
  be widely supported.
  All 3 light types are supported which means parallel lights (sun) use
  scene independent cascaded shadow mapping.
  The implementation is very fast with single taps (400 fps average per
  scene on a GTX 660 ti OC) however I defaulted it to 16 taps so the shadows look
  really good which should you give stable 100 fps on todays hardware.

  The shadow filtering algorithm is based on Carmack's research which was
  released in the original Doom 3 GPL release draw_exp.cpp.

- Changed interaction shaders to use Half-Lambert lighting like in HL2 to
  make the game less dark

- Fixed some of the renderer debugging/development tools like r_showTris
2014-05-10 14:40:01 +02:00
Robert Beckebans
b983156829 Updated GLEW to version 1.10.0 2014-05-10 12:12:32 +02:00
RobertBeckebans
e1661f8cde Merge branch 'master' into glew 2014-04-30 12:05:30 +02:00
RobertBeckebans
6b2793ed6a Removed null characters from RenderProgs_embedded.h 2014-04-28 11:29:11 +02:00
RobertBeckebans
853eaa5a00 Added missing neo/premake/embed.lua 2014-04-26 14:28:09 +02:00
Robert Beckebans
34025e08cb Added cmake-linux-release.sh Bash script 2014-04-26 14:26:26 +02:00
RobertBeckebans
cacf1bb46b Embedded Cg renderprog sources into the renderer using Lua/Premake. Now the renderer can export the renderprogs to any GLSL version without having the user to copy the renderprogs/* shaders to the Doom 3 BFG installation directory. fixes #95 2014-04-26 14:13:25 +02:00
RobertBeckebans
7008c661a5 Removed obsolete includes 2014-04-25 20:29:36 +02:00
RobertBeckebans
60ccf3567b Merge branch 'master' into glew 2014-04-25 20:24:30 +02:00
RobertBeckebans
055cc09c8b GLEW fixes 2014-04-25 20:23:34 +02:00
Robert Beckebans
740cc0d2e8 Merge pull request #94 from dekadenZ/size-format-macros
Attempt at removing the kludge concerning non-standard printf format references
2014-04-25 19:48:48 +02:00
dekadenZ
e4605633f0 Move format specifier macros to idlib/sys/sys_defines.h 2014-04-25 15:22:15 +02:00
Robert Beckebans
d326d49cf0 Merge pull request #93 from dekadenZ/fix-renderer-string-cmp
Fix length error in prefix comparison
2014-04-25 11:07:12 +02:00
dekadenZ
69f26fbe11 Replaced sizeof format references with macro 2014-04-25 03:30:03 +02:00
dekadenZ
27e25cfb08 Macros for format references to size_t 2014-04-25 03:23:34 +02:00
dekadenZ
20e5cf5ae2 Fix length error in prefix comparison 2014-04-25 02:39:49 +02:00
Robert Beckebans
8943a6d4a2 Fixed FFmpeg video timings and crashes. Also fixes the black screen problem with Ubuntu 14.04 #92 2014-04-21 23:56:46 +02:00
Robert Beckebans
e47429f532 Disabled FFmpeg by default because there are some serious issues with ffmpeg on Ubuntu 14.04 which cause a black screen after the intro video #92 2014-04-21 20:33:19 +02:00
RobertBeckebans
8018378c3c Merge branch 'master' into glew
Conflicts:
	neo/renderer/OpenGL/glext.h
	neo/renderer/OpenGL/qgl.h
	neo/renderer/OpenGL/wglext.h
	neo/renderer/RenderProgs.cpp
	neo/renderer/RenderProgs_GLSL.cpp
	neo/renderer/RenderSystem_init.cpp
	neo/renderer/tr_backend_draw.cpp
	neo/sys/win32/win_qgl.cpp
2014-04-21 15:01:50 +02:00
RobertBeckebans
b0b0d8ed76 gfxInfo Typo 2014-04-20 17:55:03 +02:00
Robert Beckebans
a8cda090c1 Disabled timing queries when using the Mesa driver #90 2014-04-20 17:50:37 +02:00
Robert Beckebans
3b19aa7991 Added glConfig.vendorType settings for Linux and disabled unused shaders. #90 2014-04-20 17:20:50 +02:00
RobertBeckebans
cce21e0d76 Added GLSL ES 1.0 backend for Mesa drivers #90 2014-04-20 16:29:58 +02:00
RobertBeckebans
e61eae499c Replaced sizeof format references %lu with %zu (GCC, Clang) and %Iu (MSVC) #88 2014-04-16 11:08:05 +02:00
Robert Beckebans
1115b52dd2 Fixed another crash in cinametic code. Now it should be stable 2014-04-11 10:28:53 +02:00
RobertBeckebans
647a3ebad8 Fixed crashes in cinematic code 2014-04-06 12:15:27 +02:00
RobertBeckebans
899982b0b2 Made FFmpeg optional and fixed potential crashes 2014-04-06 11:38:38 +02:00
Robert Beckebans
1e443f6857 Bink support on Linux with CMake 2014-04-05 17:38:42 +02:00
RobertBeckebans
17ff91664b Added FindFFMPEG.cmake 2014-04-05 16:30:41 +02:00
RobertBeckebans
730a1f2baa Merged FFmpeg Bink video support from DOOM-3-BFG-VR fork 2014-04-05 15:41:19 +02:00
RobertBeckebans
c9249bd05c Added ffmpeg win32 dev libs 2014-04-05 15:40:20 +02:00
Robert Beckebans
5d390301d6 Suppress warnings about multichar literals 2014-02-23 20:04:24 +01:00
Andreas Bergmeier
f66591f244 Force format invocations to be correct (on gcc and clang) and fix them. 2014-02-23 19:16:23 +01:00
RobertBeckebans
70108766d4 Updated astyle.exe to AStyle 2.03 2014-02-23 15:23:10 +01:00
Robert Beckebans
a315630d7d Changed astyle-code.sh script to use the system astyle which is 2.03 on Kubuntu 13.10 2014-02-23 15:19:11 +01:00
Robert Beckebans
4a124390a4 Merge pull request #75 from abergmeier/fix_trigraphs
Fix usage of trigraphs.
2014-02-23 15:15:14 +01:00
Andreas Bergmeier
be49ad4151 Add format analysis to format functions in Common. 2014-02-22 18:24:25 +01:00
Andreas Bergmeier
4d9970b148 Properly handle format analysis
Rename ATTRIBUTE_PRINTF to
- ID_STATIC_ATTRIBUTE_PRINTF
- ID_INSTANCE_ATTRIBUTE_PRINTF
since for instance functions, this has to be taken into account, too.
Add format analysis to idLib, DeclManager and idTokenParser functions.
Add support for clang.
2014-02-22 17:02:06 +01:00
Andreas Bergmeier
69f7f0eba6 Fix usage of trigraphs. 2014-02-22 11:54:04 +01:00
RobertBeckebans
7b6ceb48c8 Formatted code with AStyle 2014-02-18 11:57:59 +01:00