Commit graph

334 commits

Author SHA1 Message Date
Robert Beckebans
3dcade4c15 Updated embedded shadow mapping using rotated Poisson disc 2014-05-16 21:52:31 +02:00
Robert Beckebans
c17773306c Revert "Changed r_useShadowMapping 1: medium+faster, 2: high quality"
This reverts commit 87b0040f92.

Conflicts:
	neo/renderer/RenderSystem_init.cpp
	neo/renderer/tr_backend_draw.cpp
	neo/renderer/tr_local.h
2014-05-16 21:50:49 +02:00
Robert Beckebans
ef9869972d Improved shadow mapping performance using randomly rotated Poisson discs 2014-05-16 21:33:39 +02:00
Robert Beckebans
7f0f7f8a41 Commented out #include <inttypes.h>. fixes #112 2014-05-16 10:47:42 +02:00
Robert Beckebans
e0c8243ee7 Make high quality shadow mapping the default 2014-05-16 00:22:34 +02:00
Robert Beckebans
87b0040f92 Changed r_useShadowMapping 1: medium+faster, 2: high quality 2014-05-16 00:14:42 +02:00
Robert Beckebans
cd3ed5a927 Sacrificed texture bias option for shadows option. fixes #109
We can't add new graphics options without altering the original Flash menu
files which we don't have. I disabled the r_lodBias functionality which
can make the game look worse by adding a bias to the texture lookup
functions which cause choosing texture mip maps that are smaller than the
original image size in every view even though we want the first mip map
level 0 which is the best quality.
2014-05-15 23:46:53 +02:00
Robert Beckebans
e13fc0f4e9 Added cvar r_useHalfLambertLighting to make it optional, it requires reloadShaders 2014-05-15 16:37:55 +02:00
Robert Beckebans
42874cfd05 Added graphics option to make soft shadows optional 2014-05-15 12:14:37 +02:00
Robert Beckebans
c300acd507 Fixed typo. Now all videos should work on Linux. refs #100 2014-05-15 10:48:37 +02:00
Robert Beckebans
837cb4dff2 Changed file testing for .bik videos to support fs_game. fixes #100 2014-05-14 23:14:37 +02:00
Robert Beckebans
ee09662c10 Added custom content support by looking for all content in all maps/*.resources.
This changes the filesystem to work a bit more like previous id tech
engines and allows to run mods and custom content like the Wulfen high
resolution textures in those mods with

+set fs_game <modname> +set fs_resourceLoadPriority 0
2014-05-14 22:32:34 +02:00
Robert Beckebans
26bb497b3c Supress warnings about failed #include global.inc when using embedded Cg shaders 2014-05-14 19:14:21 +02:00
Robert Beckebans
75d6e89876 Made interactionSM shader sampler loop to use r_shadowMapSamples many iterations 2014-05-14 18:57:53 +02:00
Robert Beckebans
a66859f09c Only use 2048^2 shadow maps for cascaded shadow mapping 2014-05-14 18:57:12 +02:00
Robert Beckebans
4a68a5ef59 Made interactionSM shader sampler loop to use r_shadowMapSamples many iterations 2014-05-14 18:49:56 +02:00
Robert Beckebans
7d6d8b4641 Reduced FFmpeg debug console prints 2014-05-12 20:02:20 +02:00
Robert Beckebans
a67f99acda Fixed shadow mapping problems with the ATI Catalyst driver 2014-05-12 19:54:09 +02:00
Robert Beckebans
c1b7308862 Fixed problems when building for Win64 and using FFmpeg. fixes #106 2014-05-12 09:51:41 +02:00
Robert Beckebans
f95076984f Shadow LOD fix for parallel lights 2014-05-11 22:59:21 +02:00
Robert Beckebans
0eaaea4b96 Improved shadow mapping performance using the shadow LOD and tweaked
polygon offsets to fight shadow acne
2014-05-11 22:30:01 +02:00
Robert Beckebans
5153422d0d Added shadow LOD calculation 2014-05-11 17:24:24 +02:00
Robert Beckebans
6d25a20b80 Updated ENGINE_VERSION 2014-05-11 14:44:31 +02:00
Robert Beckebans
fc51a7cf70 Updated embedded shaders 2014-05-11 14:37:58 +02:00
Robert Beckebans
2307a94d53 Added r_forceShadowMapsOnAlphaTestedSurfaces 1 2014-05-11 14:36:51 +02:00
Robert Beckebans
0ca7667fd2 Removed glewExperimental = GL_TRUE hack for SDL 2 2014-05-11 12:28:29 +02:00
Robert Beckebans
5c0fedf190 Patched GLEW to get the extensions with OpenGL >= 3.2 for the case that glGetString(GL_EXTENSIONS) fails 2014-05-11 12:19:10 +02:00
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
160a4dd2aa Updated README 2014-05-10 16:50:01 +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
823d0664b9 Merge branch 'master' into glew 2014-05-10 12:04:07 +02:00
Robert Beckebans
138a2118bb Merge pull request #99 from LinAGKar/master
Added instructions for openSUSE.
2014-04-30 23:47:19 +02:00
RobertBeckebans
e1661f8cde Merge branch 'master' into glew 2014-04-30 12:05:30 +02:00
LinAGKar
6c643f5164 Added instructions for openSUSE. 2014-04-28 22:55:15 +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