Commit Graph

9869 Commits

Author SHA1 Message Date
Lasse Öörni
31e57e01fb Add PBR sample C++ version. 2016-05-01 13:41:18 +03:00
Yao Wei Tjong 姚伟忠
9baac62031 Improve NextPowerOfTwo().
Also make it consistent with IsPowerOfTwo() to treat 0 as if it is power of 2 (although mathematically it is not). NextPowerOfTwo(0) now returns 0.
In the old version when value is larger than 0x80000000 then the function returned 0x80000000 which is not exactly correct because it is not the "next" number. In the new version the function returns 0 in this case because the next number has overflow the unsigned data type.
2016-05-01 15:33:04 +08:00
Lasse Öörni
97bf7fa8a2 Fix crash when driver allows GL version 3.2 but doesn't support instancing. 2016-05-01 00:16:44 +03:00
Yao Wei Tjong 姚伟忠
1bcae0ca2b No-ops when VertexDeclaration.h is being included for OGL graphics API.
You may want to uncomment the #error compiler directive instead to flag out the occurrences.
2016-04-30 12:42:10 +08:00
Yao Wei Tjong 姚伟忠
450bf8c6ea Fix scaffolding rake task to also create a symlink for 'Autoload' dir. 2016-04-30 12:08:14 +08:00
Yao Wei Tjong 姚伟忠
e28e6e5c85 Quick fix to suppress confusing output msgs from SDL's CMakeLists.txt.
[ci skip]
2016-04-30 11:33:23 +08:00
Lasse Öörni
6deb0780f8 Fix comments in 42_PBRMaterials.as. Add Lua version of the PBR sample. 2016-04-30 02:20:12 +03:00
Lasse Öörni
e7599463ba Improved IsPowerOfTwo(). Thanks to Y-way for initial PR. 2016-04-29 14:58:05 +03:00
Lasse Öörni
8d2c7230f0 Prevent Android / iOS reporting the mouse as grabbed. Closes #1337. 2016-04-27 18:28:03 +03:00
Yao Wei Tjong 姚伟忠
6abb199bc6 Use file symlink instead of directory for STB library.
Fix #1330.
2016-04-27 20:07:26 +08:00
Yao Wei Tjong 姚伟忠
a15abf5068 Avoid hard-coding of the sample list in the build script. 2016-04-27 12:23:35 +08:00
Yao Wei Tjong 姚伟忠
87f408be51 For CI - avoid hard-coding of the sample list in the build script.
Switch the build output verboseness to normal as the diagnostic mode also does not help to reveal any additional information on the crowd navigation sample when it segfaulted during test.
2016-04-26 13:25:45 +08:00
Yao Wei Tjong 姚伟忠
42e18222e1 For CI - give 5 seconds delay in between CI mirror branches creation.
This ensures the GitHub pushes would trigger the Travis CI build jobs in a deterministic fashion.
[ci skip]
2016-04-24 17:58:20 +08:00
urho3d-travis-ci
29f2984d71 Travis CI: API documentation update at 2016-04-24 09:48:53 UTC.
[ci package]

Commit: 31d362f879

Message: Add new engine parameter for enabling/disabling high DPI window mode.
Temporary fix for issue #1252. The high DPI mode is disabled by default.
2016-04-24 09:48:53 +00:00
Yao Wei Tjong 姚伟忠
31d362f879 Add new engine parameter for enabling/disabling high DPI window mode.
Temporary fix for issue #1252. The high DPI mode is disabled by default.
2016-04-24 17:36:32 +08:00
Lasse Öörni
d492d32f41 When building input layouts, put VS element hash to the upper 32 bits to reduce possibility of collisions. 2016-04-23 15:39:10 +03:00
Lasse Öörni
2151426adc Use proper world space in deferred light shaders. This allows the cLightPos uniform and shadow matrices to behave the same in all passes (simplifies code.) Closes #1335. 2016-04-23 01:35:41 +03:00
Yao Wei Tjong 姚伟忠
789adac03d For CI - revert back to use 40 minutes as the cutoff time.
Travis CI appears to error out a few minutes sooner than 50 minutes, we need to buffer some time to upload cache objects in the after script step.
[ci only: OSX] [skip appveyor]
2016-04-22 00:08:40 +08:00
Yao Wei Tjong 姚伟忠
dfcc445d30 For CI - give subprocess time to close all the resources.
Dangling temporary files in ccache's cache directory may prevent a successful uploading of cache objects for the next build.
2016-04-21 22:20:21 +08:00
Yao Wei Tjong 姚伟忠
1638ebc79f For CI - just send the kill signal to the specified subcommand only. 2016-04-21 18:23:17 +08:00
Lasse Öörni
91b799d666 Change the signature of the new HashMap Insert() function. Do not allow user to specify findExisting flag. As the meaning of the bool return value is reverse to std::map::insert(), do not return it in a pair to avoid confusion, but rather in a separate bool value which is passed by reference. Add corresponding function to HashSet. Edit comments. 2016-04-21 01:58:02 +03:00
Lasse Öörni
25f1d1442a Merge remote-tracking branch 'svifylabs/ExtendContainer' 2016-04-20 23:34:32 +03:00
Lasse Öörni
d80e5f9a32 Simplify OpenGL code. 2016-04-20 23:15:01 +03:00
Lasse Öörni
eedb47f612 Merge remote-tracking branch 'svifylabs/basevertexindex' 2016-04-20 22:08:29 +03:00
Yao Wei Tjong 姚伟忠
9b9a53260a For CI - Also kill the child processes when time out. 2016-04-20 18:47:47 +08:00
svifylabs
e7db8ffeab renamed local variable (copy error) 2016-04-20 08:49:09 +02:00
svifylabs
b54b5b9ef7 add TryGetValue, Insert, EraseSwap, RemoveSwap 2016-04-20 07:34:49 +02:00
Lasse Öörni
ed8740428c Remove cCameraRot uniform. Instead derive from cViewInv as necessary. Closes #1163. 2016-04-19 23:18:07 +03:00
svifylabs
e94d00517c fix compile error and added runtime check 2016-04-19 18:22:34 +02:00
svifylabs
c09b638524 Add Graphics draw call with baseVertexIndex (offset)
only  supported for opengl 3  and direct3d
2016-04-19 16:06:31 +02:00
urho3d-travis-ci
03f355ca96 Travis CI: API documentation update at 2016-04-19 09:54:00 UTC.
[ci package]

