Commit Graph

199 Commits

Author SHA1 Message Date
Lasse Öörni
fd1c3385ca Do not define UNICODE, as GLFW assumes multi-char mode. Rather call the wide char Windows functions explicitly. 2012-02-24 11:38:01 +00:00
Lasse Öörni
bedf357c90 Added WString class.
Create as an Unicode application on Windows.
2012-02-24 00:37:12 +00:00
Lasse Öörni
17b8f300b6 Added a CMake variable for enabling the file watcher, as it requires Windows XP or newer like minidumps. 2012-02-22 22:17:25 +00:00
Lasse Öörni
8b44eee163 Reverted main CMakeLists.txt. 2012-01-01 01:08:30 +00:00
Lasse Öörni
84e870c455 Allocate screen buffers in RGBA format to ensure FBO requirements in OpenGL deferred rendering. 2012-01-01 01:08:00 +00:00
Lasse Öörni
5c27c0f69f Changed to use pugixml instead of TinyXML.
Changed the XMLElement::RemoveChild() interface.
Removed the restriction that XML documents can only be saved to files.
Cleaned up CMakeLists files.
2011-12-23 21:46:49 +00:00
Lasse Öörni
9478103cd0 #ifdef vertex lighting shader code.
Added missing dependency for GLSL shaders.
2011-12-11 11:15:23 +00:00
Lasse Öörni
b9650b9a50 Reverted CMakeLists.txt. 2011-12-03 17:52:09 +00:00
Lasse Öörni
644c37a099 Mark light masks to G-buffer stencil for light culling.
Fixed OpenGL forward rendering.
Documentation fixes.
2011-12-03 17:51:18 +00:00
Lasse Öörni
f9bfd4948f Shader refactoring.
Removed ambient + lit pass combining for less shader permutations, and to prime the Z-buffer with a lightweight pass in case there is a large amount of overdraw.
Moved ambient light calculation to the ambient pass vertex shader.
Added render mode toggle to the editor settings.
Note: OpenGL rendering is currently broken.
2011-12-03 14:06:35 +00:00
Lasse Öörni
c20e0ada86 Added initial light pre-pass shaders. 2011-12-01 09:35:03 +00:00
Lasse Öörni
471d3ec5ff Added libcpuid for improved CPU detection.
Added separate functions for querying logical & physical CPU count.
2011-11-27 17:45:03 +00:00
Lasse Öörni
80a6948b22 Large rendering architecture refactoring.
Optimized shaders to do more work in the vertex shader.
Deferred rendering removed, at least for now.
Switched to RGB normal maps, with specular intensity in the alpha channel. Removed NormalMapTool.
Optimization of light influence on objects by stencil masking.
Split shadowed lights are now rendered in one pass. A virtual shadow depth cube texture is used for point lights.
Refactored shadow map allocation. Allow to use lower resolution shadow maps than quarter size.
Added the Polyhedron math object, used for improved shadow map focusing.
Reversed the convention for the plane intercept parameter.
Math-related code cleanup.
2011-09-26 21:56:31 +00:00
Lasse Öörni
7e00d6aa1d Removed PortAudio from Direct3D9 build, as it is not used.
Fixed check in setting the scissor rectangle.
2011-09-22 17:02:25 +00:00
Lasse Öörni
d6a3f89393 Added low-quality (1-sample) shadow filtering option.
Refactored fallback shaders so that they are compiled as variations into the SM2 directory.
2011-09-09 20:41:56 +00:00
Lasse Öörni
292ebed51f Added initial fallback mode (no MRT, no hardware shadows.) 2011-09-08 23:12:48 +00:00
Lasse Öörni
fc3651ab51 Fixed CMakeLists.txt 2011-08-29 20:16:54 +00:00
Lasse Öörni
40c8306691 Added triple buffering option. On OpenGL it is a no-op.
Removed the pass HashMap from Technique. Now it is just a static array.
2011-08-29 17:45:48 +00:00
Lasse Öörni
c3b1d57a17 Fixed VS2008 build. 2011-08-14 12:06:21 +00:00
Lasse Öörni
abe05c6a53 MinGW is no longer officially supported.
Documentation update.
2011-07-29 15:46:47 +00:00
Lasse Öörni
2e4d006674 Updated to newest kNet. 2011-07-22 21:00:38 +00:00
Lasse Öörni
71603ae52e Initial kNet-based networking implementation.
Renamed SharedPtr::Ptr() to RawPtr() to avoid conflicts with kNet's Ptr macro.
Added chat test program.
2011-07-13 23:32:57 +00:00
Lasse Öörni
69a78da8df Switched to GLFW 3.0. 2011-06-30 21:03:59 +00:00
Lasse Öörni
0d29d818ad Moved from SDL to GLFW & PortAudio. 2011-06-24 23:20:09 +00:00
Lasse Öörni
270ba840b3 Documentation update. 2011-06-21 21:37:46 +00:00
Lasse Öörni
b90c1386be Removed unnecessary parentheses. 2011-06-21 21:01:13 +00:00
Lasse Öörni
39441f2c56 Removed unused linker option. 2011-06-19 15:45:32 +00:00
Lasse Öörni
95c6640cba Fixed to compile and run on Mac OS X. 2011-06-19 10:20:48 +00:00
Lasse Öörni
1840d21d6f Fixed MinGW build. 2011-06-19 00:16:47 +00:00
Lasse Öörni
fa80179bdf Fixed to compile and run on Ubuntu. 2011-06-18 23:30:18 +00:00
Lasse Öörni
432f57b4b0 Use SDL 1.3 in OpenGL mode.
Removed system fonts directory feature because of being platform-specific.
Added the Anonymous Pro fixed width font.
2011-06-18 18:33:29 +00:00
Lasse Öörni
2669231c19 Added OpenGL related documentation. 2011-06-12 15:47:21 +00:00
Lasse Öörni
9335edc5ed Removed the need to lock vertex data in read-only mode for CPU-side processing.
Changed OpenGL immediate mode rendering to use CPU memory vertex arrays.
Fixed GLSL errors.
2011-06-12 14:57:42 +00:00
Lasse Öörni
5db24c8d02 Renamed OpenGL/Direct3D9 implemntation and shader directories. 2011-06-11 07:39:58 +00:00
Lasse Öörni
c9c0610709 Added alternative OpenGL rendering path, not fully complete yet.
Fixed bugs in HashMap / HashSet.
2011-06-10 22:35:43 +00:00
Lasse Öörni
1d036b34ac Fixed crash in ShaderCompiler.
Split Common.hlsl into smaller hlsl include files.
2011-06-05 11:53:39 +00:00
Lasse Öörni
3ca3f84df9 Refactored shader loading. A binary format is now used instead of XML data.
PixelShader and VertexShader classes replaced with Shader and ShaderProgram.
2011-05-22 21:34:35 +00:00
Lasse Öörni
4a35758028 Moved container & string classes to a separate library. 2011-05-16 19:31:27 +00:00
Lasse Öörni
6098409700 Upgraded to ENet 1.3.1.
Disabled buffer security checks for smaller executable size.
Removed deprecated ODE files.
2011-05-07 16:25:25 +00:00
Lasse Öörni
7c45da5588 Import new code.
Coding convention changed.
Large refactoring of the object model, scene model and script API.
Rendering improvements, including automatic instancing.
High-level network protocol and scene editor need reimplementation.
2011-05-02 06:21:40 +00:00
Lasse Öörni
8659977c52 GCC fixes. 2011-03-14 23:47:24 +00:00
Lasse Öörni
1f0bfd8b76 Moved to FreeType font rendering. 2011-03-06 22:44:27 +00:00
Lasse Öörni
97d3e56a1f Split data files to Data & CoreData. CoreData contains the bare necessary files needed to run, like shaders and default materials.
Added systemCommand() function.
Added file extensions to ignore in PackageTool.
Optimized Console text update.
Cleaned up ShaderCompiler code.
2011-03-03 21:08:27 +00:00
Lasse Öörni
03e19a7ac2 Event refactoring. Now it is possible to subscribe to events of a specific sender. To be able to send events, one must also derive from EventListener.
Event library removed for containing only a few files. 
Event unsubscribing optimized.
Remote events changed back to a whitelist system.
2011-02-10 07:38:01 +00:00
Lasse Öörni
e7a3473066 Examples restructuring. The old Test is now remade in script and called GraphicsTest. The ScriptTest has been renamed to NSWRemake. The executable for running the script examples is renamed to Urho3D.exe.
Various script API fixes. CScriptArray is again garbage collected. 
More file & ProcessUtils functions exposed to script.
More random functions exposed to script.
VolumeNode & GeometryNode exposed to script.
2011-01-29 18:28:10 +00:00
Lasse Öörni
19d0ed0e45 Added ScriptTest example, which will be a script-based (partial) reimplementation of NinjaSnowWar.
Script interface bugfixes.
2011-01-25 15:14:56 +00:00
Lasse Öörni
4ef7ce7d3f Renamed ModelConverter to OgreImporter.
Updated documentation.
2011-01-16 12:54:42 +00:00
Lasse Öörni
51629b18c6 Added Open Asset Import Library.
Added skeleton of AssetImporter tool.
2011-01-07 17:08:09 +00:00
Lasse Öörni
902dfd4a13 Re-commit for the new year. Let's aim for less wiki update spam this time! 2011-01-02 23:33:36 +00:00