Commit Graph

10202 Commits

Author SHA1 Message Date
Lasse Öörni
27141fe66b Add contributor. 2017-08-22 20:53:31 +03:00
Eugene Kozlov
c38a14c537 Use variadic SendEvent in Console::HandleTextFinished. Remove URHO3D_CXX11 define. Revert find_package (ODBC REQUIRED). Update porting notes. 2017-08-22 20:39:27 +03:00
Lasse Öörni
435d73da8a Merge remote-tracking branch 'rainerdeyke/master' 2017-08-22 20:38:29 +03:00
Eugene Kozlov
35ae79e807 Remove item about constructor style. Add link to google code style guide. 2017-08-22 14:03:15 +03:00
Eugene Kozlov
ce2cb1cf48 Update coding conventions examples. Remove item from 3rdParty contribution checklist. 2017-08-22 13:27:27 +03:00
Rainer Deyke
8ebfa39ce8 Added Lua bindings for new IntRect utility functions. 2017-08-22 07:50:05 +02:00
Eugene Kozlov
b26903703a Remove URHO3D_CXX11 guards. 2017-08-22 00:45:38 +03:00
Eugene Kozlov
8a93493ca6 Update coding conventions for C++11. 2017-08-21 18:55:18 +03:00
Rokas Kupstys
e2d2f8e388 Fix crash on android
In some cases old activity may be destroyed after new activity is created. `onCreate()` of new activity gets called and initializes new activity as well as static variables, then `onDestroy()` is called on old activity and cleans up static variables that were just initialized by new activity. This change prevents calling `SDLActivity.initialize()` in `onDestroy()` if new activity has already reinitialized static variables.
2017-08-21 15:25:40 +03:00
Lasse Öörni
de18c72ce7 Cleanup unused code from Renderer. Add "persistent" flag to readable depth buffers in the HWDepth deferred renderpaths. This is required to fix a D3D11 bug leading to garbled display with multiple rendertexture views that use readable depth. Closes #2082. 2017-08-20 21:43:45 +03:00
Lasse Öörni
3a85655248 Prevent use of system call also on iOS. Closes #2083. 2017-08-20 21:43:45 +03:00
Yao Wei Tjong
2118761c5a For CI - correct typo.
[skip appveyor] [ci only: master]
2017-08-21 00:10:27 +08:00
Rokas Kupstys
ad464086e4 Fix for build error on AppVeyor 2017-08-20 18:20:55 +03:00
Yao Wei Tjong 姚伟忠
7e1c82685f For CI - ensure debug build stage does not produce any build artifact. 2017-08-20 22:05:08 +08:00
Rainer Deyke
b8495dbd28 Added Clip, Merge, and contructor from pair of IntVector2 to IntRect. 2017-08-20 15:01:59 +02:00
Lasse Öörni
fece9d6cc4 Fix uninitialized variables in InverseKinematics sample. Closes #2081. 2017-08-20 12:24:05 +03:00
Yao Wei Tjong 姚伟忠
be87f315f2 For CI - misc. post-mortem fixes. 2017-08-20 16:43:33 +08:00
Rokas Kupstys
f8097b976a After rendering to texture restore previous render surface if UI subsystem was called with resetRenderTargets=false. 2017-08-20 11:04:43 +03:00
Rokas Kupstys
6fc2c19baa More code cleanups.
* Moved `UIComponent::GetViewport()` to `Scene` class.
* Simplified resource initialization of `UIComponent` and removed need of overriding `IsEnabled()`.
* Renamed `UIComponent::GetElement()` to `GetRoot()` to be more consistent with UI subsystem.
* Removed ability to set root UI element to `UIComponent`, instead to add UI elements should be added as children to element renturned by `UIComponent::GetRoot()`.
* Cleaned up debug rendering in HelloGUI sample. Debug data is now rendered after pressing F2.
2017-08-20 10:55:58 +03:00
Lasse Öörni
50dd3fd3c9 Fix memory backtrace option (Linux-only) getting enabled on non-Unix platform in debug build. 2017-08-19 20:38:45 +03:00
Rokas Kupstys
16ee7e1121 * Changed UIComponent::IsValid() to overriden UIComponent::IsEnabled()
* Separated batches and vertex buffers of normal UI and UI rendered to texture.
* Cleaned up `Render()` method adding additional `surface` parameter to render into. Passing null renders on to screen.
Support for rendering UI to texture.

This change adds support for rendering GUI into a texture. This is achieved by adding `UIComponent` component to `Node`. `UIComponent` overrides material of `Node`'s `StaticModel`. UI subsystem is changed so that batches belonging to UI elements owned by `UIComponent` are rendered into a texture that is also contained in `UIComponent`. Input is handled by UI subsystem, so anything that worked on normal UI will work on UI rendered on to 3D object. This required a minor change for input handling. Previously "screen" was considered surface of entire window. Now screen is considered area of root_element_position + root_element_size. This is fully backwards-compatible.

There is one issue i am unable to solve: since on OpenGL texture coordinates start from bottom-left corner a workaround is needed. Texture is flipped by projection matrix, however it breaks scissor test. I do not know how to properly fix it therefore scissor test is disabled when rendering into texture on OpenGL. Issue is clearly visible when scrolling a `ListView` in `HelloGUI` sample when UI is rendered on to a cube.

