Commit Graph

  • 12c4f2a2b9 Nullcheck materials before using them in Drawable2D sorting. Lasse Öörni 2015-03-09 20:23:08 +0200
  • 2239f5750f D3D11 screenshot save. Fix not releasing the backbuffer texture after GetResource(). Lasse Öörni 2015-03-08 22:45:59 +0200
  • 4e308f21c3 3D textures on D3D11. Fixed the ColorCorrection shader. Lasse Öörni 2015-03-08 20:16:15 +0200
  • 72a153f1a3 Fix Tonemap shader for D3D11. Lasse Öörni 2015-03-08 16:23:23 +0200
  • 871fc3abea Fix erroneous UI rendering after compiling the Text shader, by listing texcoord interpolator before color. Lasse Öörni 2015-03-08 16:15:17 +0200
  • e106f1b389 D3D11 clip plane support. Check that multisample level is supported. Various shader fixes. Lasse Öörni 2015-03-08 02:57:08 +0200
  • b9278e0a94 Implement partial rendertarget clear on D3D11. Implement Graphics::ResolveToTexture() on D3D11. Fix most post-process shaders on D3D11. Readded the custom constant buffer slot. Update documentation. Lasse Öörni 2015-03-07 23:02:31 +0200
  • 988f1fdc33 Merge branch 'master' into render-refactor Lasse Öörni 2015-03-07 17:59:37 +0200
  • e6194640ff Do not skip the assimp scene root, if it has non-identity transform or contains models itself. Lasse Öörni 2015-03-07 16:34:29 +0200
  • 1c549bceee Import also empty child nodes in AssetImporter scene mode, unless disabled with the -ne option. Refactor handling of the root scene node to prevent unnecessary creation of a duplicate root node. Do not attempt to parse .json files as XML in the editor resource browser. Closes #673. Lasse Öörni 2015-03-07 13:36:07 +0200
  • 429f8d50fd Fix to addd EMSCRIPTEN_SYSROOT into internal SYSROOT variable. [ci skip] Yao Wei Tjong 姚伟忠 2015-03-07 13:32:32 +0800
  • 693aeb97a8 Add '--emrun' to general linker flag var instead of just for debug. Yao Wei Tjong 姚伟忠 2015-03-07 12:14:53 +0800
  • 0fe597223f Add initial support for integration tests on Emscripten platform. At the moment the 'make test' cannot be run non-interactively yet on Linux host and Mac OS X host systems due to what-could-be a bug in 'emrun' script. The issue with 'emrun' has been reported to upstream (https://github.com/kripken/emscripten/issues/3234). Yao Wei Tjong 姚伟忠 2015-03-07 11:52:42 +0800
  • f660213930 Fix AngelScript API compile on VS2015. Add CMake bat file for VS2015. Lasse Öörni 2015-03-07 01:09:13 +0200
  • 6112220b16 Cube maps, point light shadows & deferred / light prepass rendering on D3D11. Lasse Öörni 2015-03-05 23:32:16 +0200
  • 1d165f3e55 Fix crash when calling FixInterpolation() on compressed sound data. Add better explanation as this function is normally not needed to be called. Lasse Öörni 2015-03-05 20:45:20 +0200
  • 6a145befa5 Misc. clean up. [ci skip] Yao Wei Tjong 姚伟忠 2015-03-05 21:44:13 +0800
  • 6ef0f702c7 For Travis CI - sync the samples first then update json data file. [ci skip] Yao Wei Tjong 姚伟忠 2015-03-05 17:30:07 +0800
  • 6c3d32d64a Use Urho3D custom HTML shell for Emscripten build. Simplify the custom command for share data generation since we are not going to "fix" the UUID issue of the file_packager.py anymore. Although this would mean the slightest change in the output JS file caused by UUID change could force a long relink process in our build. For Travis CI - upload Emscripten HTML5 samples to Urho3D main website. [ci package] Yao Wei Tjong 姚伟忠 2015-03-05 16:23:59 +0800
  • 8b49a21587 Fix shadow alpha mask shader. Lasse Öörni 2015-03-05 00:42:19 +0200
  • 4542e38b73 Fix terrain shader on D3D11. Lasse Öörni 2015-03-05 00:32:25 +0200
  • 17cf79ab82 D3D11 rendertarget and initial shadow (directional & spot light) support. Fix creating too many rasterizer states for depth bias by quantizing. Fix crash on exit if states failed to create. Lasse Öörni 2015-03-05 00:21:21 +0200
  • 6f68c07486 Moved std::begin() and std::end() for Urho containers into their respective header files, so that including ForEach.h is not needed for using the native range-based for. Lasse Öörni 2015-03-04 16:38:04 +0200
  • 6fd6efc4c3 Update PugiXml to 1.5. Do not attempt to parse .txt & .icns files as xml in the editor resource browser, to prevent log spam. Lasse Öörni 2015-03-04 16:10:21 +0200
  • d34dd34fc9 Use array for glyph index to char code mapping. aster2013 2015-03-04 10:05:20 +0800
  • e7f6e04eec Preserve the JS output file timestamp to avoid unnecessary re-link. At the moment a re-link may still take place due to a limitation of Emscripten's file_packager.py tool. Yao Wei Tjong 姚伟忠 2015-03-04 00:28:59 +0800
  • 4d34d0a626 Add new Emscripten build option for creating shared data file. Yao Wei Tjong 姚伟忠 2015-03-03 23:31:45 +0800
  • 897b1e6acc Fix #675. aster2013 2015-03-03 18:57:21 +0800
  • 2a6401eb54 Code cleanup on setup_emscripten_linker_flags CMake macro. Yao Wei Tjong 姚伟忠 2015-03-03 13:14:49 +0800
  • 3feb6875fd Do not redirect final quad rendering to the backbuffer on OpenGL after rendertarget ping-ponging. Fixes #674. Lasse Öörni 2015-03-02 21:04:34 +0200
  • 02572a9ec5 Add generic support for embedding and loading files for Emscripten. Via the following source file property "EMCC_OPTION". The supported property values are: js-library, pre-js, post-js, embed-file, preload-file, shell-file. The files are added as link dependency so a relink will automatically occur when they are modified (have newer timestamp than target). Yao Wei Tjong 姚伟忠 2015-03-01 13:14:05 +0800
  • a3ae935de2 Remove the HLSL4 directory. Lasse Öörni 2015-03-02 03:41:10 +0200
  • e919935abd Merge back D3D9 & D3D11 shaders using macros. Removed the "custom" constant buffer slot; rather allow to prevent the default material CB from being defined. Lasse Öörni 2015-03-02 03:39:21 +0200
  • 7b339ef36b Fixed rasterizer state hash calculation. Lasse Öörni 2015-03-01 23:47:53 +0200
  • 4ea4485d9f Fix LitSolid & LitParticle shaders failing to create input layout (missing normals.) Log more detailed error when input layout creation fails. Lasse Öörni 2015-03-01 21:33:55 +0200
  • d1a7fad925 More SM4 shaders. Do not render on D3D11 when shaders are not valid. Lasse Öörni 2015-03-01 19:25:20 +0200
  • 73c847fbeb Separate D3D11 shaders as the compatibility mode did not sample eg. the light ramp texture correctly. Lasse Öörni 2015-03-01 19:14:56 +0200
  • e7f83624aa Fix update of smallest compressed texture miplevels on D3D11. Lasse Öörni 2015-03-01 15:37:16 +0200
  • d7a16d6713 Fix potential negative specular lighting. Fix recreating the sampler state when a texture has been reloaded. Lasse Öörni 2015-03-01 14:08:01 +0200
  • 480284fb23 Removed the triangle count based instancing check, as instancing a large number of the same mesh should always result in less CPU time. Lasse Öörni 2015-03-01 13:54:09 +0200
  • e870cd6624 Implement flush GPU mode by calling SetMaximumFrameLatency(). Lasse Öörni 2015-03-01 03:04:06 +0200
  • 876d1834eb Add D3D11 sampler states. Fix crash on empty vertex declaration. Fix Matrix3x3 uniforms on D3D11. Modify gpuObjects_ to PODVector. Lasse Öörni 2015-03-01 02:38:39 +0200
  • 45d4e42240 Remove the shader parameter enum from Lua bindings as it is not used anywhere in the script-callable API. Lasse Öörni 2015-02-28 22:34:50 +0200
  • 2d8696f7dd Fix crash on fullscreen / windowed switch. Lasse Öörni 2015-02-28 22:15:12 +0200
  • abe0614268 Fix skinning on D3D11. Lasse Öörni 2015-02-28 21:40:42 +0200
  • a1d1f08190 Split uniforms into constant buffers on D3D11. Lasse Öörni 2015-02-28 21:09:41 +0200
  • 5ac8f1fb43 Clean up / reorder light shader parameter handling. Lasse Öörni 2015-02-28 18:52:53 +0200
  • f13a6a338f Fix typo and unnecessary expansion of the terrain update region. Lasse Öörni 2015-02-28 19:32:20 +0200
  • 3af78c291b Code cleanup on CMake/Emscripten toolchain file. Remove hardcoding that we don't need. Yao Wei Tjong 姚伟忠 2015-03-01 00:18:48 +0800
  • e8d4a05ab8 Fix incorrect partial terrain update when smoothing was used. Improve worst-case performance for partial terrain update by only tracking one rectangular region that encloses the changed area. Lasse Öörni 2015-02-28 16:07:20 +0200
  • 52ac4912b4 Minor code clean up on setting up the RPI supported ABIs. [ci skip] Yao Wei Tjong 姚伟忠 2015-02-28 12:19:01 +0800
  • 7a91aa0852 Initial Texture2D support. Lasse Öörni 2015-02-28 02:27:45 +0200
  • 9612a5c164 For Travis CI - add CI build jobs for Raspberry Pi 2. Yao Wei Tjong 姚伟忠 2015-02-27 22:45:35 +0800
  • 536b0a5429 Add new build option for better targeting Raspberry Pi platform. Yao Wei Tjong 姚伟忠 2015-02-27 22:19:44 +0800
  • d4524e25c7 Fixed vertex position not getting passed to pixel shader. Rework the mechanism used to keep track of dirty constant buffers. Lasse Öörni 2015-02-27 01:27:59 +0200
  • cf5f5e4a18 Fixed missing CheckFeatureSupport() & missing PrepareDraw() in instanced draw call. Lasse Öörni 2015-02-27 01:00:03 +0200
  • 20756b554d Applied btGjkPairDetector fix from Bullet head revision. Lasse Öörni 2015-02-26 11:15:49 +0200
  • 4b6951f9f4 For Travis CI - return exit code from worker thread correctly. Yao Wei Tjong 姚伟忠 2015-02-26 17:15:32 +0800
  • e6908cf859 Add Emscripten 'aggessive variable elimination' flag on Release build. Yao Wei Tjong 姚伟忠 2015-02-26 16:14:07 +0800
  • ddcdf8ed10 For Travis CI - speed up Emscripten Debug configuration build. Yao Wei Tjong 姚伟忠 2015-02-26 15:54:10 +0800
  • e780854eec Enhance Rakefile to perform xcodebuild install in a worker thread. The main Ruby thread outputs '.' character while waiting for the worker thread to complete. This should avoid Travis-CI from thinking the install process has stalled. Yao Wei Tjong 姚伟忠 2015-02-26 15:43:07 +0800
  • a936eab7c7 Initial D3D11 constant buffer handling. If URHO3D_D3D11 option given, disable OpenGL, but error out on non-Windows platforms. Lasse Öörni 2015-02-26 02:50:59 +0200
  • 48483ac07c Reduce number of distinct shader parameter groups to prepare for mapping them to constant buffers. Lasse Öörni 2015-02-26 00:58:25 +0200
  • 3685373e77 Do not store window position in fullscreen mode; would be 0,0 and position the window to hard top-left after switching back to windowed. Lasse Öörni 2015-02-26 00:04:56 +0200
  • 6e6c39c5a8 Add a ShaderProgram class also for D3D9, which holds the combined shader parameters. Cleaned up ShaderProgram handling on OpenGL. Optimized away repeated assignment of constant values from D3D9 SetShaderParameter(). Lasse Öörni 2015-02-25 21:30:58 +0200
  • cf77a15e6f Fix Android build with LuaJIT enabled on Mac OS X host system. Take 2. Yao Wei Tjong 姚伟忠 2015-02-25 22:46:11 +0800
  • 904aedef93 Fix Android build with LuaJIT enabled on Mac OS X host system. Close #670. Yao Wei Tjong 姚伟忠 2015-02-25 19:07:53 +0800
  • 4ce7ed6838 Parse shader parameters & texture units. Removed comment stripping as it did not work reliably for SM4 shaders. Lasse Öörni 2015-02-25 02:05:18 +0200
  • 1c32e957f8 Create input layouts on demand. Inspect vertex shader's input signature. Fixed setting rendertarget & depth-stencil views. Implement draw calls. Lasse Öörni 2015-02-24 23:33:57 +0200
  • 0c48c9df87 Fix Assimp to not give negative light direction. Fix FOV handling for spot lights in AssetImporter. Added error prints to Editor if fails to execute AssetImporter. Closes #669. Lasse Öörni 2015-02-24 12:19:25 +0200
  • 1e1b44c4aa Added placeholder for shader resource view in Texture classes. Fixed shader creation from bytecode to use the correct bytecode size. Lasse Öörni 2015-02-24 02:12:47 +0200
  • f4aee7da2b Vertex & index buffer creation & update. State object creation. Lasse Öörni 2015-02-23 23:04:38 +0200
  • 7b05a853d4 Merge pull request #668 from AtomicGameEngine/Fix-View3D Lasse Öörni 2015-02-23 02:31:49 +0200
  • 4339a09194 Fix typo in View3D size check Josh Engebretson 2015-02-22 16:15:35 -0800
  • 9f129ecd51 Merge branch 'master' into render-refactor Lasse Öörni 2015-02-23 01:43:02 +0200
  • 9a98779ae9 Remove StreamFrequency related functions from Graphics public API as unnecessary. Lasse Öörni 2015-02-23 00:32:50 +0200
  • 281809121c Skeleton of D3D11 graphics classes. Does not render anything visible yet and many functions lack implementation. Lasse Öörni 2015-02-22 22:44:12 +0200
  • 4fd2fe20b8 Fix Editor to not use the sm3Support variable any more. Lasse Öörni 2015-02-22 02:19:23 +0200
  • 51c80107e9 Removed debug log prints from OGLGraphics.cpp. Fixed build warnings. Lasse Öörni 2015-02-21 22:08:25 +0200
  • 88080dad31 Remove Shader Model 2 mode & instancing without stream offset (D3D9) as they are hard to test. Added Graphics::GetApiName() function. Lasse Öörni 2015-02-21 20:45:55 +0200
  • 87338ce74c Minor optimization of GetLitBatches() by calculating only once if the light has a negative color. Lasse Öörni 2015-02-21 15:32:47 +0200
  • 21d7883455 Optimize and clean up base batch / vertex light batch processing. Fix light limiting not taking point light's effective intensity into account properly. Lasse Öörni 2015-02-21 13:54:33 +0200
  • 603e5fd7b8 Reverting a change to fix an input bug -- mouse mode relative wasn't being recentered in non-emscripten builds. hdunderscore 2015-02-21 01:32:07 +1100
  • e6ab7f5ccc More kNet include order fixes. Lasse Öörni 2015-02-19 16:27:44 +0200
  • 2d3f9bf141 Include Socket.h earlier in kNet to potentially fix Winsock.h / Winsock2.h conflict. Lasse Öörni 2015-02-19 15:25:01 +0200
  • 445c87ed96 Enforce LOCAL components in LOCAL nodes, as otherwise scene network synchronization will risk a component ID overwrite. Lasse Öörni 2015-02-18 19:51:55 +0200
  • 941821bde7 Minor cleanup / optimization of StaticModel::UpdateBatches() & AnimatedModel::UpdateBatches(). Lasse Öörni 2015-02-18 01:06:37 +0200
  • 20c79cdaaf Avoid accessing Node::GetWorldTransform() in StaticModel::UpdateBatches() if possible to reduce cache misses when collecting drawables. Lasse Öörni 2015-02-17 21:59:11 +0200
  • 41b2bd749a Reorder Drawable member variables and combine functions that are called when a Drawable is marked visible for slight performance gain. Remove hardcoded check for SkyBox for whether to not include a drawable in shadow focusing calculations, and instead check for a huge bounding box. Lasse Öörni 2015-02-17 21:44:04 +0200
  • 28b511df32 Added copy cam transform to editor for easy cam alignment Chris Friesen 2015-02-17 00:04:55 -0600
  • 10e477bbc8 Add flag to consider 'unresolved symbol' as an error. Yao Wei Tjong 姚伟忠 2015-02-16 14:37:12 +0800
  • 406b71d4c9 If drawable does not limit number of per-pixel lights, no need to store them per drawable (skips allocation of dynamic memory for the light list.) Lasse Öörni 2015-02-16 02:04:54 +0200
  • d3f90cbe08 Make the URHO3D_LUA build option available for Emscripten build. Yao Wei Tjong 姚伟忠 2015-02-16 07:23:10 +0800
  • 5753a90b57 Speed up collecting visible drawables. Lasse Öörni 2015-02-16 00:04:52 +0200
  • 56f64c60b9 Texture unit refactoring. On desktop ensure continuous range of 8 material texture units, while mobile has 5. Material can define a volume (3D) texture in the volume unit (desktop only.) Lasse Öörni 2015-02-15 15:33:16 +0200
  • 6be3b14855 Merge branch 'master' into render-refactor Lasse Öörni 2015-02-15 12:59:09 +0200
  • 5c0e992ef1 Fixed a bug in touch input for Emscripten. Minor code cleanup. hdunderscore 2015-02-15 19:08:14 +1100
  • b7d87c613f Refer to HTML5 platform more accurately. Lasse Öörni 2015-02-14 23:37:48 +0200
  • 3f2f88441d Enable cascaded shadows on Emscripten. Lasse Öörni 2015-02-14 23:30:22 +0200
  • b6ea033ce3 Enable CharacterDemo & VehicleDemo also without networking. Update documentation. Lasse Öörni 2015-02-14 22:16:39 +0200