Commit Graph

9612 Commits

Author SHA1 Message Date
Lasse Öörni
941821bde7 Minor cleanup / optimization of StaticModel::UpdateBatches() & AnimatedModel::UpdateBatches(). 2015-02-18 01:06:37 +02:00
Lasse Öörni
20c79cdaaf Avoid accessing Node::GetWorldTransform() in StaticModel::UpdateBatches() if possible to reduce cache misses when collecting drawables. 2015-02-17 22:00:31 +02:00
Lasse Öörni
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. 2015-02-17 21:44:04 +02:00
Chris Friesen
28b511df32 Added copy cam transform to editor for easy cam alignment 2015-02-17 00:06:01 -06:00
Yao Wei Tjong 姚伟忠
10e477bbc8 Add flag to consider 'unresolved symbol' as an error. 2015-02-16 14:51:28 +08:00
Lasse Öörni
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.) 2015-02-16 02:04:54 +02:00
Yao Wei Tjong 姚伟忠
d3f90cbe08 Make the URHO3D_LUA build option available for Emscripten build. 2015-02-16 07:23:10 +08:00
Lasse Öörni
5753a90b57 Speed up collecting visible drawables. 2015-02-16 00:12:52 +02:00
Lasse Öörni
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.) 2015-02-15 15:33:16 +02:00
Lasse Öörni
6be3b14855 Merge branch 'master' into render-refactor 2015-02-15 12:59:09 +02:00
hdunderscore
5c0e992ef1 Fixed a bug in touch input for Emscripten.
Minor code cleanup.
2015-02-15 19:08:14 +11:00
Lasse Öörni
b7d87c613f Refer to HTML5 platform more accurately. 2015-02-14 23:37:48 +02:00
Lasse Öörni
3f2f88441d Enable cascaded shadows on Emscripten. 2015-02-14 23:30:22 +02:00
Lasse Öörni
b6ea033ce3 Enable CharacterDemo & VehicleDemo also without networking. Update documentation. 2015-02-14 22:16:39 +02:00
Lasse Öörni
84b5a2de5f Shadow support on Emscripten. For now same capability as on mobiles; no cascaded shadow map. 2015-02-14 21:31:18 +02:00
Lasse Öörni
aa2f27bc73 Do not use the mobile framerate limit on Emscripten as frame limiting to 60fps will be choppy. Rather rely on vsync. 2015-02-14 18:55:42 +02:00
Lasse Öörni
7e350343d5 Define MOBILE_GRAPHICS or DESKTOP_GRAPHICS in GraphicsDefs.h based on the platform. Avoid GetPlatform() and string compare in Technique. 2015-02-14 18:55:07 +02:00
Yao Wei Tjong 姚伟忠
598030140d Some how the strike through markdown does not work, so use hard delete.
Audio and mouse locking are working now in Emscripten build, credits to Chris and hd_, respectively.
[ci skip]
2015-02-14 21:41:10 +08:00
Yao Wei Tjong 姚伟忠
9bf0d95b33 Use full URL so that SF.net can display our logo correctly there.
Mark Emscripten build support as experimental.
2015-02-14 20:24:30 +08:00
Yao Wei Tjong 姚伟忠
b594db841f Fix MinGW build regression issue. 2015-02-13 23:08:22 +08:00
urho3d-travis-ci
7c77ad06dc Travis CI: API documentation update at 2015-02-13 13:55:43 UTC.
[ci package]
2015-02-13 13:55:43 +00:00
Yao Wei Tjong 姚伟忠
8be7896e44 For Travis CI - switch back to use Linux CI build environment.
Add Emscripten-CI into the CI-mirror branches list.
2015-02-13 21:42:07 +08:00
Chris Friesen
b8c04a3e9e Emscripten audio support 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
34de545b4d For Travis CI - Fix Emscripten CI build with Debug build configuration. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
00410603a1 Do not install NinjaSnowWar.sh and Editor.sh for Emscripten build. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
c48a46303b Use -g4 flag for Emscripten Debug configuration build.
[ci package]
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
24e70ecd60 For Travis-CI - reduce number of samples in Emscripten build.
Also remove CI build for shared lib type. It is anyway just an emulation as Emscripten does not support dynamic library (yet) and our earlier issue with emar for static lib type has been fully resolved. Test [ci package] for Emscripten.
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
a77e24d8ad Enable external project macro users to find and use PackageTool.
Adjust software packaging for Emscripten.
2015-02-13 21:31:59 +08:00
hdunderscore
22d0f41943 - Restricted input processing while input focus is false.
- (Emscripten) Set focus based on page visibility on load.
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
bb438ac6d9 Fetch the Emscripten SDL2 port in an orderly fashion. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
85c893a83d Attempt to enable CI build for Emscripten. 2015-02-13 21:31:59 +08:00
hdunderscore
129f2f7dd9 Fixed an issue in Emscripten with mouse jumping when exiting mouse mode MM_RELATIVE (Pointer Lock), and a mouse jump when entering pointer lock for the first time and pressing a mouse button. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
ef38543b5a Merge custom output command into custom target for resource packaging.
Add additional logic on Windows host to prevent unnecessary re-linking due to repackaging on each build. There is still no easy way on Windows host to skip repackaging though.
Eliminate the 'Application::GetSubsystem<Engine>()' call on each frame.
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
e076d037c6 Minor convention and code clean up. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
a66df72ff5 Fix host tool building and relinking dependency.
Also fix an issue with CMake reconfiguration where the internal cache work against the regeneration of the custom RESOURCE_CHECK target.
2015-02-13 21:31:59 +08:00
hdunderscore
ee00a78d2b - Fixed hidden OS cursor behaviour in Emscripten.
- Added a Pointer Lock API request in Emscripten when Input::SetMouseMode(MM_RELATIVE) is called.
- Added an event for mouse mode changing.
- Fixed Emscripten focus change detection.
2015-02-13 21:31:59 +08:00
Chris Friesen
57eeeb84b1 Fix terrain shader in chrome by explicitly setting precision 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
8471dcf3e4 Add option to package resource dirs and treat those dirs as build deps.
Fix static library building using emar instead of ar (from host compiler toolchain).
2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
639b4ec3f7 Revert back the Urho3D CMake common module. 2015-02-13 21:31:59 +08:00
hdunderscore
92fe5d3c89 -The suffix is important on Windows when running CMake 'execute_process' in enable_pch, otherwise execute_process will not recognize the compiler as a file.
-Also reduced usr/bin/ar to ar, as it was invalid on Windows.
2015-02-13 21:29:10 +08:00
Yao Wei Tjong 姚伟忠
6e0ff48059 Suppress linker warnings. Minor doc update. 2015-02-13 21:23:05 +08:00
Yao Wei Tjong 姚伟忠
19ab396e74 Add new Emscripten/CMake toolchain file based on Urho3D convention.
Use EMSCRIPTEN_ROOT_PATH environment variable to specify the root path to the emscripten, instead of the original EMSCRIPTEN environment variable exported in emsdk_set_env.sh.
This is because the original EMSCRIPTEN environment variable name clashes with our build scripts.
2015-02-13 21:23:05 +08:00
Yao Wei Tjong 姚伟忠
e1a64d840e Disable CI build for Emscripten port for now. 2015-02-13 21:23:05 +08:00
Yao Wei Tjong 姚伟忠
6763207787 Complet the rebase to master branch. 2015-02-13 21:23:05 +08:00
badpixels
7061421425 Make sure -s USE_SDL=2 is part of compiler command line when building Urho3D library 2015-02-13 21:23:05 +08:00
t
395191e991 eliminate some compiler warnings 2015-02-13 21:23:05 +08:00
t
b596c1de5e more notes and references added to Readme.emscripten.txt 2015-02-13 21:23:05 +08:00
t
9b770dd1f8 add sample build script buildEmscriptenSamples.sh 2015-02-13 21:23:05 +08:00
t
e60cbcdab5 remove glew references in OGLGraphicsImpl.h when building with emscripten 2015-02-13 21:23:05 +08:00
t
5d92f18b46 engine source changes for emscripten 2015-02-13 21:23:05 +08:00