Other changes: lua and angelscript bindings, HelloGUI sample can toggle between rendering on screen or rendering on cube, added a ListView to HelloGUI sample window. `UI::DebugDraw()` support.
2017-08-19 20:33:00 +03:00
Lasse Öörni
12c394232c Disable verbose debug output (z_verbose & z_error) from FreeType's zlib, to make sure it doesn't clash with Assimp's zlib in a debug build. 2017-08-19 19:56:06 +03:00
Lasse Öörni
4612ee2a67 Cutoff current state of porting notes to 1.7 version. 2017-08-19 18:55:51 +03:00
Lasse Öörni
2ac4f89a86 Reorder changelog sections for consistency with last changelog. 2017-08-19 14:36:37 +03:00
urho3d-travis-ci
c4ebdf9424 Travis CI: API documentation update at 2017-08-19 08:04:29 UTC.
[ci package]

Commit: 05452b8bd1

Message: Refactor IntegerLog2() to LogBaseTwo() for performance and consistency.
2017-08-19 08:04:29 +00:00
Yao Wei Tjong 姚伟忠
05452b8bd1 Refactor IntegerLog2() to LogBaseTwo() for performance and consistency. 2017-08-19 15:43:38 +08:00
Yao Wei Tjong 姚伟忠
9dfff67e97 Support Web build tree path with spaces.
Fix #2078.
2017-08-19 15:12:33 +08:00
Yao Wei Tjong 姚伟忠
3e58ccf41c Revert "Remove temporary workaround which appears to be redundant now."
This reverts commit 4068d2474e.
2017-08-19 15:11:21 +08:00
Lasse Öörni
4265f99a8c Fix normals / lighting on the cylinder by using auto normal smoothing. Closes #2075. 2017-08-18 22:40:13 +03:00
Lasse Öörni
e877b98544 Typo fix and highlight WebAssembly. 2017-08-18 10:00:59 +03:00
Lasse Öörni
f644b7b87f Initial V1.7 changelog. 2017-08-17 23:00:31 +03:00
Yao Wei Tjong 姚伟忠
0d7d0e573d Generate a dummy/initial PCH when using out-of-source build tree only.
Fix #2068.
2017-08-17 07:07:38 +08:00
Lasse Öörni
9575cd6539 Remove joke to keep in line with rest of documentation. 2017-08-16 18:55:46 +03:00
Lasse Öörni
144108a1f3 Merge remote-tracking branch 'TheComet93/IKDoc' 2017-08-16 18:38:55 +03:00
Lasse Öörni
18d5ce2fed Remove unnecessary VS defines from PBR techniques. 2017-08-16 13:26:45 +03:00
Lasse Öörni
c2c1d06cd2 Remove unused IBL code which requires tangents / bitangents, and do not require tangents for IBL / non-normalmapped. Fix PBR techniques so that VS also refers to NORMALMAP define when necessary, since that is now required to trigger the tangent calculation. Closes #2072. 2017-08-16 11:26:51 +03:00
TheComet
8f4b77aa34 Finished IK documentation 2017-08-15 21:52:51 +02:00
TheComet
b4fc4c28b6 Documenting IK some more... 2017-08-15 00:34:48 +02:00
TheComet
1695a263db Working on IK documentation... 2017-08-15 00:34:48 +02:00
Yao Wei Tjong 姚伟忠
848f52fbe9 For CI - attempt to implement the conditional build stage on our own.
This is to fix packaging build on OSX build environment where they were running out of time in the absense of the pre-cache stage.
[ci package] test that it does not trigger on a branch.
2017-08-14 09:01:30 +08:00
Lasse Öörni
c1630d8d8d Merge pull request #2067 from TheComet93/iss2054
IKEffector target bug fix
2017-08-13 16:24:46 +03:00
Lasse Öörni
6af97c59b6 Remove setting certain RigidBody boolean flags when UpdateMass() readds the body to world, to avoid introducing potential new bugs. 2017-08-13 15:40:39 +03:00
TheComet
cdbfd83e4a fixes #2054 - If there was a node in the scene with an empty name, IKEffector would always select that node as a target 2017-08-13 14:04:27 +02:00
urho3d-travis-ci
2da19c1ab6 Travis CI: API documentation update at 2017-08-12 13:56:05 UTC.
[ci package]

Commit: d537c2027a

Message: Merge pull request #2061 from eugeneko/navmesh-streaming

Navmesh streaming
2017-08-12 13:56:05 +00:00
Eugene Kozlov
d537c2027a Merge pull request #2061 from eugeneko/navmesh-streaming
Navmesh streaming
2017-08-12 15:52:35 +03:00
Lasse Öörni
63724fcdc3 Remove unnecessary parameter from the bugfix code. 2017-08-12 15:14:01 +03:00
Lasse Öörni
ad3a30f2e3 If Rigidbody's collisionshape changes, readd to world. Fixes #2064. 2017-08-12 13:41:24 +03:00
Yao Wei Tjong 姚伟忠
4068d2474e Remove temporary workaround which appears to be redundant now. 2017-08-10 23:22:56 +08:00
urho3d-travis-ci
768b6ddf5a Travis CI: API documentation update at 2017-08-09 19:56:06 UTC.
[ci package]

Commit: 787ce41a81

Message: Merge remote-tracking branch 'TheComet93/iss2058'
2017-08-09 19:56:06 +00:00
Lasse Öörni
787ce41a81 Merge remote-tracking branch 'TheComet93/iss2058' 2017-08-09 22:19:33 +03:00