Commit: 57389d42c2

Message: Minor documentation edit.
2016-04-19 09:54:00 +00:00
Lasse Öörni
57389d42c2 Minor documentation edit. 2016-04-19 12:41:44 +03:00
Lasse Öörni
88acae8c77 Fix instancing texcoord in the PBR HLSL shader. 2016-04-18 22:47:34 +03:00
Lasse Öörni
c003af1114 Merge branch 'master' into vertexdeclaration 2016-04-18 22:34:00 +03:00
Yao Wei Tjong 姚伟忠
70db25ac45 For CI - allow guarded long running process to use longer cutoff time. 2016-04-18 16:56:51 +08:00
Lasse Öörni
cd19bf0939 Merge pull request #1327 from BlueMagnificent/ScriptInstance_Execute
Add additional Variant Types For ScriptInstance::Execute()
2016-04-18 10:29:58 +03:00
hdunderscore
310252fa25 Re-ordered the deferred g-buffer to allow GL3 to receive the material roughness. 2016-04-18 16:53:37 +10:00
Yao Wei Tjong 姚伟忠
da3711f0e6 For CI - remove 32-bit only iOS build.
[ci only: OSX]
2016-04-18 13:44:13 +08:00
Yao Wei Tjong 姚伟忠
faf50b0d99 For CI - wake up the main thread as soon as worker thread completes. 2016-04-18 12:38:07 +08:00
Blue, The Magnificent
0913210731 Add additional Variant Types that have objects exposed to AngelScript subsystem 2016-04-18 00:54:48 +01:00
hdunderscore
076eaca13e Update PBR techniques, fixed an issue with normal maps not showing with PBRDiffNormal.xml 2016-04-18 09:09:06 +10:00
Lasse Öörni
1ba0958fa7 Fix render-to-texture views (part of a material) not being updated on the first frame. 2016-04-17 21:35:32 +03:00
Yao Wei Tjong 姚伟忠
e5f758f9fc Install/package 'Autoload' directory.
[ci package]
2016-04-17 22:44:21 +08:00
Lasse Öörni
3f861d67dd Enable seamless cubemap if possible on desktop GL (from 1vanK). Clarify meaning of Light::SetShadowIntensity(). 2016-04-17 16:58:41 +03:00
Yao Wei Tjong 姚伟忠
b531d1b2e5 For CI - yield the code block in full speed when not using Xcode. 2016-04-17 18:58:30 +08:00
hdunderscore
42cbca8b26 Fix an issue in the PBR shaders that was causing noise. 2016-04-17 12:26:43 +10:00
hdunderscore
ede6383c27 Reduced an artifact in the PBR IBL shader, simplified the code, renamed PBRFAST to IBLFAST and reduced unnecessary iterations when IBLFAST is defined. 2016-04-17 11:19:38 +10:00
Lasse Öörni
c48b25abca Use the new model format in OgreImporter. 2016-04-16 21:11:42 +03:00
Yao Wei Tjong 姚伟忠
01760b8ada For CI - make worker thread has higher priority than the main thread. 2016-04-16 21:00:18 +08:00
Yao Wei Tjong 姚伟忠
fb47f495da For CI - check the time each minute instead of at each post build step.
This should fix 2 things: 1) long running glew compilation being killed by Travis CI due to absent of output; 2) long running universal binary for Urho3D library target on iOS build overshoot the build time limit.
2016-04-16 20:24:34 +08:00