Commit Graph

5243 Commits

Author SHA1 Message Date
Lasse Öörni
02c595c8b7 Disable Bullet's built-in profiler, as the results are not being used. 2014-11-03 14:06:26 +02:00
hdunderscore
17e48a27f5 Child elements of a scroll view can now be auto disabled when touch scrolling to prevent triggering of child element events. 2014-11-03 09:48:38 +11:00
hdunderscore
bb3475b797 Exposed UIElement::GetDragButtonCombo and UIElement::GetDragButtonCount to Lua script, and adjusted their signatures. 2014-11-03 07:43:36 +11:00
hdunderscore
00656c5d30 Added a range check on GetDragElement(unsigned). 2014-11-03 07:36:33 +11:00
Yao Wei Tjong 姚伟忠
e9decd10ba Fix global anisotropic filtering mode on OpenGL. Closes #509. 2014-11-03 01:00:45 +08:00
hdunderscore
13412bc68f A sample showing how to use UI drag features (drag begin/move/end/cancel and how to use most of the event data), and it can be used to demonstrate multi-touch drag support on touch-enabled devices. 2014-11-02 15:29:04 +11:00
hdunderscore
007d3acc1a Changes to UI drag behavior:
- Multi-touch drag support
- Combo touch support -- you get id mask of pressed buttons + number of buttons + the average of their positions
- OnDrag* signature updates, with more information available and improved OnDragCancel / E_DRAGCANCEL support.
2014-11-02 14:17:37 +11:00
Yao Wei Tjong 姚伟忠
ec43f4e815 Init Graphic subsystem to have the same tex filtering mode as engine.
The Engine parameter and Renderer has the default texture filtering mode set to trilinear. While the Graphic subsytem has it set to bilinear. This mismatch would cause unnecessary graphic API calls, especially on OpenGL, in the first frame.
2014-11-01 20:39:55 +08:00
Yao Wei Tjong 姚伟忠
8ca1ee6096 Further clean up on URHO3D_OPENGL build option. 2014-10-31 12:26:18 +08:00
urho3d-travis-ci
18dbf70d0f Travis CI: API documentation update at 2014-10-30 13:24:38 UTC.
[ci package]
2014-10-30 13:24:38 +00:00
Lasse Öörni
3721ee0b10 Added Time::GetTimeSinceEpoch() and FileSystem::SetLastModifiedTime(). 2014-10-30 15:12:35 +02:00
Yao Wei Tjong 姚伟忠
899f8334f3 For Travis CI - add CI builds for MinGW + URHO3D_OPENGL=0 combination.
These new CI builds will perform the build test on the DirectX code path which is currently not covered in any of our existing CI.
The CI builds should also improve the detection of any breakage caused by build script changes for MinGW compiler.
2014-10-30 12:33:11 +08:00
Yao Wei Tjong 姚伟忠
971fa90c10 Always use FindDirect3D.cmake module on WIN32 when DirectX is used.
The module is enhanced so it works with both MSVC and MinGW compilers. On MinGW compiler the module does not actually attempt to search for DirectX SDK, instead it simply assumes that the headers and libraries for Direct3D are made available by the MinGW distribution.
2014-10-30 11:33:42 +08:00
Yao Wei Tjong 姚伟忠
09dcc466f9 Use the same condition to exclude kNet when using SDK installation.
Related to commit 867160628c
2014-10-29 19:50:45 +08:00
Lasse Öörni
867160628c Do not include Urho's built-in kNet include dir if URHO3D_NETWORK is disabled. 2014-10-29 10:48:21 +02:00
urho3d-travis-ci
5456dcf406 Travis CI: API documentation update at 2014-10-28 10:29:07 UTC.
[ci package]
2014-10-28 10:29:07 +00:00
Lasse Öörni
ff7cd0bb50 Use SDL_WINDOWPOS_UNDEFINED as the default window position to simplify code. 2014-10-28 11:17:35 +02:00
Jonne Nauha
2ae415939f E_WINDOWPOS and initial window position OGLGraphics implementation. 2014-10-27 17:15:44 -07:00
Jonne Nauha
7fee7f7cb5 Input: Notify Graphics subsystem about SDL window moved event. 2014-10-28 01:58:12 +02:00
Jonne Nauha
66913cf103 Engine: New WindowPositionX/Y init params. Sets initial window position prior to SetMode that creates the window. 2014-10-28 01:57:43 +02:00
Jonne Nauha
03d9532b4a New E_WINDOWPOS event when SDL notifies window movement. Support for setting initial window position beforecreation. 2014-10-28 01:55:49 +02:00
Lasse Öörni
c15411085a If DirectX SDK is not searched for or not found, DIRECT3D_LIBRARIES is not defined. Use hardcoded library names in that case. Closes #504. 2014-10-27 14:01:35 +02:00
Lasse Öörni
b923118fee Renamed parameter & clarified comment. 2014-10-26 13:50:54 +02:00
Alex Parlett
1aee7eb04e [Added] Ability to create script object by specifying an interface it implements instead. This interface has to be registered with the engine via engine->RegisterInterface...
[Changed] Made use of built in angelscript internals to find whether the script class found implements ScriptObject
[Changed] Check whether the current module holds the class and not the entire engine
2014-10-26 11:58:05 +00:00
urho3d-travis-ci
4a362593c2 Travis CI: API documentation update at 2014-10-26 05:16:35 UTC.
[ci package]
2014-10-26 05:16:35 +00:00
Yao Wei Tjong 姚伟忠
2c5fb1db03 Fix Technique class to recalculate memory used based on numPasses.
Add and expose convenient methods to retrieve the Passes in the Technique based on the pass type StringHash.
Note the API breaking change. In AngelScript the Technique's "passes" property is now returning all passes without taking any index. Use the "GetPass(StringHash)" method to get a single pass instead.
2014-10-26 13:06:00 +08:00
Lasse Öörni
d7924f907f Added glyph offset functionality to Font. Closes #13. 2014-10-25 23:11:49 +03:00
Lasse Öörni
3f51cee989 Give Data directory priority over CoreData. Give autoload paths priority over the default directories/packages. Fix the resource path/package add priority (index) having no effect, which would result in the editor not giving highest priority to the user's resource data directory. Closes #499. 2014-10-23 11:23:34 +03:00
Yao Wei Tjong 姚伟忠
d8177c23de Add "free" keyword to the project about info. 2014-10-21 11:53:11 +08:00
Lasse Öörni
59d48c1a43 Allow to momentarily disable multisample antialiasing. Used for UI and fullscreen quad rendering. 2014-10-20 22:17:58 +03:00
Yao Wei Tjong 姚伟忠
6099f0aafd Fix FindDirect3D.cmake module to only pick June 2010 SDK.
Closes #492.
2014-10-20 18:43:49 +08:00
Perttu Ahola
75fef62758 Fix Connection not sending delta update if only user variables have been modified 2014-10-17 11:09:10 +03:00
Lasse Öörni
5e8b50c9d3 Further package download logic fixes to ensure a package is not potentially entered into the resource cache several times, and that packages in the cache are scanned for only when necessary. 2014-10-15 13:25:43 +03:00
Lasse Öörni
8cc2386650 Clean up duplicated code related to package download requests. 2014-10-15 12:12:07 +03:00
Yao Wei Tjong 姚伟忠
1f91109413 Minor typo correction on the String::Compare() method. 2014-10-15 12:54:35 +08:00
urho3d-travis-ci
550d252cd1 Travis CI: API documentation update at 2014-10-14 19:36:58 UTC.
[ci package]
2014-10-14 19:36:58 +00:00
Lasse Öörni
18e85ab18a Changed Connection::SendPackageToClient() to not broadcast to all clients. Instead Network::SendPackageToClients() will send to all clients in a specific scene. Updated Network Lua bindings. 2014-10-14 22:07:01 +03:00
Lasse Öörni
cde92a8358 Minor editing of comments. 2014-10-14 21:46:16 +03:00
Lasse Öörni
bc0a61a116 Merge remote-tracking branch 'remotes/cin/master' 2014-10-14 21:22:16 +03:00
cin
949de81bd4 All sync method replaced by void Connection::SendPackageToClients(PackageFile* package) may be called after Scene::AddRequiredPackageFile on server 2014-10-15 00:10:35 +11:00
cin
264cd304ff Check changes in required packages before sync. 2014-10-14 14:39:26 +11:00
Yao Wei Tjong 姚伟忠
fedba5a558 Fix generation of temporary file name for Lua on Windows platform. 2014-10-14 11:18:47 +08:00
urho3d-travis-ci
40f745c82e Travis CI: API documentation update at 2014-10-13 21:52:40 UTC.
[ci package]
2014-10-13 21:52:40 +00:00
Lasse Öörni
64929dc50d Add possibility to disable RigidBody mass update to optimize performance when using several collisionshapes in the same node. Closes #489. 2014-10-14 00:41:12 +03:00
Perttu Ahola
86a035decf Fix Variant:SetBuffer and VariantMap:SetBuffer in Lua 2014-10-13 13:36:44 +03:00
cin
005dee766c Added SyncPackages method. Can be called server and client connection.
In first case it begin synchronization of packages with all clients.
In second case client send message to server to begin synchronization of packages with all clients or with only this client.
2014-10-13 14:15:53 +11:00
Lasse Öörni
4f5c3d2e9b Restore optional slow but more precise operation for AreaAllocator. Disabled by default. 2014-10-12 19:37:20 +03:00
Lasse Öörni
e5b379ec27 Added note of intentional lack of virtual destructor in HashBase and VectorBase. Closes #485. 2014-10-12 18:16:41 +03:00
Lasse Öörni
1786c20662 Clean up AreaAllocator code and allow the Reset function same functionality as the constructors. Added additional heuristic to prevent failed large allocation. Mark todo for needing to reimplement a slower but more proper mode. 2014-10-12 16:04:21 +03:00
urho3d-travis-ci
0932d2d7e6 Travis CI: API documentation update at 2014-10-10 19:44:40 UTC.
[ci package]
2014-10-10 19:44:40 +00:00
Lasse Öörni
3b1d415c70 Duplicate FaceCameraMode in Text3D.pkg to avoid crash with bindings. Closes #484. 2014-10-10 22:28:50 +03:00
Lasse Öörni
366d3e4c8c Make sure rigidbody is erased from the delayedWorldTransforms structure when being destroyed. Possibly a fix for #483. 2014-10-10 12:18:32 +03:00
Lasse Öörni
c92dc4ecf4 Fix crash with sceneless renderpath. Closes #482. 2014-10-10 11:51:36 +03:00
Lasse Öörni
b0598282d9 Fix AreaAllocator end iterator bug when going through a grow cycle. If growing the allocator before first allocation, simply expand the existing free area. 2014-10-08 13:41:47 +03:00
Yao Wei Tjong 姚伟忠
744b7a8e24 Minor code cleanup. 2014-10-08 14:04:06 +08:00
Lasse Öörni
083bc0d42a Fix Vector::Insert() not using const iterator correctly. 2014-10-07 19:34:34 +03:00
Lasse Öörni
807bd28a9d Add URHO3D_NETWORK CMake parameter to control whether networking support is built. 2014-10-07 19:33:33 +03:00
urho3d-travis-ci
d92798e667 Travis CI: API documentation update at 2014-10-06 16:49:13 UTC.
[ci package]
2014-10-06 16:49:13 +00:00
Lasse Öörni
7497885657 Added XMLFile::ToString(). 2014-10-06 18:49:52 +03:00
Yao Wei Tjong 姚伟忠
bee2240fb5 For Travis CI - replace xctool with xcpretty to filter build output.
Close #477. [ci package]
2014-10-06 22:55:35 +08:00
urho3d-travis-ci
c284dd07aa Travis CI: API documentation update at 2014-10-06 10:46:57 UTC.
[ci package]
2014-10-06 10:46:57 +00:00
Lasse Öörni
e7bbcfe058 Added Values() function to HashMap. 2014-10-06 13:25:34 +03:00
Lasse Öörni
7dc312f009 Fix using formatted log functions from outside Urho3D namespace. 2014-10-06 11:53:45 +03:00
urho3d-travis-ci
852eda6c50 Travis CI: API documentation update at 2014-10-06 08:06:00 UTC.
[ci package]
2014-10-06 08:06:00 +00:00
Lasse Öörni
562f401ffa Refactor resource reloading based on filename into a function, which can be called externally. 2014-10-06 10:56:04 +03:00
Yao Wei Tjong 姚伟忠
e87f0eb89a Revert back OGLGraphics class to fix Android and Raspberry-Pi build. 2014-10-05 21:14:18 +08:00
Yao Wei Tjong 姚伟忠
f943bb4faa Unwarn patch for AppleClang. A few warnings were indeed coding error. 2014-10-05 20:22:49 +08:00
Yao Wei Tjong 姚伟忠
f9a701380e Unwarn patch for Clang. Two of the warnings were indeed coding error.
Warnings from third-party libraries are ignored as they appear to be harmless.
2014-10-05 16:14:38 +08:00
Lasse Öörni
a04b3f746d Added option to route / block / process resource requests. Based on celeron55's patch. Closes #469. 2014-10-05 00:32:46 +03:00
Lasse Öörni
2f7402f6ba Delete kNet server listen sockets properly so that the server can be stopped and restarted. Closes #480. 2014-10-04 17:50:22 +03:00
Lasse Öörni
3032244467 Use StartNewMessage / EndAndQueueMessage to prevent assert with zero size messages. Closes #478. 2014-10-04 01:29:27 +03:00
Yao Wei Tjong 姚伟忠
fca678c3b9 For Travis CI - add CI build using Clang, optimize for MinGW install. 2014-10-03 18:13:31 +08:00
Lasse Öörni
4096cc9006 Ensure that when rendering on OpenGL to a texture, the debug geometry is drawn properly in respect to projection matrix flipping. Improve OpenGL debug geometry rendering by rendering it to the intermediate buffer if one exists, so that depth values from the buffer can be correctly used. 2014-10-02 13:46:55 +03:00
urho3d-travis-ci
abfc829958 Travis CI: API documentation update at 2014-10-01 18:28:47 UTC.
[ci package]
2014-10-01 18:28:47 +00:00
Lasse Öörni
7f4b8e5b35 Allow controlling per-viewport if debug geometry should be rendered, instead of hardcoding to just backbuffer views. 2014-10-01 21:15:30 +03:00
Lasse Öörni
2dc6c117cd When a wordwrap text element exists in a parent layout, force a final layout update on the parent to prevent the parent remaining too large. Closes #475. 2014-10-01 18:18:08 +03:00
Lasse Öörni
d07dc5919a Start model's geometries with at least 1 LOD level to prevent error when a call to SetNumGeometryLodLevels() is forgotten. 0 LOD levels does not make sense. 2014-10-01 14:06:37 +03:00
Lasse Öörni
9fce7ef0b7 Add "from scratch" model creation to the DynamicGeometry sample. 2014-10-01 13:56:18 +03:00
Lasse Öörni
fdc9ae79ab Allow the PROFILE macro to be used outside Urho3D namespace. 2014-09-30 12:26:32 +03:00
Lasse Öörni
2c56c650af Fix outdated comment. 2014-09-30 09:20:23 +03:00
Yao Wei Tjong 姚伟忠
843f6c733c Simplify the construct for guarding against empty output string. 2014-09-30 10:12:47 +08:00
urho3d-travis-ci
4c1d24c81f Travis CI: API documentation update at 2014-09-29 20:18:04 UTC.
[ci package]
2014-09-29 20:18:05 +00:00
Lasse Öörni
c85528de50 Allow to prevent modal window's auto dismissing with ESC by calling Window::SetAutoDismiss(false). Purposefully not an attribute to avoid locking up the editor. Closes #471. 2014-09-29 23:06:07 +03:00
Lasse Öörni
f18c5dd49b Fix CMake error in case PREDEFINED_MACROS string is empty. 2014-09-29 17:47:45 +03:00
Lasse Öörni
61fd5b6b65 Prefer the installed DirectX SDK path to avoid link error with VS2010 (64bit). 2014-09-29 17:10:56 +03:00
urho3d-travis-ci
a6d68e2787 Travis CI: API documentation update at 2014-09-29 11:45:03 UTC.
[ci package]
2014-09-29 11:45:03 +00:00
Lasse Öörni
cb0103d518 Require always registering remote events for reception. Implement a fixed blacklist of remote events that can not be registered (see Network.cpp). Removed obsolete E_WINDOWMESSAGE event definition. 2014-09-29 14:23:41 +03:00
Yao Wei Tjong 姚伟忠
e06762db76 On non-MSVC compiler, default to 64-bit when host compiler is.
The default can be overriden using URHO3D_64BIT build option as before.
2014-09-29 18:28:08 +08:00
urho3d-travis-ci
27604eba64 Travis CI: API documentation update at 2014-09-25 06:36:15 UTC.
[ci package]
2014-09-25 06:36:15 +00:00
Lasse Öörni
3e4882bfa5 Unify SetDeepEnabled() API between UI & Node. Removed IsDeepEnabled() function & "Is Deep Enabled" attribute as it may return different value than last SetDeepEnabled() and can not therefore serialize/deserialize accurately. Instead added IsEnabledSelf() which returns the enabled state before SetDeepEnabled(). Changed Node::SetEnabled(bool, bool) to SetEnabledRecursive(). Unlike SetDeepEnabled() it does not preserve node's self enabled state. Added AngelScript binding for SetDeepEnabled operations. 2014-09-25 00:10:56 +03:00
Lasse Öörni
30e39afdd6 Merge remote-tracking branch 'remotes/hdunderscore/UIElement_SetDeepEnabled' 2014-09-23 21:17:00 +03:00
Yao Wei Tjong 姚伟忠
70e7cb2d25 Give more verbose message when SOURCE_FILES variable is found not set.
Minor documentation update to stress that most of the build options supported by Urho3D project can also be pased to build script for configuring external project.
Add initial documentation on 'scaffolding' rake task.
2014-09-23 21:25:06 +08:00
urho3d-travis-ci
5be661b29a Travis CI: API documentation update at 2014-09-23 07:25:16 UTC.
[ci package]
2014-09-23 07:25:16 +00:00
Lasse Öörni
0f9e8c6762 Move DebugHud update to PostUpdate event so that values set during Update will be displayed on the same frame. Additionally, exposed DebugHud::Update() to script to allow calling it manually and forcing update of values, if necessary. Closes #466. 2014-09-23 10:14:26 +03:00
hdunderscore
f382ab895f Fixed a compile error with LUA. 2014-09-23 14:11:02 +10:00
hdunderscore
2966800ffc Added UIElement methods SetDeepEnabled / ResetDeepEnabled / IsDeepEnabled to allow setting enable on an element + all it's child elements / reset it to previous state.
Example usage: On scroll view, could disable all children while touch-scrolling to prevent accidental triggering of items.
2014-09-23 12:35:43 +10:00
Lasse Öörni
ca0a50c5c7 Pragma push/pop warning 4505 disable in APITemplates.h so that it doesn't leak to code including the header. 2014-09-22 13:56:20 +03:00
urho3d-travis-ci
91b8171b06 Travis CI: API documentation update at 2014-09-21 15:18:39 UTC.
[ci package]
2014-09-21 15:18:39 +00:00
Lasse Öörni
066589b67d Fixed warnings. Added script bindings for scroll deceleration parameters. 2014-09-21 18:06:51 +03:00
Lasse Öörni
380a94b58e Merge remote-tracking branch 'remotes/hdunderscore/scrollView_fix' 2014-09-21 16:39:02 +03:00
Lasse Öörni
e9f0baa398 Remote event registration is checked only when receiving. 2014-09-21 00:12:49 +03:00
Lasse Öörni
5f0ed3fcf8 Fix more header warnings that could leak to an Urho3D application using maximum MSVC warning level. 2014-09-21 00:00:05 +03:00
hdunderscore
9096279170 Changed it so touchScrollSpeedMax_ reflects instantly, giving more control / removing unexpected scroll on a fast->slow swipe. 2014-09-20 15:08:15 +10:00
hdunderscore
fab71cf12e Typo fix. 2014-09-20 01:28:52 +10:00
Lasse Öörni
bc1165e76f Merge remote-tracking branch 'remotes/hdunderscore/touchEmulation_fix' 2014-09-19 17:12:09 +03:00
hdunderscore
b3fbca1182 Fixed a bug that existed in touch mode, where scrolling with the scroll bar would 'conflict' against scrolling with touch scrolling, causing the scrollbar to 'slide' and 'jump'. 2014-09-19 21:09:10 +10:00
hdunderscore
12d25b7029 Polished a hiccup in the touch scrolling when doing a very small scroll. Also 'freed' the momentum so it feels more natural / unhindered. 2014-09-19 18:36:25 +10:00
hdunderscore
f12d40168a Added deceleration to ScrollView + fps independence + attributes for a better experience on mobile devices. Holding finger down keeps control / flicking and putting finger down stops it. 2014-09-19 14:36:18 +10:00
hdunderscore
d6e63013a2 SDL_FINGERMOTION was sometimes creating a new entry in touches_, after SDL_FINGERUP removed it. This made it difficult to work with touch emulation. 2014-09-19 11:54:40 +10:00
Lasse Öörni
0ee5f2fe1c Add private copy constructor / assignment where necessary to prevent warnings. 2014-09-19 01:56:05 +03:00
aster2013
21050c613a Add .PList sprite sheet support. 2014-09-17 22:52:06 +08:00
Lasse Öörni
89812eed03 Ensure the app preferences path is returned in Urho internal format: slashes instead of backslashes. 2014-09-17 16:26:23 +03:00
Lasse Öörni
aa6d76551f Allow C++ access to Engine's next frame timestep. 2014-09-17 14:10:09 +03:00
Yao Wei Tjong 姚伟忠
99253ea132 Fix Android installing/packaging instruction due to rename APK file.
[ci package]
2014-09-17 15:50:00 +08:00
urho3d-travis-ci
3a48762495 Travis CI: API documentation update at 2014-09-16 23:50:08 UTC.
[ci package]
2014-09-16 23:50:08 +00:00
Lasse Öörni
552a323b84 Allow non-const access to a Connection's identity also in C++. 2014-09-17 01:01:14 +03:00
urho3d-travis-ci
742364d7ca Travis CI: API documentation update at 2014-09-16 21:19:33 UTC.
[ci package]
2014-09-16 21:19:33 +00:00
Lasse Öörni
ec7c262be6 Expose Matrix4 * Matrix3x4 to scripting. Move the multiply as a Matrix4 member function so that it can be properly exposed to lua. 2014-09-16 23:52:44 +03:00
aster
19e0a104fa Add more comment for trimmed sprite. 2014-09-16 23:54:50 +08:00
urho3d-travis-ci
16fdf3b259 Travis CI: API documentation update at 2014-09-15 12:19:12 UTC.
[ci package]
2014-09-15 12:19:12 +00:00
Lasse Öörni
5ce05d4cb6 Fixed missing horizontal flip from the vertical cross cubemap layout. 2014-09-15 15:04:27 +03:00
Yao Wei Tjong 姚伟忠
de93f17310 Refine comment on the PATH_SUFFIX variable. 2014-09-15 13:33:22 +08:00
Yao Wei Tjong 姚伟忠
e48f134290 Code cleanup and fix iOS build.
[ci package]
2014-09-15 00:53:19 +08:00
Yao Wei Tjong 姚伟忠
08f54f96e6 Enhance CMake build script to support iOS deployment target.
For Travis CI - set the iOS deployment target to 7.0 explicitly but have to bump the OSX deployment target to 10.8 because Travis-CI only have 10.8 and 10.9 SDKs installed.
[ci package]
2014-09-14 23:48:42 +08:00
Yao Wei Tjong 姚伟忠
bebe9b6197 For Travis CI - set the OSX deployment target to 10.7 explicitly.
If the option is not set, Urho3D CMake build script by default configures it to match the currently running OS X version. On Travis-CI that is 10.9 which is too high for binary packaging. Closes #447.
2014-09-14 22:40:54 +08:00
Yao Wei Tjong 姚伟忠
a5e34ea512 Adjust RPATH to also search lib directory relative to the executables.
Closes #448.
2014-09-13 23:41:09 +08:00
Lasse Öörni
f1e25381a3 Support single image splitting for cube maps. Closes #445. 2014-09-13 15:33:55 +03:00
Lasse Öörni
36175d471f Make attribute accessor base class abstract to avoid unused parameter warnings when including Attribute.h. The base class is not useful in any case. 2014-09-12 13:30:32 +03:00
Yao Wei Tjong 姚伟忠
036fe0959c For Travis CI - code cleanup but add more memory diagnostics.
[ci package]

- Simplify the check on environment variable containing the commit-ish used in the 'git describe' command.
- Shuffle the rebase order in 'ci_rebase' rake task, move the OSX-CI rebase to the last as OSX Travis-CI build environment is extremely slow lately (has longer job queue).
- Improve 'android' rake task to only create named AVD for CI test when necessary and to turn off graphics acceleration explicitly when starting the emulator in CI environment.
- Add more memory diagnostics to help in investigation of process being killed by Travis CI upstream issue reported in #430.
2014-09-12 13:52:00 +08:00
urho3d-travis-ci
503b3e751c Travis CI: API documentation update at 2014-09-11 22:27:40 UTC.
[ci package]
2014-09-11 22:27:40 +00:00
Lasse Öörni
6f980453b6 Added success return value to Image::FlipVertical(). Fixed return value of Image::Resize() in AngelScript bindings. 2014-09-12 01:16:37 +03:00
Lasse Öörni
0330a94d42 Added support for flipping DXT1,3,5 compressed images vertically. 2014-09-12 00:53:23 +03:00
Lasse Öörni
e4fab0f5ab Enable link stage response files on Windows when building for Android. Otherwise building a shared Urho3D library could fail. 2014-09-11 21:46:34 +03:00
Yao Wei Tjong 姚伟忠
2e532412fe For Travis CI - minor refactor to use the same commit-ish as Travis-CI.
Simplify build artifact housekeeping logic as now all the mirror CI branches will produce the same package description as the master branch.
[ci package]
2014-09-11 23:17:53 +08:00
Lasse Öörni
d5fddaba86 Added compressed image support to Image::GetSubimage() and fixed bugs in the function. 2014-09-10 23:32:26 +03:00
Yao Wei Tjong 姚伟忠
702eb09b64 Another attempt to fix the project configuration issue. 2014-09-10 22:27:44 +08:00
Yao Wei Tjong 姚伟忠
de87766629 Fix Urho3D project configuration issue due to wrong CMake condition. 2014-09-10 22:04:26 +08:00
urho3d-travis-ci
958c84c615 Travis CI: API documentation update at 2014-09-10 05:16:08 UTC.
[ci package]
2014-09-10 05:16:08 +00:00
Yao Wei Tjong 姚伟忠
b4e857ab4f Set all the headings in Urho2D and scripting API pages to proper case. 2014-09-10 13:06:38 +08:00
Yao Wei Tjong
29bb1b92b5 For Travis CI - fix CI build on OSX build environment. 2014-09-10 00:54:34 +08:00
Yao Wei Tjong 姚伟忠
8677e547b0 Remove bom(b) from Readme.txt and update the project tagline. 2014-09-09 22:52:34 +08:00
Yao Wei Tjong 姚伟忠
19577d2fd0 For Travis CI - change to use git fetch 'unshallow' instead of 'depth'.
The hard-coded depth=2000 may not be a good estimate of how deep we should go in order to get the last annotated tag. Also move the operation to 'ci' rake task so it can be shared for all the Travis-CI build environments.
2014-09-09 22:44:39 +08:00
Yao Wei Tjong 姚伟忠
aa7068d332 For Travis CI - test run Android APK in emulator as part of CI build.
This should prevent the similar incident like SONAME breaking Android APK went unnotice for days.
Also:
- Revert back the workaround attempt for the RPI build as it did not work. The build error problem has been reported to Travis-CI upstream issue log.
- Add new rake task to automate Android APK testing (tested on Linux platform only).
2014-09-06 01:41:47 +08:00
Lasse Öörni
671d2c45ac Added IndexBuffer forward declaration to Terrain.h. 2014-09-05 19:07:19 +03:00
Lasse Öörni
89074cf668 Added image save as png to a Serializer stream. Due to stb_image_write limitations, the format is always png. Block-compressed (DXT etc.) image data is not supported. Closes #441. 2014-08-31 21:51:47 +03:00
Lasse Öörni
9252d36abd Clarify/fix header comments of the compression API. 2014-08-30 13:41:54 +03:00
Lasse Öörni
7bafe59f2f Fix crash when master AnimatedModel is destroyed. Do not destroy the bone hierarchy as long as AnimatedModels remain in the node. Allow a non-master AnimatedModel to be promoted to master if necessary. Closes #439. 2014-08-30 02:01:43 +03:00
urho3d-travis-ci
31157975b6 Travis CI: API documentation update at 2014-08-29 22:14:41 UTC.
[ci package]
2014-08-29 22:14:41 +00:00
Lasse Öörni
3a93866936 Add LZ4 compression functions to public API. Expose the VectorBuffer compression/decompression functions also to script. Closes #438. 2014-08-30 01:03:25 +03:00
Lasse Öörni
cc98bb9199 Discard Ray::HitDistance() result to a triangle behind the ray. Fixes #437. 2014-08-28 19:35:24 +03:00
urho3d-travis-ci
13595673ce Travis CI: API documentation update at 2014-08-28 11:16:07 UTC.
[ci package]
2014-08-28 11:16:07 +00:00
Lasse Öörni
3f5280aa3a Add one second delay to file change notifications by default. Possibly helps with #408. Removed FileWatcher from Lua bindings as it's not a class you can readily use from script and it is not exposed to AngelScript either. 2014-08-28 14:04:09 +03:00
Yao Wei Tjong 姚伟忠
2a33e6eea3 Do not use SONAME for Android SHARED libs as it does not support it. 2014-08-28 16:41:33 +08:00
aster2013
058428dc9c Revert test code.[ci skip] 2014-08-28 13:38:14 +08:00
urho3d-travis-ci
717d492b9a Travis CI: API documentation update at 2014-08-28 04:29:46 UTC.
[ci package]
2014-08-28 04:29:46 +00:00
aster2013
c82759de85 Add STAGGERED tile map support. 2014-08-28 12:18:35 +08:00
Yao Wei Tjong 姚伟忠
634658c835 Bump the default NDK API level to 12 matching Urho3D Android manifest.
[ci package]
2014-08-28 08:57:04 +08:00
Yao Wei Tjong 姚伟忠
0fffb18972 For Travis CI - Fix downloading from wrong Android NDK arch. 2014-08-28 08:17:45 +08:00
Yao Wei Tjong
83b58dacdc Update android.toolchain.cmake to include NDK r10. 2014-08-28 02:03:18 +08:00
urho3d-travis-ci
c75f56da41 Travis CI: API documentation update at 2014-08-27 16:22:36 UTC.
[ci package]
2014-08-27 16:22:36 +00:00
Yao Wei Tjong 姚伟忠
83bb4be238 Fix Angelscript binding for TileMapObject2D. 2014-08-28 00:06:25 +08:00
aster
649edf054d Rename TileObject2D to TileMapObject2D, rename some functions. 2014-08-27 22:21:29 +08:00
aster2013
18a8a4e640 Add draw debug geometry for tile map, fix tile map object position bug. 2014-08-27 13:11:46 +08:00
aster2013
f0e874c69f Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-25 10:27:13 +08:00
urho3d-travis-ci
26bdba2039 Travis CI: API documentation update at 2014-08-24 09:24:49 UTC.
[ci package]
2014-08-24 09:24:49 +00:00
Lasse Öörni
0472b4d410 Allow sending client observer rotation in addition to position. Note that rotation is not used by the NetworkPriority component, but can be used for custom logic. Do not send the observer pos/rot until actually set by the client. Closes #428. 2014-08-24 02:42:27 +03:00
urho3d-travis-ci
3fcb89e176 Travis CI: API documentation update at 2014-08-23 13:06:49 UTC.
[ci package]
2014-08-23 13:06:49 +00:00
aster
46fcd67794 Add name and type support for tile map objects. 2014-08-23 20:57:53 +08:00
aster
134d26814f Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-22 21:08:30 +08:00
aster2013
578310a05e Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-22 18:16:39 +08:00
aster2013
937ed5f732 Merge branch 'more-options' 2014-08-22 17:47:06 +08:00
urho3d-travis-ci
e50ec823a5 Travis CI: API documentation update at 2014-08-22 05:03:50 UTC.
[ci package]
2014-08-22 05:03:50 +00:00
aster2013
a2ead6f404 Add index to position convert function in TileMap2D 2014-08-22 12:52:41 +08:00
aster
753d5bfc91 Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-21 23:32:09 +08:00
urho3d-travis-ci
10efcd8c6a Travis CI: API documentation update at 2014-08-21 13:13:48 UTC.
[ci package]
2014-08-21 13:13:48 +00:00
aster2013
a04edb1108 Refactor tile map, add TileMapInfo2D struct. 2014-08-21 21:03:03 +08:00
aster2013
6caa0ade65 When resource's name is empty, set file name as resource name. 2014-08-21 13:54:04 +08:00
aster2013
25132bd4a0 ADD URHO3D_PHYSICS AND URHO3D_NAVIGATION OPTIONS. 2014-08-21 12:41:24 +08:00
urho3d-travis-ci
bd39c6d6af Travis CI: API documentation update at 2014-08-20 17:31:39 UTC.
[ci package]
2014-08-20 17:31:39 +00:00
Lasse Öörni
9246a5cfdb Dump a class list to AngelScript & Lua API dox pages. Also add a table of contents to both. Closes #426. 2014-08-20 20:16:42 +03:00
Lasse Öörni
a06c328305 Store Connection's address & port on construction, so that we do not log a zero address later if the socket has already been destroyed. 2014-08-19 11:14:13 +03:00
aster2013
d17f5c3f57 Fix typo.[ci skip] 2014-08-19 15:03:28 +08:00
aster
bb0ffb942a Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-14 20:26:37 +08:00
Lasse Öörni
1c6d04c6b5 Send UIMOUSECLICK event on click to emptiness even if there is a modal element. Fixes #423. 2014-08-14 14:08:06 +03:00
Lasse Öörni
ba4cb70e42 Use PODVector for GeometryDesc to avoid MSVC warning. 2014-08-14 11:09:07 +03:00
aster
0bea9e68cc Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-08-13 23:01:07 +08:00
aster
db59a66cbf Fix typo.[ci skip] 2014-08-13 23:00:42 +08:00
urho3d-travis-ci
81096e625a Travis CI: API documentation update at 2014-08-13 14:42:01 UTC.
[ci package]
2014-08-13 14:42:01 +00:00
aster
8c99b8d866 Merge branch 'tile-map' 2014-08-13 22:16:19 +08:00
aster
85bcdaecf4 Add screen to world convert functions, PhysicsWorld2D use these function to pick rigid body. 2014-08-13 22:07:46 +08:00
urho3d-travis-ci
f215bf2b12 Travis CI: API documentation update at 2014-08-12 19:41:33 UTC.
[ci package]
2014-08-12 19:41:33 +00:00
Lasse Öörni
89f6b31a47 Enhance the ConvexCast function to take a start pos,rot & end pos,rot instead of just a ray, so that the swept shape can be rotated. Ignore collision to self during convex cast, if the supplied shape belongs to a RigidBody. 2014-08-12 22:26:53 +03:00
aster
391f83aa3b Fix typo. 2014-08-12 22:06:50 +08:00
urho3d-travis-ci
379bd474fe Travis CI: API documentation update at 2014-08-11 20:38:42 UTC.
[ci package]
2014-08-11 20:38:42 +00:00
Lasse Öörni
a717793e3e Added ConvexCast function to PhysicsWorld, which performs a sweep test with user-specified collision shape. Closes #420. 2014-08-11 23:20:01 +03:00
urho3d-travis-ci
eea6082d9b Travis CI: API documentation update at 2014-08-11 18:54:27 UTC.
[ci package]
2014-08-11 18:54:27 +00:00
Lasse Öörni
5071b4324a Tabs to spaces. 2014-08-11 21:10:13 +03:00
Lasse Öörni
8357e50afb Merge remote-tracking branch 'remotes/ninjastone/master' 2014-08-11 21:00:49 +03:00
ninjastone
390016fd76 Added script bindings 2014-08-11 23:41:31 +09:00
aster
20450c8a8f Add missing class declartion. 2014-08-11 21:36:07 +08:00
aster
d13338f793 Add isometric map support. 2014-08-11 21:13:13 +08:00
aster
a1a48e02e9 Add tile set TSX support. 2014-08-11 20:27:56 +08:00
aster
56c677c759 Add tile map AngelScript binding and sample. 2014-08-11 18:15:46 +08:00
aster2013
a3c819f32a Add tile map Lua binding and sample. 2014-08-11 13:26:39 +08:00
aster2013
b81d08ba21 Move tile object define to TileMapDefs2D. Add half pixel offset in Direct3D mode. 2014-08-11 13:07:10 +08:00
aster
6b2566702c Remove some functions.[ci skip] 2014-08-10 22:29:32 +08:00
aster
2615d583b5 Change Properties2D derived from RefCounted. 2014-08-10 22:12:15 +08:00
ninjastone
b92aa88a73 Added function to list json object member value names 2014-08-10 02:57:17 +09:00
ninjastone
6347724b66 Fix index out of range 2014-08-10 02:42:01 +09:00
aster
7110a05c58 refactor tile map code. 2014-08-09 23:41:37 +08:00
Yao Wei Tjong 姚伟忠
eb8157c3eb Differentiate between SOVERSION and git revision number.
Closes #419. Test [ci package]
2014-08-09 01:12:36 +08:00
aster
4d840600b3 Refactor tile map. 2014-08-08 23:24:04 +08:00
Yao Wei Tjong 姚伟忠
becb97cdb6 Only give warning for 'bad' MinGW compiler when no SSE option given.
So that user does not receive the same warning subsequently after taking action to set the URHO3D_SSE option explicitly or after the correct setting has been set by the script.
2014-08-08 14:54:02 +08:00
aster
b87c4f24fe Move some functions from header file to source file. For all of objects create node for it. 2014-08-07 22:23:38 +08:00
aster
573a0abe3d Add visible property to layer. 2014-08-07 21:50:15 +08:00
Lasse Öörni
6d5c73a15f Note that client cameras should be created into a local node in networked applications. 2014-08-07 10:45:50 +03:00
aster2013
0ab5fb8d16 Add tile properties. 2014-08-07 12:46:09 +08:00
aster2013
564343c3a6 Add properties. 2014-08-07 12:34:27 +08:00
aster
c4b68bd429 Add object group. 2014-08-06 23:07:10 +08:00
aster
189ed31742 Add image layer support. 2014-08-06 22:10:53 +08:00
aster2013
1262869ac6 Change tile size to float, fix bug, change Desert.png. 2014-08-06 12:37:53 +08:00
aster
ef32eee6ee Add tile map support in Urho2D, current not all of features are supported in Urho2D, but I think we can add it later. Fore more information about tile map, please refer http://www.mapeditor.org/. 2014-08-05 22:55:33 +08:00
aster
4c77c3ad21 Add bitmap font face texture to resource cache manually. 2014-08-04 22:14:58 +08:00
aster
9e716da779 Dump used resource file name at sample exiting. 2014-08-04 22:02:59 +08:00
aster2013
09baed3460 Add text effect code to text shader for Text3D. 2014-08-04 13:18:25 +08:00
Yao Wei Tjong 姚伟忠
7a1fde31a1 Make it explicit which configuration settings are meant for MinGW. 2014-08-03 22:56:07 +08:00
Lasse Öörni
f8899e3675 Removed the lower version check and improved the SSE explanation message. 2014-08-03 17:37:36 +03:00
Lasse Öörni
94dd6acc66 Attempt to detect "bad" MinGW versions that fail to compile SSE instructions from the GCC version. The range is an initial guess; can be tightened later. 2014-08-03 17:18:25 +03:00
Lasse Öörni
02d6c28788 Do not use the SSE2 flag on MinGW (which was used to circumvent an earlier GCC version bug), as it leads to crashes inside Bullet on GCC 4.9.1. 2014-08-03 15:56:00 +03:00
aster
37c7fd333a Merge branch 'sdf-font' 2014-08-03 14:29:25 +08:00
aster
d72dcde96d Remove useSDF parameter in Text and Text3D classes, now signed distance field font is a bitmap font file with .sdf extension. 2014-08-03 13:58:15 +08:00
Lasse Öörni
46be516f56 Improved CustomGeometry API for vertex updates, and possibility to make the vertex buffer dynamic. Closes #415. 2014-08-02 12:57:56 +03:00
aster2013
68c879d1fd Add Use SDF in Text class. 2014-08-01 12:10:46 +08:00
Lasse Öörni
e68c051a35 Added rest of geometry types. Closes #413. 2014-07-31 22:04:16 +03:00
aster
e9b1ba7cde Fix Text3D::SetFont AS binding bug. 2014-07-31 23:05:33 +08:00
aster
436908e031 Add Use SDF option to Text3D to enable signed distance field text. 2014-07-31 22:36:23 +08:00
Lasse Öörni
f120aa4be0 Return a writable documents directory on iOS. Contributed by att. 2014-07-29 02:24:49 +03:00
Lasse Öörni
11c63a938d Remove reference in Swap.h to the tree-based containers, which no longer exist. 2014-07-27 23:56:48 +03:00
Lasse Öörni
562a2e2d77 Update to AngelScript 2.29.1. Closes #412. 2014-07-26 12:27:32 +03:00
Lasse Öörni
af46a915c2 Protect AngelScript module creation/deletion with a mutex as AngelScript itself doesn't do that. 2014-07-25 16:56:05 +03:00
Lasse Öörni
cbe440db52 Fixed typo in comment. Added profiling blocks for finding the scene resources to preload. 2014-07-25 02:27:08 +03:00
Lasse Öörni
4f1906d598 Fix missing include file. 2014-07-24 23:48:03 +03:00
Lasse Öörni
d93fdb5aa4 Fix texture reload when device is initially lost. 2014-07-24 23:44:38 +03:00
Lasse Öörni
ad737e0d6e Documentation for background resource loading. Expanded Scene::LoadAsync() to either background load resources only, load scene + resources synchronously, or background load resources first, then load the scene. Closes #406. 2014-07-24 22:45:31 +03:00
Lasse Öörni
33b15ebc31 Clean up ResourceCache template functions. 2014-07-24 17:24:24 +03:00
Lasse Öörni
be66059009 Refactor resource background loading into a separate class. 2014-07-24 17:23:00 +03:00
Lasse Öörni
80fa911066 Fixed recording of background loaded resource's dependencies so that unnecessary waits do not occur when finishing the resources. 2014-07-24 02:20:06 +03:00
Lasse Öörni
8c0cc2f916 Disregard background load request with empty name. 2014-07-24 01:24:45 +03:00
Lasse Öörni
e210ef20b2 Fix deadlock when waiting for a resource that is background loading but is now needed immediately. 2014-07-24 01:21:51 +03:00
Lasse Öörni
3c7126de38 Asynchronous loading for AnimationSet2D. 2014-07-23 21:55:32 +03:00
Lasse Öörni
3703658f66 Asynchronous loading for Sprite2D & SpriteSheet2D. 2014-07-23 20:06:05 +03:00
Lasse Öörni
5450b1d111 Asynchronous loading for ParticleEffect2D.
Correctly store material dependency when async loading ParticleEffect.
2014-07-23 17:49:14 +03:00
Lasse Öörni
677ab20986 Asynchronous loading for ParticleEffect. 2014-07-23 17:28:20 +03:00
Lasse Öörni
21053067bd Asynchronous loading of ScriptFile. Due to possibly accessing arbitrary engine functionality in script initializers the actual script compilation cannot be threaded even if AngelScript itself is compiled as thread-safe. Furthermore AngelScript allows only 1 simultaneous compile, and the resource loading system is not prepared to fail and retry in that case. 2014-07-23 17:19:44 +03:00
Lasse Öörni
d986ec7d25 If loading a Model synchronously, read directly into the buffers like before to avoid extra allocation & copy. 2014-07-23 16:27:29 +03:00
Lasse Öörni
2b2b500892 Asynchronous loading for Model. 2014-07-23 16:16:06 +03:00
Lasse Öörni
8ab908b1c9 Configurable max work time in ms per frame for finishing background loaded resources, and for non-threaded work in WorkQueue. Fix iteration bug if finishing several background loaded resources in one go. 2014-07-23 15:11:45 +03:00
Lasse Öörni
cdd2dae4fb Precalculate texture's mip levels during async loading, if applicable. Use a timer to avoid spending too much time per frame on finishing async loaded resources. 2014-07-23 14:29:39 +03:00
Lasse Öörni
9bee27f0bd Merge branch 'master' into threaded-resource-load 2014-07-23 13:39:08 +03:00
Lasse Öörni
d5cfcd493b Further fixes for threaded drawable updates: ensure drawables per workitem > 0, do not update bounding boxes threaded as they may not be correct in case of hierarchical composition. 2014-07-23 13:29:59 +03:00
Lasse Öörni
3181986f82 Log message for finalizing a background loaded resource. 2014-07-23 13:22:47 +03:00
Lasse Öörni
f194765e78 Background loading of Materials.
Store dependencies of 3D & cube textures so that they will be properly live reloaded if the individual images change.
2014-07-23 02:04:28 +03:00
Lasse Öörni
df67ccdac7 Merge branch 'master' into threaded-resource-load 2014-07-22 22:33:43 +03:00
Lasse Öörni
4a9ab417a8 As a possible fix to #409, remove the optimization to not mark a node dirty again if it is already dirty. As a consequence the TransformChanged() script function will work more logically. This change would cause reduced performance with a large amount of animating models; to counteract, introduce a "silent update" mechanism for node transforms. 2014-07-22 22:20:14 +03:00
Lasse Öörni
d60ca10c8f Restore Drawable base attributes to ParticleEmitter. Closes #407. 2014-07-22 16:50:24 +03:00
aster
4f0893cf37 Create all timeline nodes. 2014-07-22 18:08:57 +08:00
Lasse Öörni
8463393377 Initial resource background loading API and implementation. Background loading-capable implementation for textures (load image in background thread, upload image to GPU in main thread), other resources todo.
Allow dynamically created profiler block names by copying the name C string.
Texture Load() function with image pointer renamed to SetData() to not confuse with the threaded/nonthreaded resource loading functions.
2014-07-22 01:30:02 +03:00
Lasse Öörni
840143eb00 Protect some ResourceCache structures with a mutex so that eg. GetFile() or GetTempResource() can be called from worker threads. Verify that GetResource() is only called from the main thread. 2014-07-20 23:16:23 +03:00
Lasse Öörni
461a61319f Allow logging from outside the main thread. These log messages are collected and handled at the end of frame. 2014-07-20 22:08:41 +03:00
Lasse Öörni
346da1e1f9 Detect main thread when sending events or using profiler blocks; make these no-ops when called from outside the main thread. 2014-07-20 21:32:55 +03:00
Lasse Öörni
f3024b9f4b Added GetCurrentThreadID() static function to Thread. Store the thread which created the Context. 2014-07-20 21:30:39 +03:00
Lasse Öörni
d508eb51cb Use SDL_GetPrefPath also for the crashdump location. 2014-07-20 19:07:23 +03:00
Lasse Öörni
1f521713e7 Do not store Image resources used during cube/3D texture loading permanently to cache. 2014-07-20 18:37:34 +03:00
Yao Wei Tjong 姚伟忠
c26038fe05 Attempt to fix the MinGW failed build due to linker runs out of mem.
Add -fno-keep-inline-dllexport compiler option when building using MinGW in order to reduce the object size and the link time (and thus hopefully reduce the linker memory consumption as well).
2014-07-20 19:39:05 +08:00
aster
7b79fb972c Fix bug in RigidBody2D. 2014-07-20 18:01:29 +08:00
Yao Wei Tjong 姚伟忠
f7329aa83f Replace with a more proper derived CMake variable for easier maint.
Add short comment on the intent of setting up RPATH.
2014-07-20 13:43:15 +08:00
Yao Wei Tjong 姚伟忠
91c489bdfb Setup RPATH for Mac OS X. Adjust soversion to keep Apple linker happy.
Set CMake policy CMP0042 to NEW for early CMake 3.0.0 adopters to prevent warning message when generating Urho3D project file.
2014-07-19 21:23:11 +08:00
Yao Wei Tjong 姚伟忠
88919f22f7 Setup soversion for Urho3D library and setup RPATH settings for Linux. 2014-07-19 17:46:41 +08:00
Yao Wei Tjong 姚伟忠
63a1531076 Simplify the conditional branch to find the SDL_android_main.c. 2014-07-19 16:12:08 +08:00
Yao Wei Tjong 姚伟忠
9f3247e71b Only search the project source directory when URHO3D_HOME is defined. 2014-07-17 15:29:59 +08:00
Yao Wei Tjong 姚伟忠
08f08e460b Improve the reliablity to find SDL_android_main.c when using SDK.
Replace usage of URHO3D_INSTALL_PREFIX environment variable with the more standard CMake's own CMAKE_PREFIX_PATH environment variable to define prefix path of non-standard SDK installation location.
2014-07-17 15:15:15 +08:00
Yao Wei Tjong 姚伟忠
cf1a0156e9 Briefly comment the CMake policy settings and update the documentation. 2014-07-17 12:31:02 +08:00
Lasse Öörni
f3e18e6412 Make sure animation start time adjustment happens with tick conversion, tabs to spaces, some code reordering + added comments. 2014-07-16 19:13:04 +03:00
Lasse Öörni
027b2a29ad Merge remote-tracking branch 'remotes/ninjastone/master' 2014-07-16 18:43:12 +03:00
ninjastone
fc60d8de21 Fixed AssetImporter to adjust time of first key frame to 0. 2014-07-17 00:06:20 +09:00
Lasse Öörni
fedd77922c Added zone texture unit also to the textureUnitNames array in Material.cpp. 2014-07-16 16:38:27 +03:00
Lasse Öörni
e82b3d53a1 Added support for zones defining a texture (either cube or 3D), that will be available in pixel shaders when rendering objects inside the zone. 2014-07-16 16:30:08 +03:00
Yao Wei Tjong 姚伟忠
3c77988d37 Set CMake policy CMP0026 to OLD for early CMake 3.0.0 adopters.
This change prevents warning message spams while generating Urho3D project file.
2014-07-16 13:15:11 +08:00
Lasse Öörni
921b1ef792 Fixed the button name in DynamicGeometry touch controls. 2014-07-15 22:32:46 +03:00
Lasse Öörni
b281e555d7 Added dynamic geometry C++ sample. Minor comment & warning fixes in other samples. 2014-07-15 22:03:53 +03:00
Lasse Öörni
b80fbc8817 Added Clone() function to Model, which deep-copies all data including vertex/index buffers, so that the clone can be individually animated. Closes #402. 2014-07-15 21:48:15 +03:00
aster
56e29f5b24 Fix Transform2D argument.[ci skip] 2014-07-11 13:24:53 +08:00
aster
1ac9680c52 Remove redundant default parameter.[ci skip] 2014-07-10 20:37:33 +08:00
aster
a11d455511 Do not recreate sprite node in AnimatedSprite2D, Do not use dynamic index buffer bug in DrawableProxy2D. 2014-07-10 20:33:12 +08:00
Lasse Öörni
98c09ac614 Insert GLSL version define before other defines if found from the shader code. Closes #398. 2014-07-02 21:37:30 +03:00
Aster@中国上海
dfd82f7f6d Fix typo[ci skip]. 2014-07-02 21:49:14 +08:00
Aster@中国上海
dec9ecfde2 LightAnimation sample now use ObjectAnimation in C++. 2014-07-02 21:39:37 +08:00
Aster@中国上海
cd42bc6f3f Make object animation can set child and component's attribute animation. 2014-07-02 21:38:20 +08:00
Lasse Öörni
3d649a9f19 Fix calculating fullscreen resolution error metric. Closes #399. 2014-07-02 11:12:45 +03:00
aster
f9e555c19d Merge branch 'remove-short-string-hash'
Conflicts:
	Source/Engine/Script/CoreAPI.cpp
2014-06-30 10:59:49 +08:00
Aster@中国上海
413aa66b10 Add more member functions in 2D particle classes. 2014-06-29 20:47:16 +08:00
Lasse Öörni
b69682217d Fixed & improved comments regarding integer colors in Color & Image classes. 2014-06-28 12:34:31 +03:00
Lasse Öörni
10046d4b26 Added integer API for setting Image pixels. 2014-06-28 09:57:13 +03:00
Lasse Öörni
92ad14b2fe Fix memory allocation for the resources directory on iOS. 2014-06-25 22:47:55 +03:00
Lasse Öörni
d9d39592dd Update to AngelScript 2.29.0. 2014-06-25 22:20:59 +03:00
Lasse Öörni
257d3bdc31 Make sure RigidBody2D mass center is initialized. Fixes #395. 2014-06-25 14:34:38 +03:00
Lasse Öörni
f1c4eb8568 Fix ShortStringHash pointer type in script API registration. 2014-06-22 00:21:42 +03:00
Aster@中国上海
ad59ffa437 Change ShortStringHash to StringHash. 2014-06-21 22:21:20 +08:00
Aster@中国上海
84fe0946c8 Remove ShortStringHash, Now all of ShortStringHash are replaced by StringHash. 2014-06-21 21:45:05 +08:00
Aster@中国上海
2868d8e0b1 Add SetSprite in ParticleEffect2D. 2014-06-21 20:46:56 +08:00
Lasse Öörni
016296a860 Remove unused variable. Fix Terrain Lua binding. 2014-06-21 02:08:09 +03:00
Lasse Öörni
c85499b695 Allow relatively fast partial updates to a terrain by modifying the heightmap image and calling ApplyHeightMap(). Added WorldToHeightMap() function to Terrain for converting world coordinates to heightmap pixel positions. 2014-06-21 01:51:32 +03:00
Lasse Öörni
a36edf5d1e Fix TerrainPatch raycast normal to world space. 2014-06-19 00:22:50 +03:00
Lasse Öörni
c87f520328 Fix terrain raycast not returning correct position & normal. 2014-06-19 00:15:37 +03:00
Lasse Öörni
914cadf3fd Merge pull request #390 from ninjastone/master
Meshless model was sometimes not importable
2014-06-18 21:18:06 +03:00
Lasse Öörni
3bbc756aeb Merge branch 'particle-emitter-refactor' 2014-06-18 21:11:37 +03:00
ninjastone
42dc493f4a Skeleton only model was not importable 2014-06-18 23:50:25 +09:00
aster
7ad727a25b Add save function for ParticleEffect2D. 2014-06-18 19:02:19 +08:00
Lasse Öörni
c3fc39132b Made ParticleEmitter::ApplyEffect() public, as it's necessary if changing certain properties of the effect programmatically. Also mark network update if the emitter's effect is changed to none. 2014-06-17 23:28:32 +03:00
Lasse Öörni
6a044a324b Fix missing viewMask parameter in Lua Raycast & RaycastSingle. 2014-06-17 16:17:06 +03:00
ninjastone
66c66fa444 TransformSpace was ignored in Node::LookAt 2014-06-17 21:33:40 +09:00
aster
6cf4fded98 Add set relative, scaled, sorted. 2014-06-17 12:31:53 +08:00
Lasse Öörni
ce97cba5c1 Use FromAxes() in Quaternion::FromLookRotation() to fix problem with negative coordinates. Fixes #388. 2014-06-17 00:09:17 +03:00
Lasse Öörni
6231acffdc ParticleEffect live reload support. 2014-06-16 23:22:09 +03:00
Lasse Öörni
542fa82595 Update documentation. Remove unneeded friend class definition. 2014-06-16 23:02:45 +03:00
Lasse Öörni
1a633c4a18 Restore file serialization attributes to ParticleEmitter so that its state is preserved exactly. Hide the period timers from the editor. 2014-06-16 22:52:35 +03:00
Aster@中国上海
7616457c21 Fix some functions name, add AS binding. 2014-06-16 18:38:55 +08:00
Aster@中国上海
6bcc980119 Refactor ParticleEmitter class and add Lua API. 2014-06-16 13:28:54 +08:00
Aster@中国上海
cd5eef22ae Move data to ParticleEffect. 2014-06-16 12:41:03 +08:00
Aster@中国上海
80ce8a2a7c Add ParticleEffect class. 2014-06-16 12:15:27 +08:00
Aster@中国上海
08cabb3582 fix typo. 2014-06-14 22:58:34 +08:00
Aster@中国上海
ed94403b83 Code refactoring. 2014-06-13 13:32:33 +08:00
Lasse Öörni
f3b537d11b In Application class, use SDL_iPhoneSetAnimationCallback on iOS instead of running a blocking main loop. Closes #381. 2014-06-12 01:05:29 +03:00
Yao Wei Tjong 姚伟忠
11c41c64bc Reinstate the Assimp fix for Raspberry Pi build.
Remove unsupported GCC attribute to suppress the warnings when building Assimp library (commit: 50556078d6).
2014-06-11 14:34:00 +08:00
Lasse Öörni
94462fc5a0 Ensure a texture is not left in "no GPU object" state if reloading from a file fails. Closes #379. 2014-06-10 13:57:12 +03:00
Yao Wei Tjong 姚伟忠
a6a0a6d802 Fix native debug configuration build of Assimp using MinGW compiler.
By removing the CMAKE_CROSSCOMPILING condition check, the workaround is now applied for both native and cross-compiling cases.
2014-06-10 12:23:08 +08:00
Lasse Öörni
1229b6cf1d Instead of reverting to windowed if exact resolution match not found, use closest matching fullscreen resolution in Graphics::SetMode(). 2014-06-10 00:02:11 +03:00
Lasse Öörni
f1ec4c8a18 Ensure that manually created textures with an assigned name, but no actual file to back their contents, will recreate the GPU object after device loss and set data lost state. 2014-06-09 23:45:45 +03:00
Lasse Öörni
066781bf85 Fix ResourceCache::ReloadResource() header comment. 2014-06-09 23:26:22 +03:00
Lasse Öörni
001d57171b Add saving of assimp embedded textures to AssetImporter. Note that assimp itself does not yet support textures from inside FBX files. Closes #375. 2014-06-09 20:46:20 +03:00
Yao Wei Tjong 姚伟忠
9ad3d26a4b Tag the changes and add null check for pollInputDevices() also. 2014-06-09 13:20:23 +08:00
StevenZhang
a35d7bdb53 fix android crash on some devices (e.g. Tmall Magic Box). 2014-06-08 18:15:49 +08:00
Aster@中国上海
fae8e81d54 Add 2D suffix to 2D transform functions, now please use SetPosition2D etc. 2014-06-07 21:29:49 +08:00
Lasse Öörni
dd657eab8d Update assimp to newest git revision. 2014-06-07 15:57:34 +03:00
Aster@中国上海
9ec20d0987 Remove SetTemporary in child nodes.[ci skip] 2014-06-06 20:23:51 +08:00
Aster@中国上海
0cd556cc04 Make root node temporary.[ci skip] 2014-06-06 15:50:17 +08:00
Aster@中国上海
318e388777 Add LoopMode2D to control animation loop mode, make spriter animation sample in force loop mode. 2014-06-06 13:07:15 +08:00
aster2013
a03078d0ac Bind Node's 2D properties to AngelScript. 2014-06-05 22:17:45 +08:00
Aster@中国上海
04c2072400 Add more Transform functions for Urho2D and to lua. 2014-06-05 20:39:52 +08:00
Aster@中国上海
8508ad7a8d Add ToluaIsPODVector<Vector2>. 2014-06-05 16:33:06 +08:00
Aster@中国上海
1e05ee4ed0 Add root node in AnimatedSprite2D. 2014-06-05 14:07:40 +08:00
Aster@中国上海
b25b44abe7 Fix warning. 2014-06-04 12:33:47 +08:00
aster2013
08e270df0b Recalculate hotspot for trimmed sprite in AnimationSet2D. 2014-06-03 23:27:16 +08:00
aster2013
b3f2a1786f Remove custom sprite sheet format. 2014-06-03 22:37:09 +08:00
Aster@中国上海
81d2c17a4d Update animation when set flip (for editor paused mode).[ci skip] 2014-06-03 20:15:57 +08:00
Aster@中国上海
171609dad9 Add flip and color to AnimatedSprite2D 2014-06-03 18:50:25 +08:00
Aster@中国上海
fc79775024 Format code.[ci skip] 2014-06-03 13:40:05 +08:00
Aster@中国上海
15bc670ab4 Add spritersheet support in AnimationSet2D. 2014-06-03 12:10:00 +08:00
Aster@中国上海
4d6392c182 Use one transform. 2014-06-03 11:58:30 +08:00
aster2013
fe3af57199 Merge branch 'spriter-animation' 2014-06-02 21:53:59 +08:00
aster2013
6bf9b2ad7e Fix spriter animation bone scaling, because Spriter's world transform calculation is different with Urho3D, so add Transform2D class to fix it. 2014-06-02 21:48:04 +08:00
aster2013
dc5288c4ac Move parent from Mainline to Timeline. 2014-06-02 17:04:04 +08:00
aster2013
370c15ad93 Fixed build hierarchy. current these is a bug for scaling. 2014-06-01 23:04:44 +08:00
aster2013
2bee9a334f Add bone animation support. 2014-06-01 21:20:01 +08:00
aster2013
4c47170f8e Rename XAnimationSet2D to AnimationSet2D, Rename XAnimatedSprite2D to AnimatedSprite2D. 2014-06-01 15:43:32 +08:00
aster2013
e5a93022c4 Rename XAnimation2D to Animation2D 2014-06-01 15:28:18 +08:00
aster2013
53351462ce Remove old AnimatedSprite2D and Animation2D.h. 2014-06-01 15:21:04 +08:00
aster2013
a99145a80c Update 24_Urho2DSprite sample with spriter animation. 2014-06-01 15:11:56 +08:00
aster2013
a5a0512cf8 Add hot spot in Sprite. 2014-06-01 15:05:38 +08:00
aster2013
4807ed7d37 Add Spriter animation Lua binding and sample. 2014-06-01 14:30:46 +08:00
aster2013
22d6ede8e6 Add spriter animation AS binding and sample. 2014-06-01 14:02:27 +08:00
aster2013
002292d01f Make XAnimatedSprite2D derived from Drawable, export attributes. 2014-06-01 13:27:00 +08:00
Lasse Öörni
e079878e40 Remove the gather4 path similarly from HLSL FXAA3. Fix FXAA2 tag name in the examples. Removed dead link from documentation. 2014-06-01 02:33:19 +03:00
Lasse Öörni
f2e6e86a1d Rename EdgeFilter shader to FXAA2. Rename FXAA shader to FXAA3. Clean up FXAA3 GLSL code and port to HLSL. 2014-05-31 23:24:31 +03:00
aster2013
07f5c97854 Fixed text format.[ci skip] 2014-06-01 00:01:37 +08:00
aster2013
6cea8b84f5 Add spriter animation sample in C++. 2014-05-31 23:58:48 +08:00
aster2013
587fca67f9 Add XAnimatedSprite2D class.[ci skip] 2014-05-31 23:49:30 +08:00
aster2013
928556918d Add animation set class. [ci skip] 2014-05-31 23:07:41 +08:00
aster2013
0f46863498 Add XAnimation2D class. name is temporary, I will name it to Animation2D laster. [ci skip] 2014-05-31 22:47:55 +08:00
Amadeus
2014f5ee1a Fix incorrect use of PODVector in ValueAnimation, maybe related to #361 2014-05-31 13:47:42 +02:00
Lasse Öörni
5790875b23 Removed unnecessary construction of a SharedPtr object. 2014-05-30 20:04:06 +03:00
Lasse Öörni
766a08060d Clean up ParticleEmitter API. Removed resetPeriod option from SetEmitting(), instead the period is always reset if the state changes. Added separate RemoveAllParticles(), ResetEmissionTimer() & Reset() functions. 2014-05-30 16:20:30 +03:00
Aster@中国上海
5ae71ba270 Fix user type attribute setting bug. Thanks Mike. 2014-05-30 11:24:01 +08:00
Lasse Öörni
fa5ce00ff5 Added SetCustomTriangleMesh() function to CollisionShape, which uses a CustomGeometry to define the collision shape. Exposed missing SetCustomConvexHull() function to Lua. 2014-05-28 02:37:14 +03:00
Lasse Öörni
2056be0bde Fix typos in comments. 2014-05-27 19:40:46 +03:00
Lasse Öörni
1c3302757c Clean up shader compiler error string on shader live reload to allow recovery. Closes #363. 2014-05-27 00:21:16 +03:00
Lasse Öörni
f3b6a718f7 Merge remote-tracking branch 'remotes/mike3d/master' 2014-05-26 23:27:09 +03:00
Lasse Öörni
a7f9747376 Fix compressed sound resourceref not being serialized. 2014-05-26 23:18:08 +03:00
Mike3D
c04bceb490 Update CMakeLists.txt 2014-05-24 07:22:43 +02:00
Yao Wei Tjong 姚伟忠
96295b4923 Ensure the application logs are created in a writeable location.
- Add a new function to get application preferences directory and expose it to scripting.
- Change Editor to save/load configuration file from the application preferences directory.
- Standardized the location of log files generated by Urho3DPlayer and samples. Ensure it is created in a user writeable location to prevent application locked up during closing.
2014-05-24 12:16:18 +08:00
Mike3D
bba58e1287 New Urho2D sample demonstrating constraints.
Thanks to Aster for his help.
2014-05-23 21:17:45 +02:00
Lasse Öörni
0a4f813389 Verify the number of contact points in manifold in case collision event processing changes the physics world. Closes #358. 2014-05-21 13:44:21 +03:00
Yao Wei Tjong 姚伟忠
2de4129fec Prevent losing focus in modal window due to a click on emptiness. 2014-05-17 23:37:58 +08:00
Lasse Öörni
24923bbc9c Expose CustomGeometry component to Lua. Closes #353. 2014-05-16 22:02:32 +03:00
Lasse Öörni
dd5f1dbcc3 Set Sprite2D's texture name before loading so that the texture is able to load a parameters file, if it exsists. 2014-05-16 15:20:50 +03:00
Lasse Öörni
21eb3d8bc9 Add Android accelerometer value clamping. Closes #350. 2014-05-16 11:48:59 +03:00
Yao Wei Tjong 姚伟忠
c1b506ee54 Clean up build scripts to avoid code duplication. 2014-05-16 13:12:52 +08:00
Yao Wei Tjong 姚伟忠
d92eaf2f5d Tag the change in SDL source code. 2014-05-16 12:44:15 +08:00
Lasse Öörni
7eef4edcb7 Fix swapped accelerometer axes in 180 degree device rotation. Thanks to Mike3D. Closes #348. 2014-05-15 16:34:23 +03:00
Yao Wei Tjong 姚伟忠
b1fbab4953 Be explicit in setting the file permissions when installing.
Closes #352.
2014-05-15 21:14:09 +08:00
Lasse Öörni
8b5d884f3c Allow triggering mouse button presses from a screen joystick while using touch emulation. 2014-05-14 21:46:12 +03:00
Lasse Öörni
223f98451a Change OpenGL pixel store settings to happen immediately after context creation. Otherwise crash could result when restoring texture data. Fixes #344. 2014-05-14 21:16:29 +03:00
Lasse Öörni
bf6a054ac4 Use ordinary DRAWABLE_GEOMETRY flag on 2D drawables so that they can be raycasted against. Use a DRAWABLE_PROXYGEOMETRY flag on DrawableProxy2D so that it won't show up in normal raycasts or octree queries. Fixes #345. 2014-05-14 14:49:15 +03:00
Lasse Öörni
6b7f1d842c Added functions to remove one recorded touch gesture, or all touch gestures. 2014-05-13 22:55:37 +03:00
Lasse Öörni
0d183d6301 Added FromString() function to XMLFile. 2014-05-13 21:50:26 +03:00
Lasse Öörni
f232856ac1 Added manual VectorBuffer overloads for AngelScript functions that take a File handle for loading/saving. Cleaned up some script bindings code and fixed AngelScript binding for Image::LoadColorLUT(). 2014-05-13 21:29:52 +03:00
Lasse Öörni
84d06d2e61 Merged the face camera boolean and axes parameters used by BillboardSet & Text3D into a FaceCameraMode enum. Implement none, rotate XYZ, rotate Y, lookat XYZ & lookat Y modes. More can be added as necessary. 2014-05-12 22:43:55 +03:00
Lasse Öörni
76a7a60918 Expose touchedElement of TouchState to Lua, and to AngelScript as an ordinary handle to simplify code. Closes #342. 2014-05-12 14:09:06 +03:00
Yao Wei Tjong 姚伟忠
3ea3f8102b Minor refactor to a cleaner fix for #341. Also fix DebugHud now.
Revert back changes to UI class as it should not need to know Console's innards.
2014-05-12 12:44:54 +08:00
Yao Wei Tjong 姚伟忠
56d5cf06b6 Fix UI::Clear() erroneously also removed Console's UI elements.
Closes #341.
2014-05-11 22:02:00 +08:00
Yao Wei Tjong 姚伟忠
df936563f2 Fix invisible console still gaining the input focus bug. 2014-05-11 21:42:11 +08:00
Aster@中国上海
49a507dbd6 Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-05-07 19:41:32 +08:00
Aster@中国上海
29095ad804 Add GetSubimage in Image class. 2014-05-07 16:56:38 +08:00
Lasse Öörni
c836250f3e Safety check in case eg. a script object instantiation would fail and the cloned component would have less attributes. 2014-05-05 20:24:30 +03:00
Lasse Öörni
5a0a64aed8 Query the clone component's attribute vector just once. 2014-05-05 20:22:27 +03:00
Lasse Öörni
bccc6d0c55 For consistency with the Node class, refer to the ScriptInstance's contained object with "scriptObject" property instead of "object" in AngelScript scripting. 2014-05-05 20:15:38 +03:00
Lasse Öörni
3be53d8047 Fix a script object's unique attributes not being correctly set when CloneComponent() is called. 2014-05-05 20:11:26 +03:00
Lasse Öörni
1689d9223b Call ApplyAttributes() on the cloned component to make sure attribute side-effects happen. 2014-05-05 13:55:12 +03:00
Yao Wei Tjong 姚伟忠
1b49f15ca5 Remove code duplication and avoid unnecessary AttributeInfo search. 2014-05-05 07:53:34 +08:00
Lasse Öörni
5076f966e1 Expose CloneComponent() function to AngelScript & Lua and make it return the created component. 2014-05-05 01:53:11 +03:00
thebluefish
0d717bae26 Added ability to clone components
- Added Node::CloneComponent to clone components existing in other
nodes.
- Added log warning to Node::AddComponent if the component already has a
parent node.
2014-05-05 01:52:53 +03:00
Lasse Öörni
e7a599100e Fixed Android being unable to calculate file checksum. 2014-05-04 17:35:19 +03:00
Aster@中国上海
ebd705d674 For Component, Resource and UIElement always return concrete object type to Lua. 2014-05-04 15:37:08 +08:00
aster2013
63af574730 Fix bug in CollisionPolygon2D and ToluaToPODVector<Vector2>. 2014-05-03 20:29:36 +08:00
Lasse Öörni
0c1e99161a Warn if rtsizedivisor mode, that doesn't exist anymore, is used in renderpath definition. Fix sizemultiplier mode getting the correct XML attribute. 2014-05-03 00:29:52 +03:00
Lasse Öörni
c0aa80ea3b Check also for MRT rendering without deferred rendering for whether needs a substitute rendertarget with a viewport smaller than the screen. 2014-05-03 00:05:41 +03:00
Lasse Öörni
981b5bcac4 Use viewport sized intermediate rendertargets so that pixels outside the viewport never leak into post-processing. Added viewport multiplier mode to renderpath definition. Closes #265. 2014-05-02 22:47:13 +03:00
aster2013
95651d1612 Bind more functions in XMLElement to Lua. 2014-05-02 20:07:10 +08:00
Yao Wei Tjong 姚伟忠
24e6b0d3cf Clean up CharacterDemo sample to use the same TOUCH_SENSITIVITY value. 2014-05-01 11:39:17 +08:00
aster2013
293cd434fb Remove Node's Lua scalar transform functions, like SetPositionXYZ. 2014-04-30 22:52:11 +08:00
Lasse Öörni
4ac7b60758 Restructure the D3D9 GPU flush: after presenting, first wait for previous frame's query, then issue new query. To prevent a loop of device loss and window flicker, do not attempt to render on D3D9 when the window is minimized in fullscreen mode. 2014-04-30 17:25:06 +03:00
aster2013
49d9856dd5 Add transform functions for Urho2D. 2014-04-30 22:17:48 +08:00
Lasse Öörni
5442bb22c8 Comment out Cursor::ApplyOSCursorShape() on mobile platforms to avoid error log print. 2014-04-30 00:09:47 +03:00
Lasse Öörni
40028ccc71 Touch scroll in ScrollView / ListView. Deceleration is instant for now. Closes #332. 2014-04-29 23:39:38 +03:00
Lasse Öörni
9c92bae70b Expose int math functions with different names in Lua to avoid overload resolution bugs. Closes #335. 2014-04-29 21:00:14 +03:00
Yao Wei Tjong 姚伟忠
6ad8c14346 Add engine param for enabling touch emulation during initialization.
Adjust sample base class to add screen joystick on desktop platform when touch emulation is enabled.
2014-04-29 10:36:43 +08:00
Yao Wei Tjong 姚伟忠
b86b325864 Remove extra semi colon. [ci skip] 2014-04-29 09:49:47 +08:00
szamq
5559c4fada Added Catmull-Rom spline type which interpolates through the control nodes 2014-04-28 22:03:04 +02:00
Lasse Öörni
42c5c3981d Remove redundant check from Input code. 2014-04-28 22:58:39 +03:00
Lasse Öörni
cbf91aaa8a Add touch emulation stationary fingers for multi-gestures by pressing down other mouse buttons than the left. 2014-04-28 22:51:55 +03:00
Lasse Öörni
179faa674e Reset screen joystick buttons/axes on initialization. Do not send mouse events from a screen joystick under touch emulation, as those would be re-interpreted as further touch events. Minor Input code cleanup. 2014-04-28 20:57:13 +03:00
Lasse Öörni
a317c48beb Initial touch emulation. 2014-04-28 18:48:49 +03:00
Aster@中国上海
e0cdb778c2 Merge branch 'font_simiplify' 2014-04-28 16:29:34 +08:00
Lasse Öörni
d097a918ea Merge pull request #331 from thebluefish/master
Can now #include multiple files referencing that #include LogicComponent
2014-04-28 11:19:22 +03:00
thebluefish
dfd119b41f Fixed an obvious oversight 2014-04-27 21:42:33 -07:00
Lasse Öörni
5463254bbf Change references to Component::OnSetAttribute() to Serializable::OnSetAttribute() as the Component overload no longer exists. 2014-04-27 14:10:49 +03:00
Yao Wei Tjong 姚伟忠
19bfdddce0 Refactor to make MarkNetworkUpdate() virtual method of Serializable.
Serializable class calls MarkNetworkUpdate() when setting network attribute without setter accessor.
Closes #327.
2014-04-27 12:53:41 +08:00
Lasse Öörni
cb46d72783 Fix LogicComponent physics post-step to call the correct virtual function. 2014-04-26 22:46:13 +03:00
Lasse Öörni
ff0f09e224 Convert also ParticleEmitter Face Camera attribute to non-accessor mode. 2014-04-26 19:30:29 +03:00
Lasse Öörni
775c2906f8 Refactor attribute / shader parameter animation update into the ValueAnimationInfo base class to avoid code duplication. 2014-04-26 19:14:44 +03:00
Lasse Öörni
7a8183952f BillboardSet "Face Camera" attribute doesn't need accessor mode. 2014-04-26 19:14:44 +03:00
Yao Wei Tjong 姚伟忠
ff764d33e1 Fix cross-compiling between i686 and x86_64 when building SHARED lib.
Credits goes to alexrass.
2014-04-26 16:29:58 +08:00
Lasse Öörni
00e9dc0a79 Selectable axes for BillboardSet & Text3D camera facing. Default all axes (follow camera rotation fully). Fix ParticleEmitter faceCamera property not being exposed to AngelScript. Closes #325. 2014-04-26 00:27:56 +03:00
Lasse Öörni
1ace932f1e Removed unnecessary cases of MarkAnimationDirty() in AnimatedModel to allow manually positioned bones persisting correctly on scene load, when there are no animation states. 2014-04-25 22:17:25 +03:00
Aster@中国上海
387c89b857 Simplify font class. 2014-04-25 14:13:21 +08:00
Aster@中国上海
78f902bcce Remove friend class declaration.[ci skip] 2014-04-24 13:39:25 +08:00
Aster@中国上海
fa3e3fad8c Merge font-refactor. 2014-04-24 13:36:24 +08:00
aster
5ce6276b97 Remove unnecessary check for physics world (2D). 2014-04-24 13:29:45 +08:00
aster
ebc9e8cc43 Fix typo. 2014-04-24 13:20:18 +08:00
Yao Wei Tjong 姚伟忠
4a30cbe72f Automatically create PhysicsWorld or PhysicsWorld2D component. 2014-04-24 01:43:04 +08:00
Yao Wei Tjong 姚伟忠
153906b8c7 Add mouse grabbed flag to Input subsystem.
Use it in Editor camera rotation/orbiting operation to prevent Editor's UI element from reacting to mouse in the midst of operation.
2014-04-24 00:54:31 +08:00
Yao Wei Tjong 姚伟忠
4cf5ffd6db Code cleanup on screen joystick to make Input.h easier to include. 2014-04-23 18:30:21 +08:00
Lasse Öörni
d9572c82a5 Fixed missing include. 2014-04-23 13:19:17 +03:00
aster
a6ce24f82f Remove unused class declaration. 2014-04-23 17:43:29 +08:00
aster
1d8c3b78ba Add FontFaceBitmap and FontFaceFreeType files. 2014-04-23 17:29:47 +08:00
aster
b0b88a5202 Move save bitmap font to FontFaceBitmap. 2014-04-23 17:20:35 +08:00
Lasse Öörni
3309f2af6c Explain terrain LOD index data generation mechanism. Closes #324. 2014-04-23 12:18:00 +03:00
aster
eb60639163 Move free type font face to FontFaceFreeType. 2014-04-23 16:57:56 +08:00
aster
5fab105452 Move load font face code to font face classes. 2014-04-23 16:45:24 +08:00
aster
0ffbd4d575 Move font face class out of font files. 2014-04-23 16:18:04 +08:00
aster
777b4b9114 Replace string with string hash. 2014-04-22 15:01:28 +08:00
Yao Wei Tjong 姚伟忠
dfe4caf3d6 Add logic to suppress zoom when multi-touching screen joystick buttons. 2014-04-22 12:41:02 +08:00
aster
7c724bf3e2 Try load asset in current directory. 2014-04-22 12:05:37 +08:00
aster
06ccf8efbb rename variant name, avoid memory leak when attribute not found. 2014-04-22 10:03:20 +08:00
Yao Wei Tjong 姚伟忠
125000454c Refactor samples to use patched screen joystick layout. Closes #321.
Enhance screen joystick to also support mouse button binding. It can be used in combination with key binding, e.g. to bind SHIFT+LMB.
2014-04-22 01:12:46 +08:00
aster
de6d39d74b Add Load and save for material shader animation. 2014-04-21 20:35:57 +08:00
aster
91bbd7a454 Remove AttributeAnimationInstance and MaterialShaderParameterAnimationInstance files. 2014-04-21 20:16:55 +08:00
aster
11a9b1f1dc Bind material parameter animation to Lua and AngelScript, Add MaterialAnimation sample. 2014-04-21 18:59:07 +08:00
aster
d0b1036001 Add material shader animation. 2014-04-21 18:59:06 +08:00
aster
113cb5584a Rename AttributeAnimation to ValueAnimation make animaiton more general. 2014-04-21 18:09:35 +08:00
aster
3afd10aaa6 Move CalculateScaledTime to AttributeAnimationInfo, extract GetEventFrames method. 2014-04-21 17:11:25 +08:00
Yao Wei Tjong 姚伟忠
265f9ceefc Minor clean up on Input class and NinjaSnowWar demo. 2014-04-21 12:48:20 +08:00
Lasse Öörni
b8185f973c Support a "select on click end" mode in ListView. Support defining a separate drag'n'drop content for elements dropped into a LineEdit. Enable drag'n'drop to node ID attribute fields. Closes #261. 2014-04-20 23:02:04 +03:00
Lasse Öörni
56e0aad21d Minor rendering code cleanup. Added Plane::Project(). 2014-04-20 15:37:20 +03:00
Lasse Öörni
210b295f81 Removed duplicate code from shadow map setup. 2014-04-20 13:36:41 +03:00
aster2013
0e2e2a0b7f Fix error in JSONValue AngelScript API. 2014-04-20 15:27:15 +08:00
aster2013
53d641bf6e Add get child name for JSON object type. 2014-04-20 15:03:24 +08:00
aster2013
f95275aaa9 Bing JSON to Lua and AngelScript. 2014-04-20 14:07:29 +08:00
aster2013
6d3ad57bc8 Rename enum and function names in JSONValue. 2014-04-20 14:02:12 +08:00
Lasse Öörni
76d5ffdcf8 On OS X + Intel, use dummy color textures for shadow maps to work around a driver bug. Fixes #225. 2014-04-20 01:58:43 +03:00
aster2013
460da659ee Add JSON support in Urho3D. 2014-04-19 22:21:05 +08:00
Lasse Öörni
9b833e371a Always hide the status bar independent of window flags. 2014-04-19 17:01:10 +03:00
Lasse Öörni
955a8bb34e Joystick refactoring after merging the joystick pull request from thebluefish.
- Fixed "ghost" buttons due to setting button down state both by joystick button and controller button mapping.
- Fixed missing name in joystick state.
- Allow getting joystick state both by joystick ID (Input::GetJoystick()) and a zero-based index (Input::GetJoystickByIndex()).
- Fixed ambiguity in Input class parameter names whether functions take a joystick ID, or an index. Most take joystick ID by now.
- Controller events removed. Controller joysticks will receive ordinary joystick events, but with controller axis & button mappings.
- Joystick identifying parameter in joystick events changed to JoystickID to denote that it's an ID and not a zero-based index.
- Code convention edits to Input code.
2014-04-18 23:33:25 +03:00
Lasse Öörni
5209e6e6a6 Merge remote-tracking branch 'remotes/thebluefish/master' 2014-04-18 15:00:59 +03:00
Yao Wei Tjong 姚伟忠
dbeb244fb5 Minor clean up on sample code. Move Console & HUD to settings joystick. 2014-04-18 18:06:41 +08:00
thebluefish
51c4060135 Bugfix
- Updated Angelscript bindings
- Updated NinjaSnowWar
2014-04-18 00:52:59 -07:00
thebluefish
907c6a15f5 Bugfixes 2014-04-18 00:03:55 -07:00
thebluefish
1ba75f5222 Resolved virtual joystick support
- Added function to set virtual joystick visibility.
- Updated samples.iml to reflect changess.
2014-04-17 23:50:06 -07:00
thebluefish
33240a260a Fixed lua bindings
- Fixed lua script bindings
- Reverted previous changes to GetJoystickName
- Tested default lua scripts with Urho3DPlayer to ensure scripts run
properly
2014-04-17 22:54:33 -07:00
Yao Wei Tjong 姚伟忠
1397ad593b Warn when autoload folder does not exist. 2014-04-18 11:42:31 +08:00
thebluefish
2c4fd8192e Fixed joystick support
- Added support for events SDL_JOYDEVICEADDED and SDL_JOYDEVICEREMOVED.
- Added Urho3D events E_JOYSTICKCONNECTEDand E_E_JOYSTICKDISCONNECTED.
- Added SDL_JoystickID as a JoystickState variable.
- All joysticks are open by default. All joystick events will receive
the InstanceID of the joystick for application-level control.
- SDL_JoystickID is now used instead of the Joystick index. This way,
the order that joysticks connect does not matter. If a joystick or
controller gets disconnected, and then later reconnects during the same
game session, it will retain the same SDL_JoystickID.

Note: Virtual (on-screen) joysticks should still work, but has not been
tested.
2014-04-17 17:40:21 -07:00
Lasse Öörni
1f91a44818 Removed the deprecated GetClassName() AngelScript Variant bindings. Fixed the Ragdolls example to not use them. 2014-04-18 01:32:30 +03:00
Lasse Öörni
0c219cfb35 Document the AutoloadPaths engine startup parameter. Copy also the Extra directory in the Android CopyData batch file. 2014-04-18 00:52:43 +03:00
Lasse Öörni
7eb8210eac Merge remote-tracking branch 'remotes/friesencr/packagefile-getentrynames' 2014-04-18 00:35:03 +03:00
Lasse Öörni
848ecce091 Merge remote-tracking branch 'remotes/friesencr/auto-load-folders' 2014-04-18 00:34:36 +03:00
Lasse Öörni
5b4da41b10 Code cleanup, renamed command line option. Updated AssetImporter documentation. 2014-04-17 15:07:35 +03:00
hualin
b946be1ff5 add an option for exporting the scene meshes even if they are identical with the others 2014-04-17 15:07:23 +03:00
aster
f3ca194c24 Fixed bug of set target call order. 2014-04-17 19:48:21 +08:00
aster
19b008d44b Fix bug in ConstrainMouse2D. 2014-04-17 19:34:03 +08:00
aster
728ef72062 Add degree math function, fix scale time when speed < 0. 2014-04-17 15:49:00 +08:00
aster
55e576bc11 Only receive contact event when physics stepping. 2014-04-17 15:35:48 +08:00
aster
cb0211e586 Delay send contact event. 2014-04-17 12:58:42 +08:00
Chris Friesen
873cef9840 Folders that autoload subfolders/paks on load 2014-04-16 22:27:31 -05:00
Chris Friesen
0171669690 Adds package entry filenames to PackageFile 2014-04-16 19:50:45 -05:00
Yao Wei Tjong 姚伟忠
ec25e56046 Refactor Samples to support yaw and pitch by touch on mobile platform. 2014-04-17 01:56:59 +08:00
Yao Wei Tjong 姚伟忠
ac81ae1c7f Fix static key binding map population for screen joystick. 2014-04-17 01:32:50 +08:00
Lasse Öörni
7289f4be7a NinjaSnowWar: when the console is visible, do not react to any controls. When OS mouse cursor changes from visible to hidden, center it to avoid erratic mouse move on the next frame. 2014-04-16 16:29:45 +03:00
Yao Wei Tjong 姚伟忠
4a449869eb Add a close button for Console to ensure it can be closed on iOS.
Fix Console being overlapped by other UI elements in Editor.
2014-04-16 20:29:00 +08:00
Yao Wei Tjong 姚伟忠
a38433b0aa Clean up hats' key binding code for screen joystick. 2014-04-16 20:04:52 +08:00
aster
2a4c4c9eca SpriteSheet add load texture in current directory. 2014-04-16 17:08:47 +08:00
Yao Wei Tjong 姚伟忠
79cdbabb55 Add abilility to use key mapping also for hats on screen joystick.
This should make it possible to bind the hats to something like "UP DOWN LEFT RIGHT".
This commit breaks earlier commits slightly. The default hats binding is now "WSAD" instead of "WASD".
2014-04-16 16:49:11 +08:00
Lasse Öörni
00f08ad608 Break Deserializer::ReadString() on EOF to allow reading a whole text file at once without getting stuck. Closes #312. 2014-04-16 11:15:08 +03:00
Lasse Öörni
67e46f1d71 Improve Input documentation. Reorder InputEvents.h to match the order in documentation. 2014-04-16 10:45:12 +03:00
aster
e0737e6c46 Replace Char event with TextInput event for CJK IME support. 2014-04-16 13:47:14 +08:00
aster
fff89efdd8 Make 2D camera auto aspect ratio. 2014-04-16 10:59:01 +08:00
Lasse Öörni
9906e7ed25 Gesture recording/load/save support and gesture events. SDL fixes to gesture events. Closes #304. 2014-04-15 23:48:04 +03:00
Yao Wei Tjong 姚伟忠
c78f34d5ca Improve the hats response on screen joystick (in joystick event mode).
Refactor Samples base class to take advantage of the screen joystick.
Add second screen joystick layout for changing app settings.
Closes #264.
2014-04-15 22:59:10 +08:00
aster
4f8545f061 When external window exist, set alpha size to 8, fix issue #310. [ci skip] 2014-04-15 21:08:19 +08:00
Lasse Öörni
5c11a771f3 Properly skip unsupported kerning subtables. 2014-04-15 11:38:14 +03:00
Lasse Öörni
d41293899d Instead of fatal font loading error, skip loading the kerning table if wrong version. Skip over the searchRange, entrySelector & rangeShift fields in kerning data. Sanity check glyph indices in kerning data. 2014-04-14 22:49:57 +03:00
aster2013
c5ffddc2bc Fix out of memory crash when use large font file. 2014-04-14 22:18:51 +08:00
Lasse Öörni
afa6f717e7 Merge remote-tracking branch 'remotes/thebluefish/master' 2014-04-14 10:58:16 +03:00
aster
489119f1cb Change lineHeight in savexml.[ci skip[ 2014-04-14 13:03:53 +08:00
aster
4c6b1e10df Change lineheight to lineHeight, because bitmap font is generated by external tool, it use lineHeight.[ci skip] 2014-04-14 12:18:13 +08:00
aster
3f92c273a1 Rename arguments names.[ci skip] 2014-04-14 10:47:34 +08:00
thebluefish
a7ea528e42 Update Log.h 2014-04-13 14:44:06 -07:00
thebluefish
98fd937bb6 Update Log.h 2014-04-13 14:33:05 -07:00
Yao Wei Tjong 姚伟忠
1518c332c1 Add user customizable screen joystick for mobile platforms. 2014-04-13 23:34:20 +08:00
Lasse Öörni
b4ba4a3573 Fix AngelScript bindings on MSVC (asMETHODPR macro needs to be used in the template base class registration functions to allow static_cast to work). Make the class names links on the attribute list page. 2014-04-13 14:30:52 +03:00
Yao Wei Tjong 姚伟忠
57d6c7827b Minor refactoring on attribute animation classes. 2014-04-13 12:38:00 +08:00
Lasse Öörni
9a7a9110a2 Added generated attribute documentation. Move AngelScript API dumping to a separate .cpp file. Hack fix for Doxygen parsing bug which would cause the Events page not to be recognized. Closes #303. 2014-04-13 01:45:27 +03:00
Yao Wei Tjong 姚伟忠
e06c503f64 Fix GCC Makefile build on Mac OS X platform for good. 2014-04-12 23:09:03 +08:00
Yao Wei Tjong 姚伟忠
3897718a40 Handle corner case: soft-cursor is invisible + OS-cursor is visible. 2014-04-12 21:50:54 +08:00
aster2013
2c672b154b Remove animation only attribute support. 2014-04-12 21:47:08 +08:00
aster2013
6daabe1b74 Add GetRigidBody function mouse position in PhysicsWorld2D. 2014-04-12 21:39:32 +08:00
Yao Wei Tjong 姚伟忠
0425358f5c Fix GCC Makefile build on Mac OS X platform. 2014-04-12 19:31:19 +08:00
aster2013
ce41b87aae Fixed spline binding.[ci skip] 2014-04-12 14:56:04 +08:00
aster2013
f9107d4fed Add scene attribute animation update event. 2014-04-12 13:55:03 +08:00
aster2013
f8bce6a56e Move wrap mode out of ObjectAnimation.h.[ci skip] 2014-04-12 13:26:41 +08:00
aster2013
afaa9c7702 Demonstrate usage of spline interpolated animation, and set animation to node's world position(animation only attribute). 2014-04-12 13:12:29 +08:00
aster2013
21a14f12e5 Add closed spline end point's tangent calculate.[ci skip] 2014-04-12 12:17:34 +08:00
aster2013
97a1ab4267 Rename InterpolationMethod to InterpMethod, avoid conflict with Spline class, Add animated only attribute support, like Node's world position attribute. 2014-04-12 11:17:04 +08:00
aster2013
1c2d24b55d Allow load and save interpolation method and spline tension to file. 2014-04-12 00:21:08 +08:00
aster2013
eb7cce7b4d Add new line at end of file.[ci skip] 2014-04-12 00:02:40 +08:00
aster2013
2d9a7b2915 Add cardinal spline interpolation for AttributeAnimation. 2014-04-11 23:54:40 +08:00
aster2013
802af0c21b Refactor AttributeAnimation, make IntVector2 and IntRect interpolatable. 2014-04-11 22:52:19 +08:00
Yao Wei Tjong 姚伟忠
cea3743ea7 Filesystem class also captures stderr when executing console command.
Turn on SDL filesystem support for Linux platform.
2014-04-11 14:56:36 +08:00
Aster Jian
b7917af4fd Revert "Remove wrap mode default value."
This reverts commit 3f832eb5d0.
2014-04-11 13:38:54 +08:00
Aster Jian
3f832eb5d0 Remove wrap mode default value. 2014-04-11 12:54:49 +08:00
Yao Wei Tjong 姚伟忠
5ce5be8d66 Enhance FileSystem class to also able to execute console command. 2014-04-11 12:44:20 +08:00
Aster Jian
2c18a1ca65 Add AttributeAnimationInfo class, add more comment for animation class, use XMLElement::SetVariant/GetVariant save attribute animation frame value. 2014-04-11 09:43:55 +08:00
Yao Wei Tjong 姚伟忠
8939179787 Refactor to use small case for xml tag and attribute names.
It is for consistency sake with existing code base. Exclude tag and attribute names from external XML declaration.
This commit may break user-created Urho2D XML resources.
2014-04-10 21:33:56 +08:00
Yao Wei Tjong 姚伟忠
41df6dc2e0 Expose Color constants in AngelScript. Use them in sample app. 2014-04-10 17:42:45 +08:00
Aster Jian
0fef66f780 Minor fix animation bug.[ci skip] 2014-04-10 15:21:23 +08:00
Aster Jian
caf6f1b35a Move wrap mode out of AttributeAnimation. 2014-04-10 14:43:39 +08:00
Aster Jian
0b9ff78dcc Change cycle mode to wrap mode in AttributeAnimation, add ONCE mode make can play animation then auto remove it. remove PINGPONG mode (now PINGPONG mode is just for sprite animation). 2014-04-10 13:34:21 +08:00
Aster Jian
9a51eef182 Fix GetFloat bug. 2014-04-10 13:10:15 +08:00
Aster Jian
448874b245 Add animation speed parameter. 2014-04-10 12:35:07 +08:00
Aster Jian
270a49d09f Refix issue #256.[ci skip] 2014-04-10 12:35:07 +08:00
Yao Wei Tjong 姚伟忠
6c7db54e4b Console remembers the last used interpreter if there are more than one.
Editor persists the last used command interpreter in configuration file.
2014-04-10 12:29:55 +08:00
aster2013
d2f9db942a Add LightAnimation in AngelScript.[ci skip] 2014-04-09 23:17:45 +08:00
aster2013
00b57c1231 Add LightAnimation sample, revert StaticScene. 2014-04-09 23:01:39 +08:00
aster2013
afddbaef76 Fix Node.pkg merge error. 2014-04-09 22:33:16 +08:00
aster2013
a2197916a7 Update LuaIntegration sample. 2014-04-09 22:24:52 +08:00
aster2013
3cb656a0f8 Replace script file name with LuaFile, make it can pick in editor. 2014-04-09 22:24:50 +08:00
Aster Jian
ce7f6a6a41 Fix stack index error.[ci skip] 2014-04-09 22:24:49 +08:00
Aster Jian
1b200184d2 Fix attribute bug. 2014-04-09 22:24:47 +08:00
Aster Jian
76efdc19bf Finish Anglescript animation API. 2014-04-09 22:24:45 +08:00
Aster Jian
ded9dd547b Add Angelscript API. 2014-04-09 22:24:44 +08:00
Aster Jian
9a9b79fd8e Add animation Lua API. 2014-04-09 22:24:42 +08:00
Aster Jian
1bc6f0820e Add template variant. 2014-04-09 22:24:40 +08:00
Aster Jian
80bd29a18d Add Lua object attribute set and get function. 2014-04-09 22:24:38 +08:00
Aster Jian
b224e7cfcc Minor fixed. 2014-04-09 22:24:37 +08:00
Aster Jian
5805f7027c Add get Lua attribute name in C++, not finish.[ci skip] 2014-04-09 22:24:35 +08:00
Aster Jian
21ddb94b52 Add resource load and save functions for animations. 2014-04-09 22:24:33 +08:00
Aster Jian
fc2ce2f3de Save enum type with string. 2014-04-09 22:24:31 +08:00
Aster Jian
3dfe01a3f0 Save event frame to xml, Remove binary load and save function in animation classes. 2014-04-09 22:24:30 +08:00
Aster Jian
48c3868a79 Remove child object animation, add load and save function. 2014-04-09 22:24:28 +08:00
Aster Jian
0de5de0678 Remove ignore network update, add animated network attribute check. 2014-04-09 22:24:26 +08:00
aster2013
dcbd1a3d7c Ignore network update when update animations. 2014-04-09 22:24:24 +08:00
aster2013
4a3ed4117a Refactor animation system, add AttributeAnimationInstance. 2014-04-09 22:24:22 +08:00
aster2013
64bba43ac7 Add missing header file. 2014-04-09 22:24:21 +08:00
aster2013
d453ef6daf Add object animation, add load and save functions. 2014-04-09 22:24:19 +08:00
aster2013
496fb3e74e Refactor AttributeAnimation. 2014-04-09 22:24:17 +08:00
aster2013
da7936dd68 Add attribute animation sample in StaticScene. 2014-04-09 22:24:15 +08:00
aster2013
2eff0e1144 Add attribute animation. 2014-04-09 22:24:14 +08:00
aster2013
5fd7363201 Add Animatable class. 2014-04-09 22:24:12 +08:00
Yao Wei Tjong 姚伟忠
756c2943cb Add logic to perform a copy to clipboard using Ctrl+C combo. 2014-04-09 21:01:07 +08:00
Lasse Öörni
914dc798d4 Fix missing update of octree in headless mode, so that graphics raycasts work properly and animations are updated. 2014-04-09 15:51:58 +03:00
Yao Wei Tjong 姚伟忠
6298a15bf5 Cleanup to remove unused header file after the Console enhancement.
[ci skip]
2014-04-09 20:40:42 +08:00
Yao Wei Tjong 姚伟忠
3748375f67 Enhance Console class to support multiple command line interpreterers. 2014-04-09 17:13:04 +08:00
Yao Wei Tjong 姚伟忠
3e942ec7fc Fix ScriptSubscribeToEvent to deal with multi handler of same event.
This fix is needed to make 26_ConsoleInput.lua sample works as expected.
2014-04-09 16:54:18 +08:00
Yao Wei Tjong 姚伟忠
6da0cb3995 Add mechanism to copy the selected rows to clipboard. Use in console.
Closes #289.
2014-04-08 13:59:00 +08:00
Yao Wei Tjong 姚伟忠
f3f6e66f90 Assign proper log level when sending E_LOGMESSAGE event. 2014-04-08 12:35:10 +08:00
Yao Wei Tjong 姚伟忠
b504e9f2c6 Fix competing command line interpreters issue in Editor. 2014-04-08 12:17:44 +08:00
Yao Wei Tjong 姚伟忠
20b4929b4e Fix console row container's height calculation. 2014-04-08 11:59:54 +08:00
Lasse Öörni
1239a6f771 Update console's row container height when setting its style, so that the rows are also shown without calling SetNumRows() explictly. 2014-04-07 23:11:28 +03:00
Lasse Öörni
4e34e9f52a Async SystemCommand & SystemRun. Closes #290. 2014-04-07 23:10:30 +03:00
Lasse Öörni
e01bacb657 Fix compile & crash in Console::HandlePostUpdate() if there was no rows to be printed. 2014-04-07 21:07:03 +03:00
Yao Wei Tjong 姚伟忠
ddf5aa772c Fixed typo in height calculation for accomodating displayed rows. 2014-04-07 23:55:03 +08:00
Yao Wei Tjong 姚伟忠
5730660a80 Use ListView as row container for the Console class. Closes #298. 2014-04-07 23:30:45 +08:00
Yao Wei Tjong 姚伟忠
a897ef1651 Add null check to catch faulty MessageBox window layout. 2014-04-07 14:46:42 +08:00
Yao Wei Tjong 姚伟忠
214a527da3 Fix WriteRaw() to log print with the correct log level on Android. 2014-04-07 14:35:18 +08:00
Lasse Öörni
9066f6873d Merge remote-tracking branch 'remotes/origin/transformspace' 2014-04-05 16:59:24 +03:00
Yao Wei Tjong 姚伟忠
a5e6ef597a Fix wrong compiler definition prefix. 2014-04-05 10:38:45 +08:00
Lasse Öörni
c8fe21f06a Revert "Fixes to sceneless renderpath on OpenGL." to fix crash on minimize on Android. 2014-04-05 01:07:28 +03:00
Lasse Öörni
39d733ae11 Added note that Node::Translate() in local mode disregards scale to keep movement speed independent. Removed test variable from 04_StaticScene.as. 2014-04-04 22:57:46 +03:00
Yao Wei Tjong 姚伟忠
901e471c53 Hide build options specific to Urho3D project from external project. 2014-04-05 02:11:00 +08:00
Yao Wei Tjong 姚伟忠
d274b190da Fix MinGW build and external project build. 2014-04-05 01:34:48 +08:00
Yao Wei Tjong 姚伟忠
46285baf97 Refactor build scripts to group Urho3D specific build option.
Initial support of project configuration and generation via cmake-gui.
2014-04-05 00:20:56 +08:00
Lasse Öörni
67d603d8e5 Node transform space refactoring. Translate(), Rotate() and LookAt() functions take a transform space (local, parent or world). Translate() has a behavior change: default space is local, as that is most often used in eg. camera movement, and is consistent with the default for rotations (the earlier fixedAxis = false was same as local space). The redundant TranslateRelative() function is removed. Add RotateAround() function, which allows rotating around a pivot in either local, parent or world space. Closes #295. 2014-04-03 22:36:29 +03:00
Lasse Öörni
a70848e464 Fix Lua postupdate handler not being called. 2014-04-03 22:34:18 +03:00
Lasse Öörni
42265071a3 Added a multiplier+addition for depth bias on OpenGL ES platforms. Increased default constant depth bias of lights. 2014-04-03 11:22:40 +03:00
Lasse Öörni
2ac921de60 When editor is run from Urho3DPlayer, enable Lua if possible to allow editing Lua scripted scenes. Closes #294. 2014-04-03 10:45:24 +03:00
Aster Jian
88ca8a56b5 Remove AttributeAnimation.h from master. 2014-04-02 10:54:07 +08:00
Lasse Öörni
6be531d66f Set frustum size shader parameter as Vector3. 2014-04-02 01:33:19 +03:00
Lasse Öörni
8945322476 Fix spelling: ClipBoard -> Clipboard. Use the system clipboard by default in the editor. 2014-04-01 21:06:07 +03:00
Lasse Öörni
0d2879bbf0 Fix OpenGL build. 2014-04-01 20:06:50 +03:00
aster2013
e1a2c7a2bf Update AttributeAnimation.h 2014-04-01 23:31:05 +08:00
Lasse Öörni
ee9868e29e Refactor setting global & camera shader parameters to functions. Used both by Batch & View. Ensure that same parameters are set in both scene and quad (postprocess) rendering. Note that quad rendering still does not use the camera's real projection matrix to ensure stability. 2014-04-01 13:56:39 +03:00
Lasse Öörni
cf4c43d344 Added Serializer / Deserializer functions for reading & writing matrices. Added bool success parameter to Quaternion::FromLookRotation() and Node::LookAt(), as it can potentially give a NaN result (in which case the original rotation is kept). Optimized reading of math objects in Deserializer to avoid default construction. 2014-04-01 12:29:17 +03:00
Lasse Öörni
f7b99ecdee Added Matrix types to Variant. Added ToString() to Matrix types. Added Matrix getters/setters to XMLElement. Added ToMatrix string conversion functions. Added possibility to assign shader parameters from Matrix variants. Fixed missing setting of Color variant shader parameter on Direct3D9. 2014-03-31 23:32:06 +03:00
Lasse Öörni
2bedd953ce Fixes to sceneless renderpath on OpenGL. 2014-03-31 12:25:24 +03:00
Lasse Öörni
6bfcc28010 Allow a pass to be marked as SM3-only, so that rendering limitations can be defined as data-driven instead of hardcoding in the engine. Moved specular disable for SM2 shadowed pointlight from code to shaders. Mention in the documentation that some materials may be too complex for SM2 and dynamic shadows. 2014-03-31 01:17:00 +03:00
Lasse Öörni
1418fb7e83 Changed the SM2.0 tradeoffs to allow 4-sample shadow mapping and to verify that shaders again work on GPU's without hardware shadow compare (eg. Radeon 9800.) Removed unnecessary shader code & simplified the LitSolid & light volume shaders. 2014-03-30 20:27:15 +03:00
Lasse Öörni
c3425334a3 Switch forward light calculations back to world space instead of tangent space to avoid light attenuation bugs when TBN matrix is not orthogonal. Shader code becomes simpler and more similar between forward and deferred, and number of vertex shader variations is reduced, but disadvantage is a more complex pixel shader which requires disabling expensive features on SM2.0 to avoid exceeding the arithmetic instruction limit. Fix cube mapped point light displaying the cube map upside down. Closes #276. 2014-03-30 00:44:07 +02:00
Lasse Öörni
1838e604f3 Do more work in the ParseTextureUnitName() function to reduce duplicated code. 2014-03-29 23:47:17 +02:00
Lasse Öörni
6833f858dc If a view's renderpath has no scene passes, allow rendering it also when no scene, camera & octree are provided. Closes #267. 2014-03-29 00:25:36 +02:00
Lasse Öörni
212a3b34b2 Merge remote-tracking branch 'remotes/silverkorn/master' 2014-03-28 22:54:41 +02:00
aster2013
882a7d3929 Remove ContainerLuaAPI.pkg 2014-03-28 13:32:50 +08:00
aster2013
1ba3fe00fa Rename sensor to trigger. 2014-03-28 13:00:45 +08:00
Yao Wei Tjong 姚伟忠
b8368401fd Use alternative way to suppress CMP0022 warning. Closes 287. 2014-03-28 08:51:19 +08:00
Lasse Öörni
35195939c1 Exposed allowed screen orientations (effective on iOS only currently) and the flush GPU setting as engine startup parameters. 2014-03-28 00:23:31 +02:00
Danny B
e738209746 Added descriptions mapping for LuaScript packages' hooks.
In "ToDoxHook.lua":
- Added "getCurrentDirectory" function;
- Added process to fetch and map C++ headers' descriptions to Lua elements;
- [TODO] Write descriptions from Lua elements for Doxygen output.

In "ToZerobraneStudioHook.lua":
- Writes descriptions from Lua elements for ZerobraneStudio API file.
2014-03-27 16:29:40 -04:00
aster2013
0cfe56310a Use multi thread check Drawable2D visiblity. 2014-03-27 19:46:19 +08:00
aster2013
a47c9ebe32 Add visibility property in Drawable2D.[ci skip] 2014-03-27 19:46:18 +08:00
Yao Wei Tjong 姚伟忠
20edf417ce Fix LuaJIT search path which was broken after v2.0.3 update. 2014-03-27 14:09:40 +08:00
aster2013
c52d2e35d5 Delay call Drawable2D::GetVertices. 2014-03-27 13:25:53 +08:00
aster2013
252375abc1 Add material compare in Drawable2D. 2014-03-27 12:08:08 +08:00
Lasse Öörni
18217a0fdd Added UI hover start/end events. 2014-03-26 20:07:24 +02:00
aster2013
0354d3a2f2 Add visibility checking in DrawableProxy2D. 2014-03-26 20:59:27 +08:00
Lasse Öörni
ed59f76e1c Restore .gitignore in Source/Android/assets. 2014-03-26 12:22:05 +02:00
Lasse Öörni
e8fdf7a7d8 Fix DrawableProxy2D check for large indices: vertex count needs to be over 0xffff. Do not attempt to precache instanced or shadowed pointlight shaders on OpenGL ES. 2014-03-26 12:18:07 +02:00
Lasse Öörni
16605301bc Reorganize Editor & NinjaSnowWar resources into subdirectories. 2014-03-26 11:57:56 +02:00
aster2013
5b47ba268d Fix ConstraintMotor2D, refactor all Constraint2D classes. 2014-03-26 12:36:16 +08:00
aster2013
077df45dc0 Reorder functions in DrawableProxy2D. 2014-03-26 12:36:15 +08:00
Lasse Öörni
f6c96c2f9f Simplify defining Vector2,3,4::ZERO. Consistency for the up direction parameter name in Node::LookAt() & Quaternion::FromLookRotation(). 2014-03-26 00:30:03 +02:00
Lasse Öörni
0a1d2ea259 Default-construct math objects to zero or identity to unify C++ / AngelScript / Lua behavior. Closes #279. 2014-03-25 22:34:03 +02:00
Lasse Öörni
31ce69b490 DrawableProxy2D operation fixes. Should fix crashes with worker threads and sprite flickering. Note that there is no frustum culling for Drawable2D's, as the vertex buffer for all of them is generated at once, and culling would be problematic for multiple views. Closes #252. 2014-03-25 21:35:34 +02:00
Lasse Öörni
de8396f0c4 Ensure StaticSprite2D calculates its local boundingbox correctly, then transforms it to world space. Remove DrawableProxy2D searching for a camera node, as that is unreliable. Instead a large bounding box (similar to SkyBox) is set for it. 2014-03-25 20:32:50 +02:00
Lasse Öörni
a6b66ab23a Fix crash when a 2D drawable is removed from scene.
Added icons for 2D helper subsystems.
2014-03-25 19:29:38 +02:00
aster2013
623fab0e16 Fix CompareDrawable2Ds. 2014-03-25 20:25:35 +08:00
Lasse Öörni
f45976832d Send event when drag is cancelled. 2014-03-25 14:24:15 +02:00
Lasse Öörni
00a1c50b16 Merge remote-tracking branch 'remotes/friesencr/ui-esc-cancel-drag' 2014-03-25 13:33:32 +02:00
aster2013
60ef5aa6bf Add DRAWABLE_2D. 2014-03-25 18:28:40 +08:00
aster2013
5957f7bcc3 Chanage update geometry in main thread. 2014-03-25 18:10:59 +08:00
Chris Friesen
eb565b81ad Escape cancels ui dragging 2014-03-25 01:30:06 -05:00
aster2013
e7d829277d Remove AddListener call. [ci skip] 2014-03-25 14:01:00 +08:00
aster2013
a32334d230 Fix bounding box calculate in ParticleEmitter2D, use dummy bounding box in DrawableProxy2D. 2014-03-25 13:58:10 +08:00
aster2013
d7a3b4336d Use index buffer in DrawableProxy2D. 2014-03-25 13:23:01 +08:00
aster2013
c31637ed43 Add batch rendering for all 2D objects. 2014-03-25 12:51:10 +08:00
Yao Wei Tjong 姚伟忠
33312cf5bb Fix the Drawable2D sorting expression. 2014-03-25 12:38:39 +08:00
Yao Wei Tjong 姚伟忠
6f893483a1 Add RPM and DEB package generator for Raspberry Pi package build. 2014-03-25 12:17:51 +08:00
aster2013
1d3329c4aa Apply world transform to vertices. 2014-03-25 12:13:43 +08:00
aster2013
43147fbe1d Convert MaterialCache2D to a component. [ci skip] 2014-03-25 12:09:57 +08:00
aster2013
4a34818c25 Add DrawableProxy2D.[ci skip] 2014-03-25 11:52:28 +08:00
aster2013
bea3ec1c76 Remove z value, use layer order to sort Drawable2D. 2014-03-25 11:31:27 +08:00
Lasse Öörni
83aba1d30e Added CharEntry event to LineEdit for manipulation of the chars that are being inserted into the edited text. 2014-03-25 01:49:12 +02:00
Alex Parlett
d274e71dd7 Fixed Ninja Snow Wars Objects xml to use Is Trigger.
Updated Physic Events to use P_TRIGGER instead of P_PHANTOM this will require a change in anything using the old Phantom event code in client applications.
2014-03-24 21:55:42 +00:00
Lasse Öörni
6f21f8bc69 Merge branch 'sdl-update' 2014-03-24 23:37:22 +02:00
Alex Parlett
a22a24c0e4 Rename RigidBody::Phantom to RigidBody::Trigger to align it with common terminology for physics. 2014-03-24 20:44:34 +00:00
Lasse Öörni
0246ae607f Improve Camera documentation. To avoid potential confusion, disable auto aspect ratio mode from Camera if aspect ratio is set explicitly, or if the Vector2 form of Camera::SetOrthoSize() is used. 2014-03-24 22:16:48 +02:00
aster2013
ff0d806587 Rename ParticleModel2D to ParticleEffect2D. 2014-03-24 12:09:51 +08:00
Yao Wei Tjong 姚伟忠
9f2d8e072d Remove LuaJIT specific definition as it is not needed.
Since we are not installing LuaJIT directly but leave it in Urho3D's Bin directory, it should not be necessary to alter the search path to include LUA_XROOT (in v2.0.2) or LUA_ROOT (in v2.0.3). Similarly because of that, we also do not need to care about LuaJIT new support for MULTILIB.

This change should remove the incorrectly included hardcoded-value in the Urho3D.pc for the Raspberry Pi platform as well.
2014-03-22 20:22:21 +08:00
Yao Wei Tjong 姚伟忠
591c8800b6 Minor fix for SDL build on Raspberry Pi platform. 2014-03-21 23:05:12 +08:00
Yao Wei Tjong 姚伟忠
ed1f820f9b For Travis CI - workaround FindALSA cmake module bug on Ubuntu 12.04. 2014-03-21 21:03:33 +08:00
Lasse Öörni
bc5730680b Fixed SDL build on MinGW. 2014-03-21 14:27:08 +02:00
Lasse Öörni
6f3a79eda3 Fix SDL keyboard event sending on X11. 2014-03-21 13:35:25 +02:00
Lasse Öörni
882f4da62e Added quad rendering missing elapsed time parameter fix from szamq. Also add delta time parameter to batch rendering. Closes #272. 2014-03-21 13:23:06 +02:00
aster2013
f52bdfeb5b Add new line at end of file.[ci skip] 2014-03-21 18:04:18 +08:00
aster2013
9fa07b4af5 Add new line at end of file.[ci skip] 2014-03-21 17:58:01 +08:00
aster2013
fc0e65a8d9 Add Lua and AngelScript binding. 2014-03-21 17:48:30 +08:00
aster2013
a411d7db39 Add More constraint type. [ci skip] 2014-03-21 17:47:59 +08:00
aster2013
5b798b4467 Dont allow edit Constraint2D in editor[ci skip] 2014-03-21 17:47:30 +08:00
aster2013
9cd40fb07f Revert attribute animation. It will be added in a new branch. 2014-03-21 10:44:18 +08:00
Lasse Öörni
52aa369f5d Android fixes. Bump required Android SDK required for compiling to 12 due to SDL joystick code. Removed the activity finish request code, as SDLActivity should now cleanly wait for the native thread to exit. 2014-03-21 02:46:42 +02:00
Lasse Öörni
365e0a7ed2 Fixed conflict. Removed nonexistent file from SDL CMakeLists.txt. 2014-03-21 01:48:52 +02:00
Lasse Öörni
1439b1c4be Merge SDL 2.0.3. 2014-03-21 01:44:14 +02:00
Lasse Öörni
26ef946bad Add possibility to decouple BorderImage border UV size from screen size. Closes #269. 2014-03-20 20:16:30 +02:00
aster2013
29e930d495 Add commend and use shared ptr for attribute animation. [ci skip] 2014-03-20 22:32:49 +08:00
aster2013
b1b9c34c11 Add simple attribute animation system, and change StaticScene to test it. 2014-03-20 22:23:33 +08:00
Yao Wei Tjong 姚伟忠
82c8d45b59 Revert back the condition as the issue is with Travis CI OSX build env.
[ci skip]

A new issue is opened at their repo: https://github.com/travis-ci/travis-ci/issues/2085.
If it could not be resolved quickly then we will force to export that environment variable in our own .travis.yml file.
2014-03-20 21:49:31 +08:00
aster2013
1f90e248e9 Add Lua binding for Constraint2D. 2014-03-20 18:53:00 +08:00
aster2013
d96310f82e Add more Constraint2D. [ci skip] 2014-03-20 18:52:59 +08:00
Yao Wei Tjong 姚伟忠
a13c04053c Fix the logic to suppress all warnings for iOS CI build. [ci skip] 2014-03-20 16:07:59 +08:00
aster2013
a44291b557 Fix gravity and rotation in ParticleEmitter2D. 2014-03-20 14:47:24 +08:00
Yao Wei Tjong 姚伟忠
a9056d90f4 Fix build script to include Urho3D.apk only for Urho3D project.
[ci package]
2014-03-20 14:24:52 +08:00
Yao Wei Tjong 姚伟忠
41549655ce Build both armeabi and armeabi-v7a ABIs when packaging for Android.
- Fix android toolchain to correctly set the library output path when ANDROID_ABI build option changes.
- For Travis CI - download and setup Android SDK on the fly when performing Android packaging.
- Final apk is included in the binary package.
2014-03-19 23:57:48 +08:00
aster2013
86ae9190a7 Fix particle emitter, add radial particle in sample. 2014-03-19 23:09:10 +08:00
Yao Wei Tjong 姚伟忠
bceb1a9c61 Updated to LuaJIT 2.0.3. Closes #266. 2014-03-19 19:57:18 +08:00
Lasse Öörni
12e6bcf4e0 Fixed typo and improved SoundSynthesis example comments. 2014-03-19 13:43:55 +02:00
Lasse Öörni
e8c550a98f Added documentation for the sound streaming feature. 2014-03-19 12:28:11 +02:00
Lasse Öörni
a06e4238b3 Simplify sound stream code and improve the SoundSynthesis sample. Closes #257. 2014-03-19 12:15:31 +02:00
aster2013
6e5d43a56b Replace plist particle file with Staring extension particle system (pex). 2014-03-19 16:11:02 +08:00
aster2013
4e2285b5b3 Add URHO3D_API to BufferedSoundStream. [ci skip] 2014-03-19 16:04:54 +08:00
Lasse Öörni
1cc8f2b82b Added BufferedSoundStream class and sound synthesis C++ example.
Removed SharedArrayPtr DynamicCast() as it made no sense; replaced with ReinterpretCast().
2014-03-19 09:18:13 +02:00
Lasse Öörni
acb993e4ba Abstract Ogg Vorbis sound decoding into the SoundStream class. Note: the SoundStream class is deliberately not exposed to scripts, as it requires low-level data access and is used from the sound mixing thread. 2014-03-19 01:08:23 +02:00
Lasse Öörni
4bf765d711 Removed SDL hack to get window handle for Direct3D9. Instead use SDL builtin functionality. 2014-03-18 19:37:18 +02:00
Lasse Öörni
c1fbbd9628 Fix interpolation of the decoder buffer when it loops. 2014-03-18 15:41:09 +02:00
Lasse Öörni
8bf5af9261 Added note that tangents are needed for normal mapping. Clean up SoundSource decoder handling to prepare for application-supplied sound stream. 2014-03-18 15:20:19 +02:00
aster2013
4146f77ec2 Add Constraint2D Lua and AngelScript binding. [ci skip] 2014-03-18 18:49:38 +08:00
aster2013
c7153fd67d Add Urho2DPhysicsRope sample.[ci skip] 2014-03-18 18:43:00 +08:00
aster2013
b417a3a2b0 Add Constraint2D classes. 2014-03-18 18:39:32 +08:00
Yao Wei Tjong 姚伟忠
1e8c8c76bf Add end-of-line character on last line. [ci skip] 2014-03-18 16:36:48 +08:00
Yao Wei Tjong 姚伟忠
10cbd8deed Add a simple Android samples launcher activity.
The launcher activity will only be shown when there are actually more samples built into the deployed apk. If no other samples then the launcher will just launch Urho3DPlayer without prompting. Otherwise a list view is presented in the launcher activity to let user to choose which sample library to be loaded.
Due to unloading of shared library is not supported from Java side, currently once a sample library is being loaded, the launcher cannot unload the library and let user to choose other samples. Until a workaround is found, user would have to perform a long pressed on a home button, close the app, and restart it again from scratch.
2014-03-18 16:33:27 +08:00
Lasse Öörni
480594e7a4 Added focusOnShow -property to Console to control whether the Console's LineEdit is automatically focused. Default true on desktops and false on mobile devices, to prevent automatically popping up the screen keyboard. 2014-03-17 17:23:46 +02:00
aster2013
e0e7fe8ea5 Add MaterialCache2D, Remove DrawableProxy2D. 2014-03-17 22:23:05 +08:00
aster2013
ab66be1eb2 Fix typo. [ci skip] 2014-03-17 19:45:35 +08:00
aster2013
cd41727484 Change comment. [ci skip] 2014-03-17 19:42:17 +08:00
aster2013
906aa96273 Fix ScriptSubscribeToEvent bug when new object with same memory address. 2014-03-17 19:34:01 +08:00
aster2013
3707c984ac Fix point query in PhysicsWorld2D. 2014-03-17 18:16:13 +08:00
aster2013
7203a04952 Add point query function in PhysicsWorld2D. 2014-03-17 13:56:00 +08:00
aster2013
af02e3fc4a Add query function in PhysicsWorld2D. 2014-03-17 13:28:21 +08:00
Lasse Öörni
327c117af1 Fix Urho2D physics classes AngelScript bindings. 2014-03-15 23:08:24 +02:00
Lasse Öörni
1d9d0a5736 Synchronize keycode constants with SDL. This changes some constants, like NUMPAD -> KP_. Added SDL scancode constants. Added polling of keys by scancodes, and scancodes into key events. Added conversion functions from keycode to scancode and vice versa, and functions to get key names. Closes #254. 2014-03-15 18:15:11 +02:00
aster2013
82c0cd6ae2 Add DrawableProxy2D (Not finish, currently on cache material).[ci skip] 2014-03-15 23:06:45 +08:00
aster2013
0d5e70ef46 Force CI build. 2014-03-15 22:10:21 +08:00
aster2013
7871c68130 Add CollisionEdge2D, CollisionChain2D and CollisionPolygon2D (including Lua and AngelScript binding). [ci skip] 2014-03-15 21:46:35 +08:00
Yao Wei Tjong 姚伟忠
4a061aa451 Add option for console to auto visible on receiving error.
Refactor editor to use the enhancement.
2014-03-15 18:02:09 +08:00
Yao Wei Tjong 姚伟忠
3979aece4e Fix partial init causing Editor to crash when loading 2D physics scene. 2014-03-14 20:59:19 +08:00
Yao Wei Tjong 姚伟忠
4e29e1209b Fix uninitialize member var causing CollissionCircle2D to missbehave. 2014-03-14 20:59:19 +08:00
Yao Wei Tjong 姚伟忠
2ea6f31f2b Cleanup code as it does not use Scene's attribute anymore. 2014-03-14 17:52:23 +08:00
Yao Wei Tjong 姚伟忠
0115beaad6 Minor refactoring on Urho3D common cmake module for setting GCC cflags.
[ci skip]
2014-03-14 17:49:22 +08:00
aster2013
aa10e2222a Add GetTexture function in Drawable2D.[ci skip] 2014-03-14 17:48:08 +08:00
aster2013
c5c715ee84 Add 2D sprite to physics samples.[ci skip] 2014-03-14 14:03:14 +08:00
aster2013
8dca005f9c Add Lua binding and AngelScript Binding.[ci skip] 2014-03-14 13:30:02 +08:00
aster2013
b9940bdac1 Apply node transform to collision shape, add CollisionCircle2D.[ci skip] 2014-03-13 22:03:38 +08:00
Lasse Öörni
f9ff9550bd Added documentation on light brightness and negative lights. 2014-03-13 14:25:07 +02:00
Lasse Öörni
0b87faa856 Minor code formatting. Prefer machine word loop counter. 2014-03-13 10:26:37 +02:00
Lasse Öörni
d534efd7c9 Use light's effective color for debug drawing. 2014-03-13 10:19:29 +02:00
Lasse Öörni
094006ef91 Added brightness attribute to Light. Added separate equality test with and without epsilon to Color, similar to Vector2/3/4. 2014-03-13 10:19:28 +02:00
Yao Wei Tjong 姚伟忠
e933a51703 Add instruction to install Box2D header files. [ci skip] 2014-03-13 15:51:36 +08:00
aster2013
03b73c4771 Fixed Header file name. 2014-03-13 14:18:21 +08:00
aster2013
f1d7d0d5dc Remove UpdateBody and UpdateFixture funcition. 2014-03-13 14:09:48 +08:00
aster2013
5bb12f4a2d Add Box collision shape. 2014-03-13 13:14:15 +08:00
aster2013
c54c6456a8 Fixed bug in RigidBody2D.cpp 2014-03-13 12:31:12 +08:00
Lasse Öörni
4080f024c5 Exposed IsPowerOfTwo(), NextPowerOfTwo() and SDBMHash() to script. 2014-03-12 23:07:25 +02:00
Lasse Öörni
832d0c7dab Fix Lua binding of PhysicsWorld2D. Closes #250. 2014-03-12 22:31:27 +02:00
Lasse Öörni
0ddc3c774e Clean up Batch code. Give larger sorting priority to negative lights so that they are applied right after ambient, followed by additive lights. 2014-03-12 15:50:45 +02:00
Lasse Öörni
8f2ed8b97b Guard LuaScript subsystem against unsubscribing internally listened events. 2014-03-12 15:50:45 +02:00
aster2013
a3c79a67d5 Add attribute accessor in Physics2D classes.. 2014-03-12 21:26:27 +08:00
aster2013
74a059d899 Add Urho2D Physics sample. 2014-03-12 20:59:39 +08:00
aster2013
90f87a2a2c Add Lua and AngelScript binding. 2014-03-12 20:59:24 +08:00
aster2013
e116ab8150 Add 2D physics class. 2014-03-12 20:58:35 +08:00
aster2013
130551f4d8 Add fixed pixel size (user don't need change the value). 2014-03-12 19:58:32 +08:00
Lasse Öörni
02e543ba5c Support for per-pixel negative lights. Added BLEND_SUBTRACT & BLEND_SUBTRACTALPHA blend modes. Light code cleanup. 2014-03-12 00:29:27 +02:00
Yao Wei Tjong 姚伟忠
24aeabb02f Move back MarkAllDrawable2DDirty() to Node class as public method.
The method could be called to mark Drawable2D as dirty for other reasons and not just because of Scene's pixels per unit attribute has changed. It could also be called on a particular node instead of Scene node to partially mark the attached 2D components as dirty.
2014-03-11 23:09:27 +08:00
aster2013
c96d44fcb8 rename unitSize2D to pixelsPerUnit. 2014-03-11 22:39:18 +08:00
aster2013
d79c151f84 Revert ParticleModel2D model scale, apply scene unit size to ParticleEmitter2D. 2014-03-11 22:21:17 +08:00
aster2013
3101a308f9 Change default unitSize2D to 100, Apply model scale in ParticleModel2D. 2014-03-11 22:14:50 +08:00
aster2013
3c7a52d6f3 Make MarkAllDrawable2DDirty function private in Scene class. 2014-03-11 20:28:14 +08:00
Yao Wei Tjong 姚伟忠
68be9a9e57 Fix MINGW_ROOT variable value computation when not being provided. 2014-03-11 20:03:20 +08:00
Lasse Öörni
2e212023fb Fixed the Lua binding of UIElement::GetParent() to return the proper type. 2014-03-11 12:48:48 +02:00
Lasse Öörni
88853388a9 Use proper object return type in Lua bindings of UIElement::GetChild() to enable subclass properties & functions. 2014-03-11 12:48:47 +02:00
Yao Wei Tjong 姚伟忠
c21924703c Also recalculate bounding box when Scene's 2D unit size change. 2014-03-11 18:03:51 +08:00
Yao Wei Tjong 姚伟忠
d5d4d51aff Refactor Drawable2D's pixel-per-unit to Scene's 2D-unit-size attr.
Updating this Scene's attribute would mark all the attached Drawable2D components dirty.
2014-03-11 16:03:31 +08:00
Lasse Öörni
0eb0a5d7a5 When a Zone moves or is removed from octree, clear zone from all drawables within the bounding box, not just from those that belong to the zone. This allows zone search in View to perform more optimally. 2014-03-11 00:28:43 +02:00
Lasse Öörni
2082c026c2 Handle zone search better to avoid erroneous lower-priority zone assignment. Added OnRemoveFromOctree() virtual function to Drawable. Zone code simplified. Remove zone reference from drawables within its bounding box when the zone is being destroyed. 2014-03-11 00:16:14 +02:00
Lasse Öörni
6fbda65a4f Initial negative light support. Right now works only with per-vertex lights. Set negative light color to use. Per-pixel negative lights may be problematic, as they require different blend mode, will also darken any emissive materials, and will not work in light pre-pass mode (there is nothing to subtract from, as light buffer is initialized with black) 2014-03-10 16:28:59 +02:00
Lasse Öörni
b1def74270 Fix PhysicsWorld::GetRigidBodies() not taking collision layer mask into account. Closes #248.
Expose PhysicsWorld::GetRigidBodies() into Lua.
2014-03-10 12:03:10 +02:00
Yao Wei Tjong 姚伟忠
f48ef6f5bd Minor bug fix, refactoring and reformatting. 2014-03-10 15:34:20 +08:00
Lasse Öörni
0f3d781c3b Update copyright year in some files. Added copyright notice to ForEach.h. 2014-03-10 00:56:06 +02:00
Lasse Öörni
8f587296f2 Added note to ForEach.h of VS2008 incompatibility. 2014-03-10 00:53:11 +02:00
Lasse Öörni
4d15a2c09b Report correct window size in the screen mode event if maximizing the window on startup. Closes #247. 2014-03-10 00:42:03 +02:00
Lasse Öörni
65c3c50738 Shuffling around of Spline to the Core library to make explicit that it depends on Variant (the dependency is no longer strict as Urho3D library is built as one piece, but is good to keep in mind to retain the Math library theoretically reusable outside Urho3D.)
Register DebugRenderer earlier in the AngelScript API registration for less special cases.
2014-03-10 00:25:37 +02:00
Lasse Öörni
d53079f530 Merge remote-tracking branch 'remotes/alexparlett/feature/spline' 2014-03-09 23:45:39 +02:00
Alex Parlett
751b4f1c97 Changed SplinePath so that it is more flexible its logic is now separate from the scene hierarchy. Control Points are set and removed explicitly with the ability to define the order. Controlled Node is explicitly set so that the Move function affects that Node's WorldPosition. 2014-03-09 19:18:40 +00:00
Lasse Öörni
fb3306170e Material quality, texture quality, texture filter mode and anisotropy level as engine startup parameters and command line options. Closes #241. 2014-03-09 19:36:40 +02:00
Alex Parlett
3bb95a7d5d Refactored Spline to use Variant instead of being a template to allow easier implementation of Scripting APIs. Added additional type safety checks to ensure that the Variant underlying type is the same as existing elements.
Added Lua and Angelscript Bindings for SplinePath and Spline.

fixes #229
2014-03-09 14:14:46 +00:00
Alex Parlett
7aa0d8acc9 Separated the Spline Mathematical aspect from the Component into a new Spline class under Math. No angelscript or lua bindings as of yet as I'm unsure how to go about adding the templated class in a suitable manner.
Old Spline class has been renamed to SplinePath as is build using child nodes of its parent node. To facilitate the functionality a method has been added to Node to allows you to specify the index position of where to add the child Node as that impacts the curve.  DebugGeometry was added which shows the nodes that currently make up the SplinePath and the curve.

Added CScriptArray to PODVector convertor.
2014-03-09 12:48:02 +00:00
Yao Wei Tjong 姚伟忠
dce461469f For Travis CI - detect release tag and do the necessary automatically.
When a release tag is detected in a commit, instruct CI build to perform a released package build that uploaded into release directory instead of Snapshots directory.
2014-03-09 16:42:30 +08:00
Lasse Öörni
2529f4c51a Added IsNaN() to Vector2, Vector3, Vector4, Quaternion. Safeguard against Node::LookAt() misbehaving if target is very close. Closes #231. 2014-03-09 03:34:28 +02:00
Lasse Öörni
d25872ca08 Update Recast/Detour to newest. Remove Navigation.cpp / Navigation.h in Navigation library; moved the library registration to NavigationMesh.cpp. 2014-03-09 03:27:13 +02:00
Lasse Öörni
8be6780654 Update AngelScript threading code to newest from SVN for WinXP compatibility fix. 2014-03-09 02:04:24 +02:00
Lasse Öörni
1941c508b4 Removed erroneous comment from View. Do not treat it a fatal error in OgreImporter if index optimization can't be done. 2014-03-08 17:03:58 +02:00
Yao Wei Tjong 姚伟忠
62ce85adfe Add new build options to control FileWatcher/profiling/logging support. 2014-03-07 23:36:07 +08:00
Lasse Öörni
435ccc4f38 Fixed Box2D compile on Android. Added Box2D license to the root License.txt file. 2014-03-07 14:58:00 +02:00
Yao Wei Tjong 姚伟忠
176a9b7009 Minor fix to vertex buffer resize logic. [ci skip] 2014-03-07 14:00:23 +08:00
aster2013
4555aff0c9 Add Box2D. 2014-03-07 13:03:36 +08:00
aster2013
b9f106ce9d Add draw debug triangle in DebugRenderer. 2014-03-07 12:34:46 +08:00
aster2013
7913745200 Minor change for comment. 2014-03-07 11:51:53 +08:00
Lasse Öörni
c96f313dbd Fixed erroneous event bitmasks. Optimize LogicComponent memory footprint. 2014-03-07 02:09:35 +02:00
Lasse Öörni
2c3b8117a7 Fixes to LogicComponent event subscription / unsubscription logic. Call DelayedStart() also if neither of Update or FixedUpdate is needed (subscribe once just for that, then unsubscribe.) 2014-03-07 01:44:15 +02:00
Lasse Öörni
2095043114 Added note to LogicComponent that disabling both Update & FixedUpdate will cause DelayedStart to not be called. 2014-03-07 01:18:40 +02:00
Lasse Öörni
8f6d45da02 Log full shader name when a D3D shader variation compiles or loads itself. 2014-03-07 00:18:20 +02:00
Lasse Öörni
3a0f5e1072 Update LogicComponent comments. 2014-03-06 22:44:32 +02:00
Lasse Öörni
1461021c94 For feature similarity between AngelScript, Lua and the C++ LogicComponent, remove the "Fixed update FPS" feature from ScriptInstance. DelayedExecute() in repeating mode can be used instead to call a script object method at arbitrary intervals. 2014-03-06 21:53:39 +02:00
Lasse Öörni
d0595084d4 Initial implementation of LogicComponent base class, which should make writing C++ logic/updater components more similar to scripting. Refactored C++ examples to use LogicComponent where possible. 2014-03-06 21:47:39 +02:00
aster2013
a2daae5573 Revert "Set PixelsPerUnit default value to 100, make 2D Object has suitable size in Editor."
This reverts commit 766ce1d4c1.
2014-03-06 21:12:12 +08:00
aster2013
766ce1d4c1 Set PixelsPerUnit default value to 100, make 2D Object has suitable size in Editor. 2014-03-06 21:07:50 +08:00
Lasse Öörni
7ae747063f Rename "Unit Per Pixel" attribute in Drawable2D to "Pixels Per Unit" to match the actual behavior in StaticSprite2D / AnimatedSprite2D. Remove the attribute from ParticleEmitter2D class as it doesn't have effect. Closes #230. 2014-03-06 14:54:38 +02:00
aster2013
1c0cecb87a Don't use unit per pixel in ParticleEmitter2D. 2014-03-06 20:31:05 +08:00
Yao Wei Tjong 姚伟忠
79f03f9bf9 Fix attribute network replication for AnimatedSprite2D. 2014-03-06 20:28:32 +08:00
aster2013
ced2a315af Add set animtion to AnimatedSprite2D in editor, fixed minor bug in ParticleEmitter2D. 2014-03-06 19:14:17 +08:00
Yao Wei Tjong 姚伟忠
88021f0509 Clean up the 2D library fix for the Editor. 2014-03-06 15:11:29 +08:00
Yao Wei Tjong 姚伟忠
ff1f9fc7d8 Fix Drawable2D bounding box update and attribute network propagation. 2014-03-05 23:34:59 +08:00
Yao Wei Tjong 姚伟忠
7e3a6c71a3 Register 2D library after 3D graphic library is registered. 2014-03-05 18:02:56 +08:00
aster2013
39b29de532 Fixed hot spot error in Y axis. 2014-03-05 16:17:35 +08:00
Yao Wei Tjong 姚伟忠
5e6c081d09 Fix inspecting AnimatedSprite2D & ParticleEmitter2D attrs in Editor. 2014-03-05 15:48:35 +08:00
Yao Wei Tjong 姚伟忠
d1b1db18d5 Fix Editor crash when inspecting Drawable2D attributes.
[ci skip]
2014-03-05 13:43:32 +08:00
Yao Wei Tjong 姚伟忠
bdc0348b88 For Travis CI - do not set ENABLE_TESTING build option when packaging. 2014-03-05 12:33:30 +08:00
aster2013
058347b555 Don't export LuaScript to Lua API, make SetExecuteConsoleCommands GetExecuteConsoleCommands as global functions. 2014-03-05 12:17:07 +08:00
Lasse Öörni
347381c3b1 Added function in LuaScript subsystem to disable console input execution. 2014-03-04 18:55:15 +02:00
Lasse Öörni
7fd40cf630 Moved the test for ENABLE_TESTING into GetConsoleInput(), as script applications can not know whether it is safe to call.
Show OS mouse cursor in ConsoleInput sample.
2014-03-04 12:16:31 +02:00
Lasse Öörni
ac21be3e39 Implemented ConsoleInput sample in AngelScript. Added possibility to the Script subsystem to disable automatic execution of console input as AngelScript. Tidied up newlines from the ConsoleInput sample. 2014-03-04 11:51:28 +02:00
Yao Wei Tjong 姚伟忠
c08e1a2822 Fix last sample to bypass taking input from stdin during CI testing.
For some reason, xcodebuild does not support non-blocking stdin read while running the last test. Interestingly xctool does not have this problem. Alas, we use xcodebuild instead of xctool when performing testing because the former provides immediate testing results.
2014-03-04 16:58:33 +08:00
aster2013
8cba7977dc Add main thread check. 2014-03-04 12:28:52 +08:00
aster2013
2d8f14ce12 Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-03-04 11:51:25 +08:00
Yao Wei Tjong 姚伟忠
b5f9b52717 Minor fixes on C++ ConsoleInput sample class. 2014-03-04 11:39:36 +08:00
aster2013
3e7aa8512e Fixed warning. 2014-03-04 11:21:06 +08:00
aster2013
a9afb47a7e Fixed warning. 2014-03-04 11:20:46 +08:00
aster2013
98b924d9c5 Allow subscribe to same event with multi functions in Lua. 2014-03-04 11:20:14 +08:00
Lasse Öörni
dd77e395b8 Process Urho threat level first to avoid message spam when he kills you and other stuff is also happening. 2014-03-04 02:13:53 +02:00
Lasse Öörni
1ed123194c Fixed 'hide' command behaving incorrectly during Urho cooldown period. 2014-03-04 02:08:24 +02:00
Lasse Öörni
e2779d0509 Added ConsoleInput C++ example. Closes #159.
When setting the number of rows, ensure Console sets the text style if available, so that the row container appears immediately with the correct height.
2014-03-04 02:01:50 +02:00
Lasse Öörni
03043038a0 Visualize camera as a frustum. Do not draw debug geometry in the editor's camera preview. 2014-03-03 11:46:17 +02:00
aster2013
b74de63f76 Remove CATEGORY in ParticleModel2D. 2014-03-02 23:12:22 +08:00
aster2013
353cbb77f1 Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-03-02 21:37:51 +08:00
aster2013
fa6d92d39a Adjust Lua GC policy, make the fps more smooth. 2014-03-02 21:37:16 +08:00
Yao Wei Tjong 姚伟忠
1a7d032425 Misc. minor fixes. 2014-03-02 16:16:50 +08:00
aster2013
39b2bfcfdf Refactor code. 2014-03-02 14:53:41 +08:00
aster2013
8bc70469e3 Apply node world transform to particle. 2014-03-02 14:23:15 +08:00
Lasse Öörni
68a8b6afea Exposed UI::LoadLayout() to Lua script. 2014-03-01 22:48:09 +02:00
Lasse Öörni
69690d367f Fixed Color::FromHCM(). Closes #216. 2014-03-01 16:31:04 +02:00
aster2013
6527d78c96 Animation2D: add save function, rename member functions. 2014-03-01 21:27:04 +08:00
Lasse Öörni
0628d61af6 Do not update/clone material in UpdateBatches(), as it's called from a worker thread. Instead update material earlier on demand. 2014-03-01 14:05:10 +02:00
aster2013
69c9a3068f Remove KeyFrame2D struct in Animation2D. 2014-03-01 15:52:37 +08:00
aster2013
7cfb4fe6be Add Urho2DParticle sample in C++. 2014-03-01 13:52:32 +08:00
aster2013
f227aef595 Fixed crash in CM_CLAMP mode. 2014-02-28 21:13:32 +08:00
aster2013
ac63f37ead Add coroutine.waitevent and coroutine.sendevent. 2014-02-28 20:43:29 +08:00
aster2013
9f80292978 Update Urho2D API(Lua and AngelScript). 2014-02-28 19:37:27 +08:00
aster2013
7c609e4629 Add AnimatedSprite to sample. 2014-02-28 19:20:10 +08:00
aster2013
1e9a101c40 Fixed typo. 2014-02-28 14:02:23 +08:00
aster2013
f9ad7c439f Add Animation2D Lua binding. 2014-02-28 13:52:06 +08:00
aster2013
a6f18c41ea Add Animation2D and AnimatedSprite2D. 2014-02-28 13:51:47 +08:00
aster2013
8d899ef468 Add AngelScript api. 2014-02-27 23:45:42 +08:00
aster2013
cddf7ee404 Add script binding for Urho2D. 2014-02-27 23:21:20 +08:00
aster2013
383da73503 Add Urho2DSprite sample. 2014-02-27 23:20:33 +08:00
aster2013
d4bab90eb8 Add ParticleEmitter2D. 2014-02-27 23:19:39 +08:00
aster2013
6af6a5412a Add SpriteSheet2D and StaticSprite2D. 2014-02-27 23:19:02 +08:00
aster2013
232c096d9a Add Sprite2D and Drawable2D. 2014-02-27 23:18:25 +08:00
aster2013
98c4c93ec3 Add new line at end of file. 2014-02-27 19:15:57 +08:00
aster2013
526e114db6 Add coroutine.start and coroutine.sleep in Lua. 2014-02-27 19:05:08 +08:00
aster2013
4a50e3d78d Add lua_getmainthread function to return main thread. 2014-02-27 19:04:11 +08:00
Lasse Öörni
68a3e33980 Ensure lib-prefix in static MinGW build. Closes #223. 2014-02-27 11:44:05 +02:00
Danny B
7c924618ac Modified "ToZerobraneStudioHook.lua" to require "ToDoxHook.lua" for avoiding code repetition.
Added Urho3D's License in Lua files.
2014-02-25 22:00:27 -05:00
Lasse Öörni
50f775b213 Added FileChanged event sent by ResourceCache for manually responding to changed files in resource directories.
Removed debug print from editor.
2014-02-25 11:29:35 +02:00
Lasse Öörni
233b7d8926 Partially reverted the AnimatedModel LOD determination change: use the animated bounding box center to calculate distance from camera. This is to ensure ragdolls will LOD correctly even if their bones move far from the root node. 2014-02-25 11:12:38 +02:00
Yao Wei Tjong 姚伟忠
2bbb4093db Change MinGW build settings when building shared library type.
- Statically link standard C runtime libraries.
- Does not use 'lib' prefix.

All credits to alexrass (See http://urho3d.prophpbb.com/topic46.html and http://urho3d.prophpbb.com/topic90.html).
2014-02-25 17:07:25 +08:00
Yao Wei Tjong 姚伟忠
73f95daf5f Minor refactoring. [ci skip] 2014-02-25 15:50:29 +08:00
Lasse Öörni
74620c74f2 Ensure non-master models don't update animation or the bone bounding box. Use the model resource's transformed bounding box instead of actual animated bounding box for AnimatedModel LOD calculation to ensure animation does not affect the chosen LOD level. Copy the master model's bounding box for non-master AnimatedModels directly (may result in too large bounding box, but should prevent the non-master model skipping rendering because of a missing bounding box update) 2014-02-24 23:41:06 +02:00
Lasse Öörni
9d679cbc9b Added string filename overload to Lua bindings of Scene::LoadAsync() & Scene::LoadAsyncXML(). Closes #217. 2014-02-24 21:36:38 +02:00
Lasse Öörni
4bd2eb0356 Refactoring of Drawable::IsInView() functions and drawable view tracking.
- Call Drawable::IsInView() to check whether in view of any viewport camera. Does not include shadow map cameras.
- Call Drawable::IsInView(Camera*) to check whether in view of a specific camera. Pass null camera pointer here to allow any camera, including shadow maps.
Removed Drawable Lua exposed functions which do not have exposed counterparts in AngelScript, but are rather meant for internal C++ use only by the Renderer / View classes.
Closes #207.
2014-02-24 18:43:07 +02:00
Lasse Öörni
ae6efa6615 Merge remote-tracking branch 'remotes/silverkorn/master' 2014-02-24 17:54:39 +02:00
Yao Wei Tjong 姚伟忠
c306e7d57a For Travis CI - another attempt to fix iOS 64-bit packaging.
[ci package]

- When performing CI build for iOS platform, suppress all warnings. Non-CI build will still receive them.
- Automatically instruct Travis CI to do packaging when AngelScript or LuaScript API have changed.

Additionally, enhance iOS-specific Urho3D_universal custom target to perform initial check to see a rebuild is really necessary.
2014-02-24 17:21:56 +08:00
Danny B
f1b6ba117e Lua API generator for Zerobrane Studio IDE (http://studio.zerobrane.com/).
Based on and same usage as "ToDoxHook.lua" with tolua++ executable (See ./Bin/UpdateDocument).
- Overload methods supported (workaround as description);
- Inheritance supported (variables & methods).
2014-02-23 14:25:51 -05:00
Lasse Öörni
bfd968f9d7 Removed the base batch / non-base batch separation from BatchGroup. This is only needed for light queues, so rather have LightBatchQueue have separate queues for base & non-base.
Removed useScissor -flag from render path commands, as it can be automatically determined when it should be used.
2014-02-23 21:16:54 +02:00
Yao Wei Tjong 姚伟忠
82b707e66b For Travis CI - more tweaks on the packaging setup. [ci package]
- Prevent packaging from being accidentally invoked by a pull request or a commit on non-master branch.
- Generate documentation before packaging if it is not yet generated in previous step.
- When packaging for iOS platform, rebuild Urho3D library as Mach-O universal binary.
- When packaging for Linux platform, also invokes RPM and Debian CPack generators.
2014-02-24 00:16:53 +08:00
Yao Wei Tjong 姚伟忠
dae56f4d0c Fix Bullet's btVector3.cpp compile error on 64-bit iOS platform.
See https://code.google.com/p/bullet/source/detail?r=2716
2014-02-24 00:06:14 +08:00
Lasse Öörni
973b353a08 Safeguard CollisionShape against empty models to prevent Bullet asserts.
Reset Font type to none when (re)loading.
2014-02-22 22:01:03 +02:00
Lasse Öörni
263a624fe4 Possibility in ResourceCache to enable returning resources which failed to load. This is used in the editor to overcome eg. failed scripts disappearing from a ScriptInstance's script file slot.
Moved editor gizmo materials to CoreData directory.
Removed the Default.xml material, instead Material sets itself automatically to the same state by default (no textures, default parameters, NoTexture technique.)
Clear Technique when loading it.
2014-02-22 21:20:59 +02:00
Chris Friesen
00f26ddfd9 Get rid of some warnings when loading the editor 2014-02-21 23:39:53 -06:00
Yao Wei Tjong 姚伟忠
c7fe5f6267 For Travis CI - fix packaging for iOS platform. [ci package] 2014-02-21 23:55:16 +08:00
Yao Wei Tjong 姚伟忠
5099928b58 Fix Windows build using Urho3D as external lib in Release config.
Detected by Travis CI build. With this change, FindUrho3D module should be able to find Urho3D libs in the following scenarios:
- only debug version is available
- only release version is available
- both debug version and release version are available

Request CI build to use a Release build configuration [ci package].
2014-02-21 21:54:32 +08:00
Yao Wei Tjong 姚伟忠
89836f11fc For Travis CI - attempt to make packages on demand. [ci package] 2014-02-21 17:47:04 +08:00
Lasse Öörni
076b333124 Simplify pointer usage in HelloGUI example. 2014-02-21 10:25:33 +02:00
Yao Wei Tjong 姚伟忠
4d565aa401 Add new 'package' CMake built-in target for generating binary packages.
This is in preparation for setting up Travis CI build to upload binary packages to a central hosting server.
2014-02-21 15:43:31 +08:00
Amadeus
cfd3cdc048 Do not crash when cloning components without attributes. 2014-02-20 10:43:53 +01:00
Lasse Öörni
af11693a35 Use safe form of pointer for the work item in WorkItemCompleted event. 2014-02-19 15:39:52 +02:00
aster2013
9b17bc6328 Remove fullName_ member variance. 2014-02-19 16:40:18 +08:00
aster2013
8fc76e81fd Replace tab with space. 2014-02-19 14:15:04 +08:00
aster2013
9b31d29a54 Add GetFullName in ShaderVariation, make code more clear. 2014-02-19 13:37:39 +08:00
aster2013
dd16f85568 Change the copyright for 2014. 2014-02-19 12:32:08 +08:00
Yao Wei Tjong 姚伟忠
71458a5eb3 Fix tolua++ binding for Drawable::IsInView().
Expose the method as 'inView' readonly property, similar to how it is being exposed in AngelScript API.
2014-02-19 09:28:46 +08:00
Yao Wei Tjong 姚伟忠
5ec3c02025 Revert back the logic to auto generate pkg list. 2014-02-18 23:24:31 +08:00
Lasse Öörni
92611f1249 Avoid string based duplicate detection in ShaderPrecache when possible. 2014-02-18 15:17:22 +02:00
Yao Wei Tjong 姚伟忠
48eb60fd8e Rename 'magic' module to 'common' module to reflect its purpose better.
The purpose of Urho3D-CMake-common module is to store all the commonly used CMake commands and macros in one place so that they can be reused by other external projects using Urho3D as external library by simply including this module in their own CMakeList.txt.
2014-02-18 12:55:13 +08:00
Lasse Öörni
5a6a11c521 Minor documentation / comment fixes. 2014-02-17 23:43:59 +02:00
Lasse Öörni
0e5d11541f Fix missing root of shader precache file if loading it fails. Reset (clear) XMLFile when loading fails so that no illegal content will be saved when it's programmatically modified and then saved. 2014-02-17 22:56:03 +02:00
Lasse Öörni
cc9e5e1994 Moved to XML based shader precache files. Refactored shader precaching code to its own class. Closes #199. 2014-02-17 22:19:55 +02:00
Yao Wei Tjong 姚伟忠
83a5aae303 Fix Clang-Makefile Debug configuration build detected by OSX-CI.
For Travis CI - consider nothing to commit as OK to proceed to next step.
2014-02-17 21:43:39 +08:00
Amadeus
167c68aea0 Fixed ComponentAdded event. 2014-02-17 13:15:02 +01:00
Lasse Öörni
abc6fcd8b8 Shader precaching mechanism. Call Graphics::BeginDumpShaders() or use the engine command line parameter -ds <file> to create a shader dump file of the variations that are loaded during program run, and Graphics::PrecacheShaders() to load the dump file.
Moved GetShader() from Renderer subsystem to Graphics, which is more logical as loading shaders is a low-level operation, while Renderer should be concerned with high-level rendering of 3D scenes. Now eg. UI does not need to depend on Renderer at all.

Simplified internal state of ShaderVariation & ShaderProgram objects, the success of compile/link can be deduced from the presence of a non-null GPU object.

Fixed FILE_READWRITE mode to not clear the file contents, and to handle alternating reads and writes correctly.
2014-02-16 22:23:07 +02:00
Lasse Öörni
c2e6904a6b Reduce kNet worker thread wait time for potentially less network latency. 2014-02-16 22:23:07 +02:00
Yao Wei Tjong 姚伟忠
798eb597b6 Misc. bug fixes detected by CI build for Windows platform.
- Fix finding Urho3D library when only debug version is available.
- Keep the library dependencies in the list as they are, even if that means a same library being listed twice (to fix dynamic library build for Windows platform).
- MinGW cross-compiling toolchain already has PIC flag set by default, so skip setting it one more time (to suppress compiler warnings spam).
2014-02-17 01:57:04 +08:00
Yao Wei Tjong 姚伟忠
51c749f301 Doxygen uses // comment style. Header file uses /**/ style. Phew. 2014-02-16 22:22:03 +08:00
Yao Wei Tjong 姚伟忠
887c2ad748 Change comment style so that it also generates valid AngelScriptAPI.h. 2014-02-16 21:15:35 +08:00
Yao Wei Tjong 姚伟忠
2fb1dc2edc Mark the deprecated AS API bindings in the documentation.
Also print a warning when it is being used in the script.
2014-02-16 16:02:12 +08:00
Lasse Öörni
230a07e4d0 Fixed Resource::Load() in Lua saving instead of loading. 2014-02-15 21:27:19 +02:00
Lasse Öörni
47836474e2 Variant pointer refactoring. Variant can now hold a weak pointer to a RefCounted object, which is safer, and is returned using GetPtr(). Engine events have been converted to use that mechanism. GetPtr() is also directly available in AngelScript, as well as assigning a RefCounted or derived class handle to a Variant.
Important: when you assign a non-RefCounted object as a void pointer to a Variant, you must now retrieve it with GetVoidPtr() instead.

The legacy methods in AngelScript for obtaining object handles from Variant, ie. GetNode(), GetUIElement() etc. still exist, but are considered deprecated.
2014-02-15 19:22:29 +02:00
aster2013
82c1a7c59c Add UnsubscribeFromEvent function to ScriptObject, rename basic.lua to ToCppHook.lua. 2014-02-15 20:43:51 +08:00
Yao Wei Tjong 姚伟忠
5a469eea39 Fix MinGW cross compiling build on Ubuntu host system.
Attempt to add CI build for Windows platform using MinGW cross compiling toolchain.
2014-02-15 18:55:09 +08:00
Yao Wei Tjong 姚伟忠
647b962f4b Cleanup build script - support SCP_TO_TARGET build option consistently. 2014-02-15 13:52:30 +08:00
Yao Wei Tjong 姚伟忠
8ef4dc47eb Better integration of MinGW cross-compiling build process.
- Runtime and archive output directories change to mingw-Bin and mingw-Lib, respectively.
- Enable SCP_TO_TARGET build option for all cross-compiling build process (except Android).
- Enable LuaJIT support for MinGW cross-compiling build.
- Cache MinGW toolchain path and sysroot.
- Fix "object file is too big" issue when building Assimp library in debug build using MinGW.
- Reorder the build processes documentation section to match the Readme.txt file.
2014-02-15 13:34:42 +08:00
Lasse Öörni
4c02e19352 Increased the OpenGL ES constant depth bias adjustment to reduce self-shadowing artifacts. Do not use cascaded shadow mapping on OpenGL ES, so that the low quality shadow mode can avoid dependent texture reads altogether for much higher performance on iOS. Updated documentation of the GetPlatform() function. 2014-02-15 00:54:54 +02:00
Yao Wei Tjong 姚伟忠
981e924b88 Fix function signature to return data type as exposed API. Fixes #195. 2014-02-15 00:00:52 +08:00
aster2013
e7cef8223d Add construct function in dox file, add missing destruct in pkg file, update ToDoxHook.lua. 2014-02-14 21:32:07 +08:00
Lasse Öörni
964d9acb9e Merge remote-tracking branch 'remotes/wibbe/mingw-cross-compile-toolchain' 2014-02-13 22:47:14 +02:00
aster2013
2e9b720f4a Fixed tolua outside function name. 2014-02-13 23:36:40 +08:00
aster2013
21044135a5 Remove pkgToDox.lua, Rename some function and variant in ToDoxHook.lua. 2014-02-13 22:32:53 +08:00
Daniel Wiberg
0bcd1cfc5f Changed includes of Windows.h to windows.h so it's possible to cross-compile on Linux 2014-02-13 14:54:42 +01:00
Daniel Wiberg
dce4c5a2c5 Added support for cross-compiling Urho3D for Windows on Linux systems. 2014-02-13 14:54:18 +01:00
Lasse Öörni
77129bb9cb Added statements for SDL modification to comply with the license. 2014-02-13 15:23:46 +02:00
Lasse Öörni
33ae3c8e58 Merge remote-tracking branch 'remotes/overminddl1/overminddl1-inputchanges' 2014-02-13 15:07:16 +02:00
aster2013
a910501027 Add ToDoxHook.lua to generate dox file from tolua++. 2014-02-13 19:49:28 +08:00
Lasse Öörni
f20e4968fc If a node is added to the scene with a zero ID (default), assign an ID. This would happen when constructing a node manually and adding it using AddChild(), instead of using CreateChild(). 2014-02-13 12:08:13 +02:00
Lasse Öörni
e44e3f7652 Only signal work items that have specified or higher priority in WorkQueue::Complete(), to prevent lower priority work item events triggering when they shouldn't (in the middle of render update.) Set explicit max priority in Octree & View items, but leave default priority to the lowest for user items. Removed a static variable from WorkQueue::PurgePool(). 2014-02-12 23:04:48 +02:00
Lasse Öörni
b496c5a012 Added a square Urho icon (same as the Android icon) to use for the samples on desktop. 2014-02-12 15:19:58 +02:00
Lasse Öörni
705d2411ba Acquire event data for work item completion only when necessary. These are pooled by the Context so it shouldn't hurt performance. 2014-02-12 15:05:26 +02:00
Lasse Öörni
1e3722e54f Merge remote-tracking branch 'remotes/alexparlett/feature/pooled-work-queue' 2014-02-12 14:11:59 +02:00
Alex Parlett
884be1c22d Exposed ability to set the tolerance before the pool will begin erasing items.
Modified the way in which pooled items are tracked to remove a number of O(n) searches.
Modified the check for duplicate items into an assert so its caught in debug but not in release.
2014-02-12 10:47:48 +00:00
OvermindDL1
13e07265db Er, right, C code, no static_cast... 2014-02-12 03:03:22 -07:00
OvermindDL1
34fb889906 Added support for the Keyboard Raw value to Urho3D. 2014-02-12 02:56:14 -07:00
OvermindDL1
9f8a1ab977 Tabs to spaces indention changes to match everything else... 2014-02-12 02:48:20 -07:00
OvermindDL1
1ea3e8b0f9 *cough* ignore the duplicate comma... 2014-02-12 02:41:44 -07:00
OvermindDL1
d7f3c9ae66 Added support for raw keyboard keys to all other platforms, passes 0 for ones where there is not a raw code that makes sense, else passes in something sensible. 2014-02-12 02:33:54 -07:00
OvermindDL1
dba4216c86 Changed SDL to support unknown keys and pass them as the unused/raw keysym field as it seems that it used to do...
Will fix Urho3D to read that field and pass it to the Variant event for the systems to process if wanted.
2014-02-12 02:12:25 -07:00
Yao Wei Tjong 姚伟忠
73732f6653 Fix luajit runtime error on 64-bit Mac OS X build. [ci skip] 2014-02-12 14:57:48 +08:00
Lasse Öörni
fd140ddb32 Minor code reorganization of the HelloGUI example. Removed SubscribeToEvents() as it was only used for 1 event and events were also subscribed to elsewhere. 2014-02-11 21:41:57 +02:00
Lasse Öörni
e0166ce900 Merge remote-tracking branch 'remotes/mike3d/master' 2014-02-11 21:06:20 +02:00
Lasse Öörni
e4008732d1 Merge remote-tracking branch 'remotes/alexparlett/feature/pooled-work-queue' 2014-02-11 20:32:50 +02:00
Yao Wei Tjong 姚伟忠
0c41be144f Use CMake path instead of native path. Closes #188. 2014-02-11 23:53:29 +08:00
aster2013
9def6c0541 Fixed typo. 2014-02-11 23:53:06 +08:00
aster2013
b7990b94da Modify tolua_isnumber and tolua_isstring function to fixed issue #182. 2014-02-11 23:49:20 +08:00
Alex Parlett
e8abdfc366 Added Pool for WorkItem SharedPtrs to save allocation every frame. Its an optional construct to allow the user to create their own pools or not use the pool if they so desire.
Below is the profiling for the Octree and View changes to pooled allocation.

Before:
UpdateDrawables                        35    0.139    0.193    0.135     4.871
SortAndUpdateGeometry          35    0.080    0.135    0.077     2.802

After:
UpdateDrawables                        21    0.082    0.172    0.078     1.735
SortAndUpdateGeometry          21    0.054    0.069    0.052     1.144
2014-02-11 15:46:05 +00:00
Mike3D
cde67d7391 Fix various order of exposition to lua 2014-02-11 13:53:26 +01:00
Mike3D
a0f42bee35 Added drag and tooltip to sample#2 HelloGUI 2014-02-11 09:49:53 +01:00
Yao Wei Tjong 姚伟忠
327ab9af76 Minor tweak to link lua/luajit tool without Urho3D dependency libs.
These changes should also reduce prerequisite for building 32-bit luaJIT VM (for Android and RASPI) on 64-bit host/build system.
2014-02-11 13:47:36 +08:00
Lasse Öörni
ffd5b7de5e Fix order of exposing AnimatedModel functions to Lua so that all overloads of SetMorphWeight() & GetMorphWeight() work. Closes #182. 2014-02-11 03:18:06 +02:00
Lasse Öörni
6dd168db5d Bullet rigidbody's inertia tensor does not depend on position, so no need to recalculate it if rigidbody position only is forced to a new value. 2014-02-10 22:50:47 +02:00
Lasse Öörni
ae626c861e Merge remote-tracking branch 'remotes/alexparlett/feature/work-item-refactor' 2014-02-10 21:39:38 +02:00
Lasse Öörni
2186cb7c49 Better fix for kinematic rigidbodies: let Bullet ask the world transform (as intended) from the scene node instead of us forcing it. You can still force rigidbody position using RigidBody::SetPosition() but it should be unnecessary. 2014-02-10 16:25:31 +02:00
Alex Parlett
51a1e84248 Changed WorkQueue to use a List<SharedPtr<WorkItem> > and ensure that it doesn't contain duplicates.
Changed AddWorkItem to take in a SharedPtr<WorkItem>.
Changed Render functions to use new WorkItem design.
2014-02-10 14:10:19 +00:00
Lasse Öörni
a833141727 Do not force RigidBody's interpolation transform when the body is kinematic to allow velocity estimation to work right for dynamic bodies colliding with the kinematic body. Thanks to Andy51. 2014-02-10 13:56:09 +02:00
Yao Wei Tjong 姚伟忠
4657518ec9 Code cleanup on error handling for ResourceCache. 2014-02-10 13:33:58 +08:00
Yao Wei Tjong 姚伟忠
b23069ffa5 Prevent any usage of windowless MessageBox. 2014-02-10 07:37:03 +08:00
Yao Wei Tjong 姚伟忠
ffe7a7699f Minor enhancement on getting optional resources and error handling. 2014-02-10 07:33:02 +08:00
Yao Wei Tjong 姚伟忠
2e8744dc01 Minor cleanup - remove redundant null check for subsystems pointer.
Some of the subsystems are registered when the Engine is instantiated and I believe their references should remain valid until the engine stops.
2014-02-10 01:45:37 +08:00
Lasse Öörni
1f91776233 Removed the Shader::SanitateDefines() function. Instead the Shader resource normalizes defines and creates aliases if necessary to ensure fast queries but to prevent duplicates. 2014-02-09 00:22:52 +02:00
Yao Wei Tjong 姚伟忠
8c898864d4 Fix Android build. Closes #181. 2014-02-08 20:46:46 +08:00
Lasse Öörni
56a246f2d6 Fixed File::IsOpen() returning false for APK files on Android. Closes #179. 2014-02-08 01:25:20 +02:00
Yao Wei Tjong 姚伟忠
c5fe4a5698 Fix LuaJIT build script to add dependency files for luajit executable.
The luajit executable should now be able to generate Lua bytecode files in Bin/ directory under the project root directory or in any directory when Urho3D SDK is installed in the filesystem.
2014-02-08 00:36:07 +08:00
Lasse Öörni
9d1187e970 Removed BlenderExporter, as it has its own repo now. Added note where it can be found. 2014-02-07 16:16:12 +02:00
Lasse Öörni
c1205473d4 Tabs to spaces + other code formatting. 2014-02-07 15:55:51 +02:00
Lasse Öörni
72de756ce3 Merge remote-tracking branch 'remotes/mightycelu/normalDistr' 2014-02-07 15:35:52 +02:00
mightyCelu
03888602bf Added scriptbindings for normal distribution generator and included the generator in the mathdefs 2014-02-07 13:57:08 +01:00
Lasse Öörni
06c93d84ef Removed Exists() check when trying to load the .lua variant of a Lua script resource (after .luc was not found.) Log an info message when a Lua script is successfully loaded, similar to AngelScript. 2014-02-07 14:41:30 +02:00
Lasse Öörni
3c2d5247c4 Added Lua numChars property. 2014-02-07 14:27:55 +02:00
Lasse Öörni
0594ff6013 Fixed shader used by Text3D generated materials. 2014-02-07 14:27:55 +02:00
Lasse Öörni
8cc5ad7fd2 Improved and unified API for Text & Text3D: get number of Unicode characters, get width of row by index, get position of character by index, get size of character by index. Store positions & sizes in the same vector to reduce amount of dynamic memory allocations. 2014-02-07 14:27:55 +02:00
aster2013
b1af7b66e3 Add resource existed check. 2014-02-07 19:29:32 +08:00
Mike3D
9b042e2ab2 Tiny fix to LuaScript.cpp 2014-02-07 08:29:44 +01:00
Yao Wei Tjong 姚伟忠
66a10f28a4 Simplify the logic for getting library revision number. 2014-02-07 13:56:49 +08:00
vertexnormal
cf07bb16ef Remove const qualifiers from method signatures GetCharPosition and GetCharSizes in pkgs/UI/Text.pkg to match actual signatures in UI/Text.h 2014-02-06 18:29:36 -07:00
mightyCelu
0579d18e76 Added generator for approximatly normal distributed values 2014-02-07 00:38:04 +01:00
Lasse Öörni
e86cf056eb Reorder Text element's internal containers last for consistency. 2014-02-07 01:06:25 +02:00
Lasse Öörni
694e41c42a If font face uses mutable glyphs, reacquire all glyphs before constructing text batch. 2014-02-07 00:40:49 +02:00
Lasse Öörni
0c76216202 Simplify and optimize Text code. If text does not change, do not look up glyphs & kerning each frame. Fix display of wordwrapped right-aligned texts. 2014-02-07 00:01:46 +02:00
Lasse Öörni
0c4466d3f3 Optimized away going through renderpath commands just to find the litbase-flag. 2014-02-07 00:00:22 +02:00
Yao Wei Tjong 姚伟忠
181351ef45 Reserve the vector's initial capacity instead of size. 2014-02-07 00:56:53 +08:00
Lasse Öörni
f2c3d8fe5d Clear persistent float screenbuffers to ensure their contents aren't undefined. This fixes the AutoExposure effect on OpenGL. Added missing float textures to OpenGL Texture::GetDataType(). 2014-02-06 17:24:17 +02:00
Lasse Öörni
809efdb4c6 Added the concept of persistent target in renderpath, which are not mixed in the rendertarget pool with other textures of same size & format. Used for the AutoExposure previous frame luminance. 2014-02-06 17:24:16 +02:00
Lasse Öörni
f0501cbeae Fixed Blur postprocess effect XML. Fixed View spamming the log with attempts to get an empty quad shader after failing to get the proper shaders once. 2014-02-06 17:24:16 +02:00
aster2013
149edbc2c5 Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-02-06 21:04:19 +08:00
aster2013
6dba57e5ad Modify comment in LuaScript module. 2014-02-06 21:03:45 +08:00
Yao Wei Tjong 姚伟忠
a5246036fb Add inherited XMLFile resource as dependency. Approximate patched size. 2014-02-06 20:40:15 +08:00
Lasse Öörni
b1a7a8dade Exposed missing QUALITY_MAX constant to AngelScript. Do not assume the default zone has black fog (when used for additive pass.) Do not reload material shaders if material quality stayed same. Separate error in D3D9ShaderVariation Create() if the owning shader has expired, as on OpenGL. 2014-02-06 13:17:31 +02:00
Yao Wei Tjong 姚伟忠
83d6d84277 Clean up GetUrho3DRevision cmake module. 2014-02-06 17:52:00 +08:00
Yao Wei Tjong 姚伟忠
f377d56070 Add a new CMake module to retrieve GIT revision number. 2014-02-06 17:29:46 +08:00
Yao Wei Tjong 姚伟忠
ede7234a77 Revert back Urho3D CMake build script. 2014-02-06 15:10:08 +08:00
Yao Wei Tjong 姚伟忠
50556078d6 Fix Raspberry-PI build.
- Add RASPI define to reduce the number vertex uniforms (total uniforms must not exceed 136).
- Exclude GCC fastmath compiler option in order to pass a check in the latest AngelScript library version.
- Remove unsupported GCC attribute to suppress the warnings when building Assimp library.
2014-02-06 15:06:21 +08:00
aster2013
d5b20da1fc Make input more free when has external window. 2014-02-06 14:25:43 +08:00
aster2013
97eab8ecf5 Update Lua API, convert SharePtr to raw pointer. 2014-02-06 13:47:55 +08:00
Lasse Öörni
8018a1f0f0 Do not comment out samplers in GLSL vertex shaders, as it's not necessary for correct compilation. 2014-02-06 01:19:27 +02:00
Lasse Öörni
3237ab3f85 Fixed image bilinear resampling. 2014-02-06 00:01:36 +02:00
Lasse Öörni
cbed709b02 Reverted the -mfpmath=sse option because of crashes inside Bullet on MinGW. 2014-02-05 22:53:43 +02:00
Lasse Öörni
381e9a04c3 Merge branch 'shader-refactor' 2014-02-05 20:54:56 +02:00
Lasse Öörni
f79c710eb3 Merge pull request #173 from wibbe/ogre-importer-mac-fixes
Fixed OgreImporter link problems on OS X
2014-02-05 16:50:21 +02:00
Lasse Öörni
af9905a891 Fixed the check to reset Texture's requested levels when loading uncompressed. Fixes uncompressed images always having mipmaps. 2014-02-05 16:19:23 +02:00
Yao Wei Tjong 姚伟忠
452ca871fb Fix site documentation update. 2014-02-05 20:28:35 +08:00
Lasse Öörni
81f8490d1b Use legacy PATH alias to be compatible with older CMake versions on OS X. 2014-02-05 12:56:56 +02:00
Lasse Öörni
46440b55fc Do not use the sh variant of getting the git revision on MSVC, even if sh is in path, as MSVC uses cmd internally. 2014-02-05 12:16:09 +02:00
Daniel Wiberg
e2cf4d97de Fixed OgreImporter link problems on OS X 2014-02-05 00:51:46 +01:00
Lasse Öörni
1c0cc050a1 Added Image pixel manipulation, resize and clear functions. Added Image profiling blocks. Closes #171. 2014-02-05 01:26:24 +02:00
Lasse Öörni
3491baafd0 Added more accurate but more expensive raycast for BillboardSet, which approximates the individual billboards as spheres and gives the billboard index as the subobject. RAY_TRIANGLE level raycast must be used to enable it. Removed the RAY_AABB_NOSUBOBJECTS raycast level, as it was not used anywhere. 2014-02-04 19:26:59 +02:00
Lasse Öörni
45003707c0 Fixed substituteRenderTarget_ possibly being uninitialized. 2014-02-04 13:36:21 +02:00
Lasse Öörni
e0d5c7e02e Fixed D3D9 debug build. 2014-02-04 13:27:04 +02:00
Lasse Öörni
85146c5317 Merge branch 'master' into shader-refactor 2014-02-04 11:30:03 +02:00
Lasse Öörni
cc6e6504f9 Simplified shader source code modification. 2014-02-04 02:57:13 +02:00
Lasse Öörni
2b95618cdb Adapted AutoExposure & BloomHDR shaders. Improved GLSL commenting out of the unnecessary shader function. 2014-02-04 02:25:00 +02:00
Lasse Öörni
5bc98f68d3 Exposed Texture2D::Load() to Lua. Added Detach() function to SharedPtr which will safely detach the pointer without destroying the object. To only be used in scripting integration. Fixed loading of texture with compressed data first and then uncompressed. 2014-02-03 23:50:03 +02:00
Lasse Öörni
4d6b9c2061 Prevent division by zero. 2014-02-03 23:00:40 +02:00
Lasse Öörni
b76823a317 Added height fog mode boolean to Zone. Apply height fog shaders automatically. Changed height fog parameters to be relative to the zone node. 2014-02-03 22:51:27 +02:00
aster2013
f2b0bb725d Update pkgToDox.lua, add global property section. 2014-02-03 21:43:09 +08:00
aster2013
4f91bf9307 Add support for compiled Lua file(with luc extension). 2014-02-03 21:10:56 +08:00
Lasse Öörni
dc5f4a1834 Merge branch 'master' into shader-refactor 2014-02-03 13:57:52 +02:00
Lasse Öörni
0610520768 Quads that don't read the viewport should not begin the pingpong chain. Fixes #167. 2014-02-03 13:24:53 +02:00
Lasse Öörni
eecb226ef7 Determine presence of sh.exe in path manually to see which command should use to generate the GIT revision. Closes #168. 2014-02-03 11:58:06 +02:00
aster2013
8ab5e56c9c Move subsystem access function to subsystem's pkg file, add global readonly property for each subsystem. 2014-02-03 16:52:22 +08:00
aster2013
40354bcd87 Fixed typo in Renderer.h. 2014-02-03 16:47:41 +08:00
aster2013
4b13c8598e Lua API Update. 2014-02-03 15:08:20 +08:00
Lasse Öörni
f83c1d64f0 Use the -static switch on MinGW to prevent dependency on an external libpthread.dll on some MinGW distributions. 2014-02-03 02:59:15 +02:00
Lasse Öörni
fccf4fbe96 Changed the Direct3D library fallback mechanism: on MinGW the SDK is never searched for, because if it is found, the libraries likely are incompatible. Instead the fallback libraries are set in Urho3D-CMake-magic.cmake if the SDK was not found or not searched for. Documented the use of MinGW-w64 to enable a fully functional Direct3D build. 2014-02-03 02:48:11 +02:00
Lasse Öörni
92c8144621 Comment out sampler uniforms in GLSL vertex shaders. 2014-02-03 01:53:44 +02:00
Lasse Öörni
0bcb95e6a2 Refactored techniques + more GLSL & HLSL shaders. Fixed shader code loading for cases where only vertex or pixel shader source is present. 2014-02-03 00:19:13 +02:00
Lasse Öörni
c3c177525d Removed the "view texture" abstraction, which is unnecessary now, as all deferred renderpaths write directly to the destination rendertarget. Fixes #166. 2014-02-02 21:44:12 +02:00
Lasse Öörni
3e14caf89e Load/save cached binary HLSL shaders. Report SM3 supported on OpenGL to simplify code. 2014-02-02 21:43:50 +02:00
Lasse Öörni
782c3ac54e Removed the "view texture" abstraction, which is unnecessary now, as all deferred renderpaths write directly to the destination rendertarget. Fixes #166. 2014-02-02 19:15:11 +02:00
aster2013
eda1b8c16f Update Lua API, Add Load and Save function in Resource. 2014-02-02 23:29:19 +08:00
aster2013
947999aa71 Add GetDepth in Lua API. 2014-02-02 22:51:52 +08:00
Lasse Öörni
70122ed481 Refactored LitParticle shader & technique. Try to reduce error prints for missing shaders in Renderer::GetShader(). 2014-02-02 15:12:13 +02:00
Lasse Öörni
caf080ecbb Initial refactoring of Direct3D9 shaders. ShaderCompiler removed. Bytecode not cached into files yet. 2014-02-02 14:54:46 +02:00
Lasse Öörni
db713bdba2 Avoid string allocations during View::Define() and Renderer::GetShader(). 2014-02-02 00:31:45 +02:00
Lasse Öörni
07f06563bc Optimized Renderer::GetShader() so that caching shader variation pointers becomes unnecessary for the most part. 2014-02-01 19:37:42 +02:00
Lasse Öörni
ea334e4393 Merge branch 'master' into shader-refactor 2014-02-01 16:14:11 +02:00
Lasse Öörni
6ccb31f6f5 Update to Bullet 2.82. 2014-02-01 15:59:25 +02:00
Lasse Öörni
d50403798a Update AngelScript to 2.28.1. 2014-02-01 15:05:53 +02:00
Lasse Öörni
6d5ddc23e0 Bump the copyright for 2014. 2014-02-01 14:37:21 +02:00
Lasse Öörni
d1a8f38e93 Return in Urho3DPlayer if the script language is not supported to prevent showing two error dialog boxes. 2014-02-01 14:37:20 +02:00
Lasse Öörni
fbda3de204 Enable also SSE math for GCC when SSE instructions are enabled. 2014-02-01 14:37:20 +02:00
Lasse Öörni
50c54346eb Check for not overshooting the target when moving in the Navigation sample. 2014-02-01 14:37:19 +02:00
Lasse Öörni
9f34d74cce Fixed taking windowed multisampled screenshots on Direct3D9. 2014-02-01 01:46:46 +02:00
Lasse Öörni
be060dfb8a Fix Jack looking in weird direction if teleporting to above or below. 2014-02-01 01:22:40 +02:00
Lasse Öörni
5062dbba42 Sanitate screenshot name in the samples to ensure saving it succeeds. Prepend the executable path properly. Flip image in OpenGL Graphics::TakeScreenShot() instead of having the user to do it. 2014-02-01 01:07:03 +02:00
Lasse Öörni
045c68957d Convert Image back to spaces instead of tabs. Ensure that the file path is in native format before saving using STB / JO. 2014-02-01 01:05:27 +02:00
Lasse Öörni
2af8244543 Convert the Navigation sample to move the Jack character from current position to new target. Shift + LMB to teleport. 2014-02-01 01:04:50 +02:00
Mike3D
75321c632d Extended Sample with ability to set window title and icon and take screenshots 2014-01-31 16:56:50 +01:00
Mike3D
0e3389eb7b Update Sample.h 2014-01-31 16:55:06 +01:00
Mike3D
431133127f Added follow path function. RecalculatePath()is no longer used but kept anyway. 2014-01-31 16:44:06 +01:00
Mike3D
188dddf601 Update Navigation.h 2014-01-31 16:39:49 +01:00
Mike3D
33b2244204 Fixed FindNearestPoint() and MoveAlongSurface() for angel script 2014-01-31 16:34:53 +01:00
Lasse Öörni
417e62f106 Detect deferred light volume batch and subtract camera position only in that case to allow the pixel shader light parameters (light position, shadow matrices etc.) to also be used in forward rendering if necessary. 2014-01-31 10:27:20 +02:00
Lasse Öörni
1a1fe9a24f Optimize Shader::SanitateDefines(). In debug mode, check that shader code uses each define. 2014-01-31 01:45:25 +02:00
Lasse Öörni
3004b08f66 Continued shader refactoring.
- Removed heightfog techniques, which will be replaced with in-engine shader variations
- Fixed LitSolid shader and some basic techniques
- If Pass specifies its own shaders, the defines from Technique aren't used
- Technique can specify the alphamask property globally for passes to avoid repetition
2014-01-31 00:35:10 +02:00
Lasse Öörni
e0f391b0fc Started shader refactoring.
- Removed ShaderParser
- Shader variations are requested by defines
- Shader class does not need to be render API specific
- Added shader defines to Pass & RenderPathCommand
- GLSL vertex/pixel shaders compile from the same file
- Converted the Basic & Stencil GLSL shaders
2014-01-30 23:55:39 +02:00
vertexnormal
d5f87d9930 Expose Image constructor to LuaScript 2014-01-30 10:36:16 -07:00
Lasse Öörni
250d1ced11 Eliminated the static Context pointer from LuaScript subsystem. Removed classes which aren't actual subsystems from Context.pkg. 2014-01-29 20:49:23 +02:00
aster2013
d1c3d96844 Remove context from object's constructor, make all constructor look like AngleScript, rename file. 2014-01-29 23:14:09 +08:00
Lasse Öörni
dda2683a21 Removed assert in MessageBox constructor if layout file is missing. Fix null exception in Editor which makes it impossible to quit if the MessageBox layout file is missing. Closes #160. 2014-01-29 12:19:44 +02:00
Lasse Öörni
26320f35af Added per-char ToUpper() & ToLower() functions to script. Show also texture unit numbers in the material editor. 2014-01-29 01:45:43 +02:00
Lasse Öörni
c6b906a822 Distinguish between cube/3D textures in renderpath commands by the texture unit. 2014-01-29 00:44:02 +02:00
Lasse Öörni
cb0f3b7109 Fix for compiling in D3D9 mode on mingw-w64. 2014-01-28 23:05:06 +02:00
Yao Wei Tjong 姚伟忠
423d250def Code cleanup. [ci skip] 2014-01-28 23:41:19 +08:00
Yao Wei Tjong 姚伟忠
a8392509ae Move the inheritance logic to XMLFile class. Revert RenderPath class.
- Fix the original XMLFile used in the inheritance from being patched in the resource cache.
- Support multi-level inheritance.
- Support for all classes that use XMLFile for loading.
2014-01-28 22:50:29 +08:00
Yao Wei Tjong 姚伟忠
5987685834 Refactor RenderPath description XML to support inherit/patching mode. 2014-01-28 20:15:18 +08:00
Lasse Öörni
939ca2d47b Code formatting. 2014-01-28 02:53:23 +02:00
Lasse Öörni
d2117ba01f For now do not attempt to use 3D textures on OpenGL ES. 2014-01-28 02:51:13 +02:00
Lasse Öörni
5543ca0974 Replace Android default icons. Closes #156. 2014-01-28 02:34:24 +02:00
Lasse Öörni
f958974430 Reorder AngelScript API documentation to match Lua documentation (classes - enums - globals). Sort each section in AngelScript API documentation. 2014-01-28 02:27:24 +02:00
Lasse Öörni
4ca276930a Merge remote-tracking branch 'remotes/mike3d/master' 2014-01-28 01:32:39 +02:00
Lasse Öörni
8fafdbf842 Ported the CharacterDemo touch input code to C++. 2014-01-28 00:40:36 +02:00
Mike3D
72bd04ea47 Split Global Functions / Enums 2014-01-27 21:26:47 +01:00
aster2013
073854bfb3 Update Audio Lua API. 2014-01-27 23:05:52 +08:00
aster2013
c8fbcf1551 Refactor push PODVector<UserType> functions. 2014-01-27 22:29:36 +08:00
aster2013
38c8f19fb4 Convert all Vector<T> and PODVector<T> to Lua table. 2014-01-27 22:07:57 +08:00
primitivewaste
d4fb9a9450 Add Zone height fog support, HeightFog shader option and techniques.
Add GammaCorrection and AutoExposure post processing shaders.
Add near & far clip PS uniforms.
Add 3d texture support and (3d LUT based) ColorCorrection post processing shader.
Add HDR renderpath support, BloomHDR, Blur and Tonemap post processing shaders.
2014-01-26 22:22:14 -08:00
Yao Wei Tjong 姚伟忠
5a162b8551 Another attempt to fix configuration for multiple Urho3D libs found.
[ci skip]
2014-01-27 13:46:48 +08:00
Lasse Öörni
c0d1c19e25 Reworked Octree::Raycast() threading criteria once more: thread if will use 2 or more raycast work items. 2014-01-27 02:23:07 +02:00
Lasse Öörni
c162f2ebf6 Fix escalating UI element priority due to tooltip / popup forcing themselves to max. priority. Closes #154. 2014-01-27 00:50:13 +02:00
Lasse Öörni
df941851d9 Slight reorganization to the Touch utility code to not depend on a Character node. Added missing DebugNew.h include to new classes. 2014-01-27 00:35:01 +02:00
Lasse Öörni
76292ef63e Centralize allocation of event data variant maps to Context to avoid constant dynamic memory allocation. 2014-01-26 19:11:41 +02:00
Lasse Öörni
9df9941de0 Added Lua bindings for querying drawables from Octree via a bounding shape, similar to AngelScript. Change Octree & PhysicsWorld raycast/query Lua bindings so that a PODVector object with the results is returned, instead of the user having to provide one. 2014-01-26 16:32:21 +02:00
Lasse Öörni
25a887cfe4 Fix crash in 15_Navigation.lua when adding and removing objects without having a path defined yet. Cleanup Navigation sample code. 2014-01-26 16:32:21 +02:00
Lasse Öörni
691408dddf Removed unnecessary include. 2014-01-26 14:13:42 +02:00
Lasse Öörni
257c256d9d In XML mode, allow editing of UnknownComponent attributes as strings. This is as far editing them can go without adding extra data to the whole XML serialization. Closes #149. 2014-01-26 14:13:42 +02:00
Lasse Öörni
989aae2e31 Added a warning when an UnknownComponent is created. 2014-01-26 14:13:42 +02:00
Lasse Öörni
4f64f21915 Increased the threshold for justifying a threaded Octree raycast. Exposed PhysicsWorld::Raycast() to Lua. 2014-01-26 14:13:42 +02:00
Yao Wei Tjong 姚伟忠
fdae68639c Setup to link against matching Urho3D library version. Fixes #152.
Existing CMake build scripts has been configured to generate different Urho3D library name based on active build configuration. However, when finding and using the library itself, the scripts did not differentiate the two versions and could cause problem with wrong version of the library is being erroneously linked against.
2014-01-26 15:15:25 +08:00
Lasse Öörni
6b38a1cff7 Bruteforce a nonsense component name from hash if necessary so that XML and binary save of an UnknownComponent are compatible. 2014-01-26 02:40:59 +02:00
Lasse Öörni
dd075db33b Added UnknownComponent mechanism for dealing with unregistered components in scene load/save. For now attributes are not editable. Related to issue #149. 2014-01-26 01:47:52 +02:00
Lasse Öörni
d2a7173e5f Reset UI cursor shape during BeginFrame event, which allows custom logic to set it per frame. Apply OS cursor shape only once during UI rendering to avoid flicker (and potential loss of performance) 2014-01-25 20:56:43 +02:00
Lasse Öörni
25cdbaea97 Do not mouse scroll the camera view when cursor is over a UI element because the element may be taking the wheel input also. 2014-01-25 15:38:38 +02:00
Lasse Öörni
87a1604860 Set forced max. priority for the Menu/DropDownList popup so that it's more reliably displayed in front. 2014-01-25 01:42:21 +02:00
Lasse Öörni
39e13d49c8 Renamed the plane intercept parameter to "d" and reversed its sign so that it fits the conventional plane formula ax + by + cz + d = 0. 2014-01-24 01:26:10 +02:00
Lasse Öörni
6219289e9f Optimize text batch preparation by avoiding dynamic allocation each frame. Use last glyph if rendering the same glyph several times in a row. Changed repeated postincrement of a destination pointer to indexing where applicable. 2014-01-24 01:10:58 +02:00
Lasse Öörni
9486d17667 Bump the depth constant bias in all shadowed directional light samples to work better on mobile platforms. Disable Urho3D logo in samples when using touch controls. 2014-01-23 16:07:08 +02:00
Lasse Öörni
063e7e5aa2 Merge remote-tracking branch 'remotes/mike3d/master' 2014-01-23 11:32:30 +02:00
Lasse Öörni
20b67638e3 Hack fix for render-to-texture failing on iOS. 2014-01-23 01:44:00 +02:00
Lasse Öörni
eb9bc8847f UI drawing code cleanup. 2014-01-22 22:52:01 +02:00
Lasse Öörni
7d4d956691 Check if GLES2 device supports 24-bit depth texture, or 24/8-bit depth+stencil through extensions. 2014-01-22 22:52:01 +02:00
Lasse Öörni
7a7e86589b Optimized drawing of color-modified UI quads. UIBatch has new function SetColor() which can be used before drawing with modified color, and which performs the uint-conversion only once. This overrides the element's gradient if any. 2014-01-22 22:52:00 +02:00
Lasse Öörni
0a97b5824c Minor Math library cleanup. Inline short Ray functions. 2014-01-22 22:52:00 +02:00
Mike3D
187e847367 Update InputAPI.cpp
Expose TouchState lastPosition to script
2014-01-22 20:47:44 +01:00
Yao Wei Tjong 姚伟忠
f5db8dd8fd Only add D3D include directories for MSVC. Fixes #143. 2014-01-22 14:30:24 +08:00
Lasse Öörni
fa8ac788c8 Fixed uninitialized default value of Camera's clip plane. 2014-01-22 01:36:54 +02:00
Lasse Öörni
d723bef62b On OpenGL ES 2.0, create depth renderbuffers in explicit GL_DEPTH_COMPONENT16 format, as GL_DEPTH_COMPONENT is unsupported on some devices. Possibly a fix for #140.
For better performance, avoid backbuffer resolve to texture on OpenGL ES 2.0 and instead prefer to render into a texture if the viewport contents need to be read.
2014-01-22 00:52:16 +02:00
Lasse Öörni
dbdfce095f If window is not resizable, do not maximize it at the default resolution (1024x768) to keep the border intact. 2014-01-21 18:38:29 +02:00
Lasse Öörni
030f890ed5 Further fixes and optimizations to View render target pingpong handling. Update Material memory use when modified programmatically. 2014-01-21 18:00:54 +02:00
Yao Wei Tjong 姚伟忠
48eb0497df Rename var name from <package>_INCLUDE_DIR to <package>_INCLUDE_DIRS.
See http://urho3d.prophpbb.com/topic9.html.
2014-01-21 15:57:07 +08:00
Lasse Öörni
3718b3dc29 Set currentRenderTarget for safety in case the renderpath has no commands. 2014-01-21 01:12:10 +02:00
Lasse Öörni
4aeeefdd38 Safety check to skip renderpath commands with no output names, could cause out-of-bounds indexing. 2014-01-21 00:41:13 +02:00
Lasse Öörni
30455bfba2 Rewrote viewport resolve / pingpong logic in View. Optimizes away unnecessary framebuffer copies and fixes #138. 2014-01-21 00:26:57 +02:00
Lasse Öörni
1c92bc3a09 Only find the DirectX SDK when compiling with Visual Studio, as the headers are incompatible with MinGW. Fixed export statements for MinGW. Closes #142. 2014-01-20 22:54:16 +02:00
Lasse Öörni
112102cc83 Perform all plane transforms through Matrix4 multiply to ensure correctness. 2014-01-20 19:50:54 +02:00
Lasse Öörni
40d759fbae New skybox from Vladimir. Set fog to white in scenes using the skybox. Water scene lighting slightly brightened to match the skybox. 2014-01-20 12:01:38 +02:00
Lasse Öörni
18e2349ae1 Added script bindings for the new SDL controller constants. Updated Input documentation. 2014-01-20 10:19:50 +02:00
Jordan Patterson
1a49c6ebfc Add support for SDL2 GameControllers 2014-01-19 22:03:36 -07:00
Lasse Öörni
0697ad0750 Improved Spline attribute editing. Moved Spline to Logic category in the editor. 2014-01-20 00:21:13 +02:00
Lasse Öörni
71e9559bee Merge remote-tracking branch 'remotes/alexparlett/feature/spline' 2014-01-19 23:54:39 +02:00
Lasse Öörni
a20d38b13d Code formatting. 2014-01-19 23:51:26 +02:00
Lasse Öörni
d9bf3d9731 Merge remote-tracking branch 'remotes/hjmediastudios/master' 2014-01-19 23:40:24 +02:00
Lasse Öörni
669aa04ef2 Find DirectX SDK on Windows also in OpenGL mode as SDL depends on files like dsound.h. 2014-01-19 23:26:55 +02:00
Lasse Öörni
8c26cf6c45 Export the NvOptimusEnablement variable to prefer NVIDIA GPU on switchable GPU systems. Closes #139. 2014-01-19 23:26:15 +02:00
Yao Wei Tjong 姚伟忠
115b4a8b4b Fix spacing. [ci skip] 2014-01-20 01:25:07 +08:00
Yao Wei Tjong 姚伟忠
29594b7170 Clean up Urho3D-CMake-magic cmake module. 2014-01-20 01:20:34 +08:00
Yao Wei Tjong 姚伟忠
40eeac7600 Merge branch 'ninja-clang' of github.com:evolarium/Urho3D. 2014-01-20 01:15:01 +08:00
Alex Parlett
fb690e6838 Added Lua Bindings.
Added the ability to set how far along the spline the parent node has traveled.
Added the ability to get the Vector3 for the furthest point along the Spline the parent node has traveled.
Changed Length calculations so that they are performed on a Move call if a push or pop has been called since the last Move call or when the Control Nodes are set from either serialization or from the function.
Removed detach and attach. Attach can be replaced by calling GetPosition and using a SmoothMove or Lerp to get there.
2014-01-19 15:13:02 +00:00
Lasse Öörni
1ace697dc9 Added water example with reflection/refraction. Improved the water shader to include proper fresnel calculation and a noise map. Closes #120. 2014-01-19 15:47:56 +02:00
Nick Royer
9fa11144a7 Commit Message 2014-01-18 22:23:28 -06:00
Jordan Patterson
a5f596c6b5 Use color Clang diagnostics when using Ninja build system 2014-01-18 20:44:23 -07:00
Nick Royer
9985f0a122 Added a convenience function to find the angle between two vectors. 2014-01-18 19:01:34 -06:00
Lasse Öörni
a26d5b98d5 Added example of manual bone control to CharacterDemo. Added a version of Skeleton::GetBone() that takes a C string parameter to avoid ambiguity. 2014-01-18 23:05:52 +02:00
Lasse Öörni
eb4e99457c Code cleanup. Removed Camera functions to return forward, right, up vectors as they are now also in Node. Added Lua property accessors for Node up/right vectors. Exposed SmoothStep() to script. Modified Node::LookAt() to use the new Quaternion function. Updated credits. 2014-01-18 20:41:46 +02:00
Nick Royer
432b9d3645 Added scripting APIs for the previous convenience functions 2014-01-18 10:40:09 -06:00
Nick Royer
0e84a2a2d9 Added a few math and node convenience functions 2014-01-18 10:19:43 -06:00
Lasse Öörni
4f9287b7c8 Added AssetImporter options. Skip copy of zero-sized textures. In FileSystem::CopyFile(), do not overwrite destination file if opening the source file fails. Closes #129. 2014-01-18 16:15:38 +02:00
Lasse Öörni
b1573df336 Fixed PhysicsWorld::DrawDebugGeometry() not exposed to Lua. Closes #133. 2014-01-18 14:48:43 +02:00
Lasse Öörni
cadb503976 Added transform by matrix functions to Plane. Added camera clipping plane support. Added basic reflective+refractive water shader + material. 2014-01-17 19:51:06 +02:00
Alex Parlett
0210c3ffdf Changed Spline::Move to use timeStep passed in from update events.
Added method to get an arbitary position along the Spline by specifying the factor "t" from 0.f - 1.f.
2014-01-17 13:54:17 +00:00
Alex Parlett
f2d1c297a2 Add a simple spline component with Bezier Curve Interpolation 2014-01-16 23:57:39 +00:00
Lasse Öörni
6d38f23467 Added conversion of Plane to Vector4. 2014-01-16 15:57:32 +02:00
Lasse Öörni
3343e52986 Added IsInside() to Rect & IntRect. Closes #128. 2014-01-16 15:57:31 +02:00
Lasse Öörni
57b81bf685 Take audio buffer length properly into account when calculating SDL fragment size. Fix mixing one sample less in SoundSource mixing routines, which would lead to audio artifacts. Closes #130. 2014-01-16 15:57:31 +02:00
Lasse Öörni
3553b287ac Reflection plane support in Camera. Reflection plane clipping not yet implemented. 2014-01-16 15:57:31 +02:00
Lasse Öörni
a7d8f0fd18 Added reflection related functions to Plane. Fixed rendering a SkyBox from multiple views during the same frame. Better error message in ShaderCompiler if input file can not be opened. 2014-01-15 22:27:35 +02:00
Lasse Öörni
7fbefe6f43 Added AssetImporter option to restore earlier behavior, to flatten scene hierarchy in scene mode. 2014-01-15 01:08:51 +02:00
Lasse Öörni
604c8714aa Changed AssetImporter to save the relevant scene node hierarchy in scene mode, instead of just nodes containing meshes.
Added node (prefab) save mode to AssetImporter.
Improved "Scene model" documentation page to mention scene load/save and prefab instantiation.
2014-01-14 23:51:35 +02:00
Lasse Öörni
f9a6235f47 Added "refract" pass to default renderpaths. This has the rendered scene so far (opaque + sky) available in the environment texture unit.
Renamed the "prealpha" pass to "postopaque" (will break custom techniques and renderpaths referring to prealpha.)
If a scene pass has nothing to render, skip it completely during View processing, including rendertarget allocations. This makes the refract pass free when there is no refractive geometry.
2014-01-14 01:09:15 +02:00
Lasse Öörni
7636bd6310 Fixed depth getting unnecessarily reset when ping-ponging rendertargets for a pass that both reads & writes the scene viewport.
Do not set null material textures to allow pass-global textures to persist throughout a rendering pass.
2014-01-13 23:11:37 +02:00
Yao Wei Tjong 姚伟忠
e91307ce51 Clean up build scripts to adhere to format convention. 2014-01-13 17:36:00 +08:00
Yao Wei Tjong 姚伟忠
be85ee454c Add AngelScript header into built-in 'install' target. Closes #121. 2014-01-13 14:11:14 +08:00
Lasse Öörni
583065e598 Minor code formatting. Added mention of RFC 5261 to XMLFile::Patch() Doxygen comment. 2014-01-12 14:25:13 +02:00
Lasse Öörni
789774f292 Merge remote-tracking branch 'remotes/alexparlett/feature/xml-diff-patch' 2014-01-12 14:11:41 +02:00
Alex Parlett
d0a4a0ce87 Adds the ability to patch together two XMLFiles using the [RFC 5261](http://tools.ietf.org/search/rfc5261) with handling of Add, Replace and Remove for nodes and attributes. No handling has been added for namespace::prefix modifications at the moment. Use pass by value on sub-functions of add since gcc thinks there is no suitable conversion, where msbuild optimizes it out.
There are some gotchas with this, XML does not allow two text nodes (pcdata or cdata) to follow straight after each other, in those cases the two nodes will be merged with their text combined either at the start or end depending on the positioning of the two nodes. Secondly you can only select single nodes at a time, however xpath provides a way to specify a certain node if a query would return using more than one like so
```xml
<add sel="/doc/data[1]>...</add>
```
This would select the first data element that was found under doc.
2014-01-12 10:31:53 +00:00
Lasse Öörni
7458a01f21 Delete the event handler object in case of null sender (failed subscribe.) to avoid memory leak. Closes #117. 2014-01-11 15:48:22 +02:00
Yao Wei Tjong 姚伟忠
dbb8d077da Ensure engine testing could terminate itself every time.
One of the CI build today stalled when performing the testing. The running application failed to time out. As crazy as its sound that could only mean the high precision counter reaches exactly zero! Murphy Law is proven correct once again.
2014-01-10 17:41:52 +08:00
Yao Wei Tjong 姚伟忠
7f95216d3e Refactor to use new logging macros with formatting. 2014-01-10 14:49:53 +08:00
Lasse Öörni
712345aa56 Added log macros with formatting. Closes #114. 2014-01-09 22:54:25 +02:00
Yao Wei Tjong 姚伟忠
029d5a9197 Add debug postfix for main executables on Windows platform. Closes #113. 2014-01-09 15:50:49 +08:00
Yao Wei Tjong 姚伟忠
9f0261c643 Fix Android build using Urho3D as external library.
Also:

- Enhance generated Eclipse project setting file to additionally use gcc/g++ error parser.

- Enhance cmake_gcc.sh script to fallback to find alternative CMake toolchains directory.

- Enhance Rakefile:
    - New scaffolding task to create new project using Urho3D as external library. At the moment only works in Unix-like platforms.
    - Build in Debug mode instead of Release mode as it should capture more potential issues.
2014-01-08 22:08:57 +08:00
Lasse Öörni
56c91aa1a0 Added Assimp logging option to AssetImporter. 2014-01-08 15:47:59 +02:00
Yao Wei Tjong 姚伟忠
59b2b02888 Fix build using Urho3D as external library. Closes 112.
Add test cases in Travis CI to test build using Urho3D as external library in external (non Urho3D) project.
2014-01-07 22:03:32 +08:00
Yao Wei Tjong 姚伟忠
1a6970dcf2 Prevent message box crashes due to corrupted or missing data dir.
Delay factories debug tests after all the subsystems and resource paths are added.
Register MessageBox object factory.
2014-01-07 14:58:35 +08:00
Lasse Öörni
32c86e8237 Added necessary include files to not rely on includes in Precompiled.h. 2014-01-06 15:42:42 +02:00
Lasse Öörni
ebd03d08db When removing a resource dir, remove the FileWatcher with matching path instead of relying on the indexing. 2014-01-06 02:10:31 +02:00
Lasse Öörni
2e01ca5e67 Sanitate resource dir similarly when adding and removing it to ensure removing works properly. 2014-01-06 00:55:51 +02:00
Lasse Öörni
745fdb1416 Exposed ResourceCache::GetFile() to Lua. The file must be manually deleted once no longer needed. 2014-01-05 19:34:41 +02:00
Yao Wei Tjong 姚伟忠
2565755905 Misc. tweaks on Editors and minor refactoring. 2014-01-05 23:20:45 +08:00
Lasse Öörni
d1bbe45515 Added SDL on-screen keyboard support. 2014-01-05 01:14:27 +02:00
Yao Wei Tjong 姚伟忠
0f00ac7ad5 Fix scrollbar button so it does not get focus mistakenly.
ListView class has two ScrollBar instances (so it has 4 internal buttons) which made it difficult to tab-out before this fix.
2014-01-04 18:36:38 +08:00
Yao Wei Tjong 姚伟忠
fcb2f52035 Refactor and minor improvement on ListView class.
Handle arrow keys to modify selections even when there is no selection yet initially.
2014-01-04 14:59:44 +08:00
Lasse Öörni
7f061206dc Add the byKey parameter to script bindings of SetFocusElement(). 2014-01-03 21:32:53 +02:00
Lasse Öörni
387c01fb3b Merge remote-tracking branch 'remotes/reattiva/ui_practices' 2014-01-03 20:41:50 +02:00
Yao Wei Tjong 姚伟忠
42792b0bd2 Minor improvement and bug fix on some of the UI elements.
Also:
- Focusable UI elements appears with a consistent visual "focus rect" when in focus.
- Make more UI elements focusable. It is now possible to cycle through all the editable elements using Tab key (in general dialog window or in Attribute Inspector).
- Closes #94.
2014-01-03 22:05:25 +08:00
Lasse Öörni
c636b092e2 Restored previous Geometry::GetRawData() function (though it leads to duplicated code) to prevent unnecessary copying of shared array pointers. 2014-01-03 10:31:35 +02:00
Lasse Öörni
5f535f7999 Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-01-03 10:17:57 +02:00
Lasse Öörni
668772bb50 Added PhysicsWorld::RemoveCachedGeometry() function to manually invalidate cached collision geometry of a changed model. Added watching for CollisionShape model live reload. Removed internal but public functions from the Lua physics API. 2014-01-03 10:15:54 +02:00
Lasse Öörni
6878e19c67 Refactored check for dynamic buffers into a function. 2014-01-03 09:23:29 +02:00
Lasse Öörni
9aed42faf5 Merge remote-tracking branch 'remotes/grking/master' 2014-01-03 09:17:04 +02:00
Yao Wei Tjong 姚伟忠
65ced72eb9 Enhanced focusable button to be drawned differently when focused.
Also:
- Revert back base Button class to non-focusable as it turns out it has negative side effect (e.g toolbar button becomes "sticky"). Create new focusable button style instead.
- Prevent double Alt+F4 from terminating Editor with unsaved changes, bypassing warning message box. System exit request is in fact ignored when there is any modal window waiting for user input.
2014-01-03 15:14:33 +08:00
Lasse Öörni
363945b729 Instead of storing Geometry pointers, store shared array pointers for triangle mesh collision data. This protects against the original Geometry resizing its data. 2014-01-03 09:13:56 +02:00
Graham King
3b25b25d47 Don't cache geometry with any dynamic vertex buffers. 2014-01-03 01:05:45 +00:00
Lasse Öörni
dfe3cab012 Restructuring of non-ScriptInstance script object event handling to ensure that handlers for individual objects don't overwrite each other. 2014-01-03 01:22:30 +02:00
Alex Parlett
18cb81b750 Add the ability to allow pure script objects that are not created through a ScriptInstance to handle events. This works like it currently does using:
SubscribeToEvent("Foo","FooHandler");

Where if called inside a procedural function the ScriptFile will handle it, if called inside an object if that object was created through a ScriptInstance that ScriptInstance will handle the event, otherwise the ScriptFile associated with the current script module will handle it.
2014-01-02 16:45:39 +00:00
reattiva
2ac0d8955e On LineEdit move around the borders of current selection. 2014-01-02 17:27:20 +01:00
reattiva
8f38b4b702 Move the focus backwards with SHIFT+TAB. 2014-01-02 17:27:19 +01:00
reattiva
6e9a0fb715 Select all the text when moving focus on a line edit by TAB key. 2014-01-02 17:27:18 +01:00
Yao Wei Tjong 姚伟忠
9f0ae5cea6 For Travis CI - add NinjaSnowWar into test cases. 2014-01-02 22:46:12 +08:00
Yao Wei Tjong 姚伟忠
92cb20e9f5 Enhance Editor to warn user actions that can potentially lose data.
Also:
- Change how the UIElement::GetNumChildren() method is being exposed to scripting to avoid confusion with "numChildren" getter.
- Make Button element focusable. Focused button accepts enter key or space key as click. TODO: to visually show focused button differently than non-focused ones.
- Fix MessageBox dialog window centering issue.
2014-01-02 22:09:05 +08:00
Yao Wei Tjong 姚伟忠
41add82c6e Fix the wrong return data type for MessageBox::GetWindow(). 2014-01-02 02:16:26 +08:00
Yao Wei Tjong 姚伟忠
3383bf109b Expose MessageBox's window element to scripting for manipulation. 2014-01-02 01:55:25 +08:00
Lasse Öörni
a7bc939b7d Only use item binary search when container is in vertical layout mode. 2014-01-01 18:34:16 +02:00
Yao Wei Tjong 姚伟忠
c776573796 Add new MessageBox class for showing short messages in a modal window.
Also:
- Enhance Editor to show error message box when saving action fails.
- Cleanup DefaultStyle.xml and at the same time create more common styles for reuse.
- Remove unused member variable in FileSelector class.
- ListView class does not assume vertical layout of its items. In theory we could have horizontal layout items if it is being styled as such.
- Prevent UIElement XML serialization to save invalid "UIElement" style to the final output. Fix invalid style (if already exist in the loaded UI layout) to cause error in attribute filtering when serializing.
2014-01-01 18:14:30 +08:00
Yao Wei Tjong 姚伟忠
4458725fed Prevent unnecessary generation of Urho3D.h. Closes #98.
Also attempt to fix the project created by cmake-gui using non-standard build directory to find the generated Urho3D.h file.
2014-01-01 16:26:44 +08:00
Lasse Öörni
358d9c2849 Added default tooltip delay to UI, which will be used if the tooltip's own delay is zero. Use seconds for tooltip delay to match eg. the doubleclick interval. Removed layout from the editor's tooltip root element to prevent it resizing in unwanted fashion. 2013-12-30 14:28:46 +02:00
Lasse Öörni
8ca35d3794 Allow selecting DropDownList items with arrow keys. 2013-12-30 13:10:14 +02:00
Yao Wei Tjong
6dc9c46af1 Merge pull request #96 from JTippetts/master
Add Lua binding to Skeleton::GetBone(String& name) for getting a bone by name.
2013-12-29 16:35:08 -08:00
Yao Wei Tjong 姚伟忠
0fb12e5883 For Travis CI - revert back call to make test pending investigation. 2013-12-30 08:32:44 +08:00
Yao Wei Tjong 姚伟忠
088eef9e60 Add simple test cases as part of the Travis CI build.
Also fix Editor in case-sensitive platforms.
2013-12-30 07:48:31 +08:00
vertexnormal
7dde59fbb1 Revert CMake-magic to upstream 2013-12-29 14:56:12 -07:00
Yao Wei Tjong 姚伟忠
01b86be43d Fix engine crashes when parsing invalid '-log' argument value. 2013-12-29 23:10:36 +08:00
Lasse Öörni
ebae184947 Add ToolTip.pkg. 2013-12-29 16:45:33 +02:00
Lasse Öörni
5b8f5e290b Normalize name of tooltip class to ToolTip to match the filename.
Parent tooltip to root element to ensure display on top.
Improvements to UI::Update() to allow element reparenting and remove during update.
2013-12-29 16:44:33 +02:00
Lasse Öörni
e62b4832b3 Merge remote-tracking branch 'remotes/alexparlett/ui-tooltip' 2013-12-29 15:21:31 +02:00
Alex Parlett
70322b5c85 Added the Tooltip UI Element which will display when its parent element is hovered over for the specified delay period. 2013-12-29 00:37:54 +00:00
Lasse Öörni
90b5ed494f Improve data structures used by ShaderParser for less dynamic memory allocation & better performance. 2013-12-29 01:39:34 +02:00
Yao Wei Tjong 姚伟忠
d719baa38b Use on-demand shader evaluation for OpenGL as well.
Also correct Urho3DPlayer usage help for setting log level. There is a space between parameter key and parameter value.
Other minor changes to correct formatting.
2013-12-28 14:17:54 +08:00
Lasse Öörni
ffcbe42413 Evaluate shader combinations on demand. Closes #89.
Fixed D3D9 window being borderless when it shouldn't be.
2013-12-28 02:37:38 +02:00
Lasse Öörni
721f70fe1a Fixed D3D9 build. Added borderless as a command line option and documented it. 2013-12-28 00:49:06 +02:00
Alex Parlett
a63ab49ac5 Added the ability to specify whether a window is borderless or not (decorated with borders);
Added the ability that if in windowed mode and the passed in size is 0 || 0 then it will maximize
Added the ability to maximize and minimize the window
2013-12-27 20:24:16 +00:00
Lasse Öörni
6dced65f9e Use binary search in ListView::FindItem() to speed up mouse click processing.
Fix null exception in attribute editor if trying to create an editor for a "none" type Variant.
2013-12-27 20:03:00 +02:00
Lasse Öörni
c61a5e6f01 Added new ItemClicked event for ListView items which is also sent for right-clicks. ItemDoubleClicked is also sent also for right-clicks now. Added more event parameters to ItemClicked & ItemDoubleClicked events. Closes #88. 2013-12-27 14:34:38 +02:00
Lasse Öörni
1b25167781 Do not allocate String's initial buffer yet when resizing to zero size. Closes #87. 2013-12-27 01:09:03 +02:00
Lasse Öörni
f6b0331448 Fix memory leak and potential undefined behavior in WString::Resize(). 2013-12-26 16:55:16 +02:00
Lasse Öörni
949bc97ffe When copy-constructing a HashMap, HashSet or List, reserve initial capacity according to the size of the object being copied.
Fixed WeakPtr's operator < using wrong type argument.
2013-12-26 14:35:29 +02:00
Yao Wei Tjong 姚伟忠
e52bc6e45d Fix Editor argument parsing to load startup scene correctly. 2013-12-26 15:10:37 +08:00
Yao Wei Tjong 姚伟忠
1b304cf2e7 Better way to check old cmake version. [ci skip] 2013-12-24 17:22:32 +08:00
Yao Wei Tjong 姚伟忠
4d31d9b46f Attempt to fix shared library build using old CMake.
CMake version prior to 2.8.11 does not have LINK_LIBRARIES target property.
2013-12-24 16:44:55 +08:00
Lasse Öörni
8b8790e481 Added option to import non-skinning bones in AssetImporter. Closes #82.
Added case-sensitivity option to String::Contains().
2013-12-23 23:07:09 +02:00
Lasse Öörni
9a3f8e5aa5 Call SetProcessDPIAware() function on SDL video initialization to prevent Windows 8.1 from scaling & blurring the window on high DPI settings. Closes #83. 2013-12-22 21:35:31 +02:00
Lasse Öörni
963fb9d753 Import material emissive color & texture in AssetImporter. 2013-12-22 20:54:08 +02:00
Lasse Öörni
86932c9f0e Exposed missing scene binary load/save & node instantiation to Lua. To use instantiation, call eg. scene:InstantiateXML(fileSystem:GetProgramDir().."Data/Objects/Ninja.xml", Vector3(0, 0, 0), Quaternion()); 2013-12-22 20:39:50 +02:00
Lasse Öörni
e5fd170d32 Fix MoveAlongSurface for VS2008. 2013-12-22 20:13:54 +02:00
Lasse Öörni
2f9171c010 Convert tabs to spaces. 2013-12-22 20:03:06 +02:00
Lasse Öörni
376d4683b2 Merge remote-tracking branch 'remotes/jtippets/master' 2013-12-22 19:59:51 +02:00
Lasse Öörni
faa6cb1d58 Merge remote-tracking branch 'remotes/alexparlett/resource_search_priority' 2013-12-22 19:48:16 +02:00
Lasse Öörni
7de753e08c Add material emissive color in LitSolid shader also when not using emissive map. Default material emissive color back to zero. 2013-12-22 19:48:02 +02:00
Lasse Öörni
f74dae18c1 Update assimp to newest revision from git. 2013-12-22 19:11:30 +02:00
vertexnormal
e70eb17dcb Fix return result of FindNearestPoint to transform back into world space, add method MoveAlongSurface and associated script bindings. 2013-12-22 08:12:53 -07:00
vertexnormal
bbf21d83f1 Add FindNearestPoint() to NavigationMesh class and expose it to script interfaces. 2013-12-21 23:08:44 -07:00
Alex Parlett
3166f1874d Changed adding Resource and Package files to be able to specify the location in the Vector for search priority when calling GetFile or GetResource
Added the ability to specify whether to search Package Files or Resource Dirs first when calling GetFile or GetResource
Added the functionality to angelscript and lua. Lua does not contain the ability to add resource dirs and packages, so that was not modified.
2013-12-21 19:09:07 +00:00
Yao Wei Tjong 姚伟忠
4f73aa26b9 Fix how tolua++ renaming is being documented in Lua generated API. 2013-12-19 11:42:33 +08:00
Josh Engebretson
e79b745f05 Fix collision calculation of index offset when using multiple geometries 2013-12-18 13:45:57 -08:00
Lasse Öörni
4c9886f5ab Do not attempt to set a nonexistent default icon. 2013-12-18 22:01:31 +02:00
Yao Wei Tjong 姚伟忠
328bf54dc6 Use Apple libtool when building static lib using Makefile. Closes #74.
Also in the commit:
- Remove BOM from License.txt and Readme.txt. Update Urho3D website URL in Readme.txt.
- Detect MSYS build environment. It is now possible to build Urho3D using Msys shell on Windows, i.e. cmake_gcc.sh could be used for both native build and Android build on Windows platform (MinGW is required).
2013-12-18 20:24:36 +08:00
Lasse Öörni
b496594203 Update credits. Normalize whitespace. 2013-12-18 11:56:16 +02:00
vertexnormal
d80c927c93 Add Lua binding to PODVector<RayQueryResult> and Octree::Raycast() 2013-12-17 16:08:06 -07:00
Yao Wei Tjong 姚伟忠
15c61cb739 Use CMake command to move and rename for portability. Closes #73.
- Revert back CMake version. Use CMake -Wno-dev option to suppress the policy warning for CMake 2.8.12 early adopter.
- Since the new policy is not in place, set some more target property to prevent Urho3D static dependency libs from being transitively link to other targets linking to Urho3D.
2013-12-18 00:33:35 +08:00
Lasse Öörni
e19bed4946 Clean up scene node related comments in samples. 2013-12-17 13:28:46 +02:00
Yao Wei Tjong 姚伟忠
60dad27d5f Fix Mac OS X and iOS build from external CMake project.
Since the CMake minimum is bumped up, set the policy CMP0022 to NEW. Incidentally it is also required to be so to stop the static libraries dependency from being transitively get included to other targets that links to Urho3D shared library.
2013-12-17 08:00:11 +08:00
Lasse Öörni
60b3046053 Fix function order in header. 2013-12-17 00:56:45 +02:00
Lasse Öörni
c23c4d2353 Fixed XMLElement on GCC. 2013-12-17 00:47:51 +02:00
Lasse Öörni
d1df925013 Added Image::GetSDLSurface() to avoid code duplication. Fixed crash from null image pointer in Graphics::CreateWindowIcon(). 2013-12-17 00:47:38 +02:00
Lasse Öörni
cb45be26ef Added AngelScript & Lua property accessors for the XMLElement's value.
Added setters for Lua XMLElement.
Updated scripting documentation.
2013-12-17 00:02:49 +02:00
Lasse Öörni
679007d1b5 Normalize whitespace, update documentation. 2013-12-16 23:22:28 +02:00
Lasse Öörni
71f5492cc4 Merge remote-tracking branch 'remotes/alexparlett/xml-value' 2013-12-16 23:02:39 +02:00
Lasse Öörni
cc4c4e6a79 Merge remote-tracking branch 'remotes/alexparlett/window-icon' 2013-12-16 23:01:58 +02:00
Lasse Öörni
9752cbed1e Removed OpenGL scratch buffer allocation log spam, even in debug mode. 2013-12-16 23:00:51 +02:00
Alex Parlett
db38bcf6c0 Added functionality to set the value for a node in the form of <node>value</node>.
Added method to retrieve the value of a node held in the inner xml tags eg. <node>value</node> would return "value" when called on "node"
Added Script Methods for Getting and Setting the value as detailed above (Lua contains Getter only inline with the rest of the functionality)
2013-12-16 20:17:03 +00:00
Alex Parlett
2505149255 Added ability to specify window icon (external application window) using an Image resource and SDL cross platform capability
Added Script Bindings in Lua and Angelscript to support the function
2013-12-16 19:00:30 +00:00
Lasse Öörni
32a9e72752 Fixed GLES low quality shadows. Fixed Android/iOS not initializing engine parameters from CommandLine.txt. 2013-12-16 11:54:58 +02:00
Yao Wei Tjong 姚伟忠
9f3d6f20ea Use -force_load instead of -all_load option for Apple Static linker.
It is to ensure only objects from the specific static libraries are being merged into final output. Objects from standard libraries (ld, m, etc) should be excluded.
2013-12-16 14:15:48 +08:00
primitivewaste
7d641ca3fc Add a grid to the editor. Add default zone and grid editor preferences. Make editor settings and preferences dialogs resizable and scrollable. Fix Pow() script registration. 2013-12-15 20:58:17 -08:00
Lasse Öörni
3abae76ec2 Use constant for number of draw buffers. 2013-12-15 23:15:15 +02:00
Lasse Öörni
3ec6f66fae Do not use PCH on AssImp contrib source files, as they're not all prepared for that. 2013-12-15 14:01:54 +02:00
Lasse Öörni
ba565718e0 Bump required CMake version. 2013-12-15 13:42:15 +02:00
Yao Wei Tjong 姚伟忠
963c46d15b Refactor build scripts.
- Close issue #67, Urho3D iOS library should be built correctly now (either as single arch or as multiple archs Mach-O universal binary). Urho3D library build for Mac OS X and iOS platforms do not rely on CMake hack 'object-collecting' approach anymore. It uses Apple static linker 'ld' tool to merge all objects from third-party *.a directly.
- Add new custom target (Urho3D_universal) for iOS platform to build a single Mach-O universal binary library consists of both iphoneos (universal ARM archs) and iphonesimulator (i386 arch).
- Introduce PLATFORM_PREFIX (ios-, raspi-, android-) to prefix the build and output directories (Build, Bin, Lib).
- Correct Xcode-specific build setting for Mac OS X desktop build to use the latest OS X SDK but set deployment target to current OS X of the build system, unless CMAKE_OSX_DEPLOYMENT_TARGET is set explicitly to build for other target.
- Temporary workaround for CMake/Xcode generator bug where it always appends '/build' path element to SYMROOT attribute and as such the items in Products are always rendered as red as if they are not yet built.
- Change Assimp target to use setup_library() macro so that it gets the same settings (and workaround) as all other targets.
- Add a conditional check to prevent MSVC to build 'buildvm-android' target as it is not supported at this moment.
2013-12-15 18:25:00 +08:00
Lasse Öörni
f07a952096 Added second texcoord support in OgreImporter utility. 2013-12-13 19:03:05 +02:00
Lasse Öörni
ab701e0e26 Only copy file serialization attributes when cloning a node hierarchy. Fixes #70. 2013-12-12 19:11:28 +02:00
Yao Wei Tjong 姚伟忠
e97eedb771 Close Windows gap. No pun intended.
- Fix document build on Windows platform as Windows "shell" failed to perform the file name expansion (globbing) as expected.
- Refactor batch files to they can be invoked from any directory (similar to their shell script counterparts).
- Sort header files for generating event list so the output remains the same accross different scandir implementation.
2013-12-12 19:03:50 +08:00
Lasse Öörni
0859375510 Fixed erroneously removed script API function. 2013-12-08 23:37:41 +02:00
Lasse Öörni
34abc97998 Change the LineEdit elements in the file selector & console to match the height of other LineEdits in the editor. Remove hardcoded adjustment code from FileSelector.cpp & Console.cpp and rely on the style instead. 2013-12-08 23:30:44 +02:00
Lasse Öörni
7e0cafaf53 Check font's OS/2 info for possibly larger ascender & descender values. For safety, verify each font glyph's width & height against the actual glyph bitmap width & height. Use the maximum of specified row height or the ascender + descender. 2013-12-08 20:48:49 +02:00
Lasse Öörni
ebdf337610 Fixed false positive bug in String::EndsWith(). 2013-12-08 01:40:13 +02:00
Lasse Öörni
dc6294af16 Added generated event list documentation page. Closes #66. 2013-12-08 01:39:36 +02:00
Lasse Öörni
5fa9116be1 Drag-related code cleanup. 2013-12-07 22:35:26 +02:00
Lasse Öörni
0d7d4826e5 Add pixel & time threshold for sending a drag begin UI event. Closes #65. Removed code duplication between mouse & touch hover. 2013-12-07 22:20:28 +02:00
Lasse Öörni
5046508a9a Added emissive shader variations to LitSolid shader. Default emissive modulation color to white, similar to environment map color. 2013-12-07 00:44:14 +02:00
Lasse Öörni
534b1d41fd Fix crash on empty file name. 2013-12-06 18:47:35 +02:00
Lasse Öörni
7e542be196 Added Save function to ParticleEmitter, which dumps the parameters as XML. Added menu items to editor to load/save ParticleEmitter parameters. Closes #51. 2013-12-06 18:47:35 +02:00
Lasse Öörni
088dba041c Fix missing sound playback start/stop when using the play/pause buttons in editor toolbar. Improved sphere debug drawing. Added debug drawing to SoundSource3D. Closes #63. 2013-12-06 16:50:29 +02:00
Yao Wei Tjong 姚伟忠
52de3a135c Fix deploying multiple samples in iOS (virtual) devices.
Each (samples) iOS app now has its unique bundle ID based on the derived product name.
2013-12-05 21:40:14 +08:00
Lasse Öörni
f4be17256e Fix wrong include path for iOS build. 2013-12-04 23:23:04 +02:00
Yao Wei Tjong 姚伟忠
89a05a8017 Update documentation to reference back to new main site. 2013-12-04 23:53:35 +08:00
Lasse Öörni
7d83a44d13 Make resource dirs absolute when added to ResourceCache. Sanitate away /./ construct from the runtime program dir and resource dirs. Closes #64 2013-12-04 15:21:20 +02:00
Lasse Öörni
a9fda01ae7 Fixed unnecessary duplicate boundingBox_ member variable in DecalSet. 2013-12-04 01:10:03 +02:00
Lasse Öörni
7d92368dca Fixed logic bug in Audio subsystem related to mixing fragment size. Fixed uninitialized dataSize_ member in Sound. 2013-12-04 00:57:34 +02:00
Lasse Öörni
a37ea5bb6e Added inner and outer angle parameters to SoundSource3D, which makes it possible to do cone-like directional sounds. Fixed sound attenuation if near and far distance are the same. Closes #49. 2013-12-04 00:25:20 +02:00
Lasse Öörni
aa0f72cf65 Added world position & normal to RayQueryResult. 2013-12-02 23:20:00 +02:00
Lasse Öörni
a022430876 Added Random() & RandomInt() script functions with min & max range parameters. Similar to the RandomInt(range) overload, in RandomInt(min, max) the max value is exclusive. Note that the corresponding C++ functions are simply called Random for both int and float versions. Closes #48. 2013-12-02 21:44:39 +02:00
StevenZhang
a17baf2695 make AngelScript an optional module, you can use -DENABLE_ANGELSCRIPT=0 to disable it. 2013-12-02 19:02:39 +02:00
Lasse Öörni
3d905f2bf0 Append FileSelector filter extension in editor when saving files, if no extension entered to filename. Closes #57. 2013-11-30 16:59:14 +02:00
Lasse Öörni
79eac917be Fixed distance update for Drawables for draw distance & shadow draw distance checks. Closes #56. 2013-11-30 16:57:54 +02:00
Lasse Öörni
026e838d5b Retired the unused DocConverter utility. 2013-11-30 16:53:25 +02:00
Yao Wei Tjong 姚伟忠
ac6d9f40b0 Fix documentation build on platforms that do not have tool targets.
- Prevent 'make clean' or its equivalent to remove the generated ScriptAPI.dox and LuaScriptAPI.dox in the 'Docs' subdirectory.
- Always refresh the generated API Doxygen files before building 'doc' target when the tools are available.
- Move document-build binary directory into the respective project main binary directory.
2013-11-27 18:14:45 +08:00
Yao Wei Tjong 姚伟忠
7fa4c0bc41 Clean up build script. 2013-11-27 00:55:26 +08:00
Yao Wei Tjong 姚伟忠
484f855127 Build Lua and LuaJIT standalone interpreter and bytecode compiler.
Use the internal standalone lua/luajit interpreter for dumping LuaScript API doxygen file.
2013-11-27 00:28:59 +08:00
Yao Wei Tjong 姚伟忠
9eb7d92301 Fix minor typo error. 2013-11-26 13:10:09 +08:00
Lasse Öörni
a92f4a0aea Added "Is Playing" attribute to SoundSource. SoundSource no longer clears the sound resource when playback is finished. Closes #54. 2013-11-25 20:03:35 +02:00
Yao Wei Tjong 姚伟忠
469794689f Refactor to keep the Docs directory clean from temp. build files.
- Move the temp. build files for documentation building to its own build directory.
- Add new build option to include documentation build as part of the normal build (not enabled by default).
- Document the documentation building process.
2013-11-25 15:10:07 +08:00
Yao Wei Tjong 姚伟忠
19e1e42ca3 Add new 'doc' target for generating Urho3D documentation.
make clean
make all
make doc      <-- New target
make install
2013-11-24 21:12:05 +08:00
Lasse Öörni
a80793b901 Match desktop OpenGL behavior with Direct3D: check that fullscreen window size is a valid resolution and do not enter fullscreen mode if it isn't. Closes #52. 2013-11-23 23:13:52 +02:00
Yao Wei Tjong 姚伟忠
772a546d56 Refactor to expect log level parameter value after a space.
To be consistent with the rest of the Engine parameters.
2013-11-22 22:20:55 +08:00
Yao Wei Tjong 姚伟忠
3875bc3b21 Convert additional cflags comments into accessible pkg-config's vars.
The additional flags are usually trivial on *nix platforms but they are not so on Windows platform for MSVC.
2013-11-22 13:21:44 +08:00
Yao Wei Tjong 姚伟忠
7891efb43e Clean up Engine library build script. 2013-11-22 13:21:44 +08:00
Yao Wei Tjong 姚伟忠
c0633b7c35 Fix Android "in-the-source" build on Windows platform.
Reinstate back the logic to read CMake cache value for USE_MKLINK the proper way as the previous shortcut approach does not work as expected when user invokes cmake_clean.bat but leaving build dir as it is.
2013-11-21 23:18:12 +08:00
Yao Wei Tjong 姚伟忠
4402195b5e Fix MacOSX Urho3D shared library build when LuaJIT is enabled.
Also fix Urho3D.pc for MacOSX platform to also provide the framework list required for linking, i.e. below command works equally well with Urho3D SDK installed on Mac OS X platform.
c++ -o Urho3DPlayer Urho3DPlayer.cpp `pkg-config --cflags --libs Urho3D`
2013-11-21 21:45:41 +08:00
Yao Wei Tjong 姚伟忠
723c66054b Fix wrong build path in cmake_android.bat for detecting cache value.
Also enhance to suppress symlink creation warnings when they are already created and update Android toolchain for NDK r9b.
2013-11-21 13:47:07 +08:00
Lasse Öörni
f73ee0c730 Force elements in layout to left/top alignment, warn if has different alignment. Closes #34. Implement editor accelerator key texts a bit differently as the right alignment in a layout -hack can no longer be relied upon. 2013-11-21 01:21:11 +02:00
Lasse Öörni
f02650d10e Add int versions of Max, Min & Clamp to the AngelScript API. 2013-11-21 00:14:50 +02:00
Lasse Öörni
0fe2469957 Improved resource unloading. Make it possible to unload all resource types by partial name at once. Editor unloads unnecessary resources after scene load or clear. Add weak ref check to all resource unloading to avoid shader programs being left without their parent shader. 2013-11-20 22:41:21 +02:00
Yao Wei Tjong 姚伟忠
e3b53f97a1 Moved SDL header include dir to 'Engine' scope as it is being referenced by a few Engine sub-directories and not just Graphics. 2013-11-20 16:15:10 +08:00
Yao Wei Tjong 姚伟忠
f6186456a0 Fix SDK destination installation path for Windows platform.
It appears CMake has automatically prepended "Urho3D" to built-in CMAKE_INSTALL_PREFIX variable, so we don't need to prefix the path one more time. Also in the commits:
- Fix documentation on CMake module search path for Windows platform.
- Unified SDK destination installation for Windows and non-Windows platforms.
- Replace global include directories to SDL and export header to locally scoped include directories.
- Enhance Urho3D.pc generation to also provide additional compiler flags for DEBUG/RELEASE/RELWITHDEBINFO as comments/references.
2013-11-20 15:59:38 +08:00
Lasse Öörni
3c2110b81a Check for compound shape with zero child shapes to prevent Bullet assert. Closes #47. 2013-11-18 17:19:50 +02:00
Yao Wei Tjong 姚伟忠
e83d98f016 Fix Urho3D.pc file for Windows and Raspberry Pi platforms.
Document cross-compiling example using pkg-config for Raspberry Pi platform.
Disable Urho3D.pc file generation for Android and iOS platform.
2013-11-17 21:26:44 +08:00
Lasse Öörni
35b59e897f Allow setting AnimationState bone weights recursively. Added GetAnimationState() to public API of AnimationController. 2013-11-16 15:25:07 +02:00
Yao Wei Tjong 姚伟忠
36620dd819 Avoid hardcoding of include dirs in the Urho3D.pc.in input file.
Also revert decision to use smaller letter case cmake destination directory in previous commit :).
2013-11-16 16:21:13 +08:00
Yao Wei Tjong 姚伟忠
56798dcce9 Fix incorrect include dirs in the Urho3D.pc file.
Also:
- Change the CMake module installation destination to use small letter case.
- Update documentation on pkg-config invocation examples.
2013-11-16 14:49:34 +08:00
Yao Wei Tjong 姚伟忠
d7942132f1 Configure and install Urho3D.pc file for pkg-config tool.
This is useful for Urho3D library user via SDK installation without having CMake installed.
2013-11-15 18:33:51 +08:00
Lasse Öörni
dbb02e5789 Fix template code error. 2013-11-14 17:40:39 +02:00
Lasse Öörni
460a119e16 Use WeakPtr<RefCounted> consistently for the script WeakHandle type. 2013-11-14 17:31:10 +02:00
Lasse Öörni
ee0e3aa663 Removed the mechanism of binary-serializing resource name hashes instead of resource names. This is to allow correct resource loading from binary scene files on platforms that cannot iterate the resources in the application installation (eg. Android). This also affects networking, downside is increased network payload size when resource attributes are transferred. All binary scenes saved with old Urho versions are also invalidated. 2013-11-14 14:24:03 +02:00
Yao Wei Tjong 姚伟忠
596aa3eac6 Fix AngelScriptAPI.h header generation.
- Define int64 and uint64 and redefine the existing type to closer match AngelScript documentation.
- Replace occurances of ?& (any reference) to void*.
2013-11-14 14:25:24 +08:00
Yao Wei Tjong 姚伟忠
c96200b53b Fix AngelScript compilation due to a wrong letter case. 2013-11-14 11:36:50 +08:00
Lasse Öörni
3168019a5f Updated to AngelScript 2.28.0. Added dictionary addon from AngelScript SDK. Closes #46. 2013-11-14 00:16:56 +02:00
Lasse Öörni
bb56ee95d2 Added support for DelayedExecute() from free script functions. This allows calling free functions in the same script module as delayed. 2013-11-13 02:11:29 +02:00
Lasse Öörni
ee8e8031d2 Rework command line options that need a parameter value to have a space in between. Fixes #44. 2013-11-12 01:33:15 +02:00
Yao Wei Tjong 姚伟忠
c3b95cf81e Eliminate overhead to maintain the pkg file list manually.
Also reorder output sections to be consistent with AngelScript API documentation.
2013-11-11 01:21:56 +08:00
Lasse Öörni
82007cc4f4 Removed the nonintuitive "invisible LOD factor" attribute from AnimatedModel and replaced it with updateInvisible flag similar to ParticleEmitter. This flag must be used for ragdolls or other physically animated objects to ensure that they come into view properly during animation if they previously were outside view. Fixes #40. 2013-11-09 21:26:08 +02:00
Yao Wei Tjong 姚伟忠
529f577e7a Fix index out of bound. 2013-11-09 08:53:08 +08:00
Yao Wei Tjong 姚伟忠
5bda958857 Enhance UpdateDocument.bat/sh script to also update LuaScriptAPI.dox.
Not fully tested UpdateDocument.bat on Windows platform yet.
2013-11-09 07:43:23 +08:00
Yao Wei Tjong 姚伟忠
a27560c719 Enhance ScriptCompiler to also dump API as C Header file.
The C Header file is intended to be 'force included' in the IDE to get content assist / code completion when editing AngelScript file in the C/C++ editor. The output section of DumpAPI() method is reordered slightly to keep the parser happy. This work is inspired by the work done by Vladimir Andri (see https://groups.google.com/forum/#!topic/urho3d/8WOOGAdwlEU).
2013-11-08 12:41:21 +08:00
Lasse Öörni
27d54428d5 Fix the delayed method calls attribute for a deserialized ScriptInstance overwriting a delayed method call that was newly stored in code (eg. inside script object's Start() function) 2013-11-07 22:53:57 +02:00
Lasse Öörni
efaf7d28f0 Merge remote-tracking branch 'remotes/szamq/master' 2013-11-06 21:31:14 +02:00
Yao Wei Tjong 姚伟忠
79ebb142d7 Use a more concise REGEX to prevent unwanted match. Closes #38. 2013-11-06 16:14:52 +08:00
Paweł Mogiła
1cb217a8ef Expose anisotropic friction to Lua and AngelScript 2013-11-06 01:53:22 +01:00
Paweł Mogiła
3cb9afe865 Added Bullet anisotropic friction to RigidBody 2013-11-06 01:23:44 +01:00
Yao Wei Tjong 姚伟忠
a96a94a4f6 Fix FindUrho3D.cmake module to include back SDL headers as dep.
Install SDL headers for all platforms (not just Android).
2013-11-06 08:04:48 +08:00
Lasse Öörni
a56be53ef4 Allow specifying -DUSE_OPENGL=0 for MinGW. Compiling ShaderCompiler is likely to fail in that case. Closes #36. 2013-11-06 01:27:43 +02:00
Lasse Öörni
719e640c99 Fixed Android file access from within the .apk. 2013-11-05 18:31:08 +02:00
Yao Wei Tjong 姚伟忠
bd3ee3f932 Fix the destination template dir for GCC only.
Android build on Windows platform should also use the same template location installed in the NDK or standalone toolchain.
2013-11-05 17:05:31 +08:00
Yao Wei Tjong 姚伟忠
24c11dda23 Revert "Setup Android template directory for both Windows and non-Windows."
This reverts commit 06f7d73922.
2013-11-05 17:00:43 +08:00
Yao Wei Tjong 姚伟忠
06f7d73922 Setup Android template directory for both Windows and non-Windows. 2013-11-05 16:36:14 +08:00
Yao Wei Tjong 姚伟忠
8a571ae437 Document how to install library and how to find it from installed SDK. 2013-11-05 15:52:37 +08:00
Lasse Öörni
cfa6b135ce Moved Urho3DPlayer class definition to a .h file. Updated documentation to refer to Urho3DPlayer. 2013-11-04 19:07:00 +02:00
Yao Wei Tjong 姚伟忠
c1480abfb8 Rename Urho3D script host app from "Urho3D" to "Urho3DPlayer". 2013-11-04 19:36:36 +08:00
Yao Wei Tjong 姚伟忠
300efe0f7d Reinstate comment on RedHat-based system that needs LIB_SUFFIX. 2013-11-04 08:36:15 +08:00
Yao Wei Tjong 姚伟忠
e8fbcf8a82 Add 'install' option for cross-compiling build and IOS as well.
Note: there is a known bug in CMake/Xcode generator that prevents iOS targets (library and bundle) to be installed correctly (see http://public.kitware.com/Bug/bug_relationship_graph.php?bug_id=12506&graph=dependency).
2013-11-04 00:13:49 +08:00
Yao Wei Tjong 姚伟忠
b45de628e7 Reduce 3rd-party headers installation to as minimum as possible. 2013-11-03 06:28:41 +08:00
Yao Wei Tjong 姚伟忠
a542556a91 Rephrase error message when Urho3D library is not found. 2013-11-03 03:45:58 +08:00
Lasse Öörni
6133c24a53 Official fix for the void assert from AngelScript SVN. 2013-11-02 19:47:01 +02:00
Lasse Öörni
bdd2d03c81 Fixed AngelScript assert/crash if void value is attempted to be cast explicitly. Closes #33. 2013-11-02 17:23:41 +02:00
Yao Wei Tjong 姚伟忠
e496dfbbcb Prevent spamming stderr stream when log file could not be opened.
This occurs when the binary is installed and executed in a filesystem where user does not have write permissions.
2013-11-02 18:07:54 +08:00
Yao Wei Tjong 姚伟忠
8c248bdb7c Fix URHO3D_INCLUDE_DIR to also include sub-dirs to 3rd-party headers. 2013-11-02 17:10:25 +08:00
Yao Wei Tjong 姚伟忠
52ff881c54 Add 'install' option (currently only available for native build).
Also enhance FindUrho3D.cmake module to find Urho3D library in the Urho3D SDK installation location.
2013-11-02 16:45:44 +08:00
Lasse Öörni
8ca86afbe7 Merge branch 'sdl-update' 2013-11-02 01:04:02 +02:00
Yao Wei Tjong 姚伟忠
8ff3348503 Refactor define_dependency_libs macro.
Change to remove the references to engine's sub-library targets which are now defunct. General cleanup of the build scripts.
2013-11-01 17:58:47 +08:00
Yao Wei Tjong 姚伟忠
b15b871db5 Fixed CMake warning after upgrading to CMake 2.8.12. 2013-10-31 23:06:02 +08:00
Yao Wei Tjong 姚伟忠
da155d2b9a Generating all the output files in the desired output directories.
Thus, avoiding the copying and symlinks setup (for Xcode debugging) post-build steps.
2013-10-31 17:27:18 +08:00
Lasse Öörni
67e8ea47e5 Do not attempt to copy the .pdb for static Urho3D lib due to recent CMake behavior change. Fixes #32. 2013-10-31 02:46:54 +02:00
Lasse Öörni
c057b29dba Unify how command line options are shown in utilities.
Added note in documentation about lack of space between command line option and its parameter.
Prepend Materials/ to the material list written by OgreImporter (assume "standard" materials subdirectory.)
2013-10-30 18:49:27 +02:00
Yao Wei Tjong 姚伟忠
cdd9b7bdea Reverted back EXTRA_FLAGS which was changed unintendedly. 2013-10-30 18:14:41 +08:00
Yao Wei Tjong 姚伟忠
6071001b5c Refactor define_source_files macro.
Change the argument names to indicate their intent usage better. Add option to pass in directly globbing patterns.
2013-10-30 18:06:24 +08:00
Yao Wei Tjong 姚伟忠
4b549c9c7a Revert back to no-ops for Input::SetMouseVisible() on RPI.
The OS cursor on Raspberry Pi does not behave like other OS cursor on other platforms.
2013-10-30 17:00:02 +08:00
Yao Wei Tjong 姚伟忠
95a9c71a21 Fixed runtime issue on Raspberry Pi with Pidora as OS. 2013-10-30 12:31:32 +08:00
Lasse Öörni
b957f60143 Added ApplyMaterialList() function to StaticModel so that the feature can be used outside the editor as well. Refactored editor to use that function instead of its own implementation.
Unified the switch to output material list to -l in both AssetImporter & OgreImporter.
Removed the "use local IDs" toggle from editor as that can be specified with the import options.
2013-10-29 23:04:51 +02:00
Yao Wei Tjong 姚伟忠
953f87d052 Fixed mouse motion spin bug.
This bug only manifests itself when the SDL video driver has "WarpMouse" function implemented, like RPI video driver, in conjuction with call to SDL_SendMouseMotion() with relative event position.
2013-10-29 23:48:03 +08:00
Yao Wei Tjong 姚伟忠
7a82151933 Reenable the function for RPI since new video driver support mouse. 2013-10-29 22:07:43 +08:00
Yao Wei Tjong 姚伟忠
9e09e958dc Fixed event handling for Raspberry Pi. 2013-10-29 13:58:47 +08:00
Lasse Öörni
8077ee4a53 Added option to OgreImporter to save material list file next to the model. 2013-10-28 21:35:53 +02:00
Yao Wei Tjong 姚伟忠
6cf19fa9ce Fixed Raspberry Pi error (could open Window). 2013-10-28 22:30:01 +08:00
Lasse Öörni
3ce378d5e2 Merge branch 'master' into sdl-update 2013-10-28 13:13:08 +02:00
Yao Wei Tjong 姚伟忠
e423a26461 Refactor CMake build scripts.
Changes:
- Avoid globbing engine source files twice.
- Setup folder group for VS and Xcode. Also group object files according to 3rd-party library name.
- New define_source_files() macro.
2013-10-28 18:21:18 +08:00
Lasse Öörni
c1a1864a40 Fixed black window on subsequent application starts on Android. Removed GL synchronization before swapping buffers, which should be unnecessary. 2013-10-28 05:06:23 +02:00
Lasse Öörni
e74ee4ce52 Fixed exiting on Android. 2013-10-28 01:45:44 +02:00
Lasse Öörni
f299c0d815 Fixed Android GL context destroy / restore. Removed project.properties file, as it's generated by the command "android update project". 2013-10-27 14:58:41 +02:00
Yao Wei Tjong 姚伟忠
59d6d01125 Fixed 07_Billboards compilation issue. 2013-10-27 16:20:51 +08:00
Lasse Öörni
afa6c4ccc3 Initial SDL 2.0.1 merge. Windows tested OK. Android will crash when returning to the application. 2013-10-27 03:11:36 +03:00
Lasse Öörni
42ae752d2d Allow BillboardSet / ParticleEmitter to choose whether billboards should face the camera or follow the node orientation. Closes #22. 2013-10-26 23:42:08 +03:00
Lasse Öörni
1941eb991d Group Urho3D library source files in Visual Studio by subdirectory. 2013-10-26 19:50:02 +03:00
Paweł Mogiła
5752b58edc Fixed SetMaxVelocity in ParticleEmitter 2013-10-26 16:06:44 +02:00
Yao Wei Tjong 姚伟忠
c3242a3736 Refactor to shortcircuit if library is already found at parent scope.
Note that there is actual no need to call the module again at child scope when it is already done at parent scope.
2013-10-26 13:32:12 +08:00
Yao Wei Tjong 姚伟忠
0598ec9490 Improve robustness when FindUrho3D module is called multiple times.
Ensure the change to CMake library suffix preferences is not being nullified because user calls the FindUrho3D module more than one time in different scopes.
2013-10-26 01:38:31 +08:00
Yao Wei Tjong 姚伟忠
6846b179b4 Cleaned up comment. 2013-10-25 01:17:29 +08:00
Yao Wei Tjong 姚伟忠
589e0d53bb Change CMake library type preferences to agree with Urho3D.
This change helps external CMake project to choose the correct library type as the compiler flags setup by the Urho3D-CMake-Magic module. Both the external project and the cmake module are being governed by the same URHO3D_LIB_TYPE build option.
2013-10-25 01:01:53 +08:00
Yao Wei Tjong 姚伟忠
b85a0b3305 Suppress "unused variable" warning for external CMake project also. 2013-10-25 00:32:23 +08:00
Yao Wei Tjong 姚伟忠
ef566d825a Cleaned up build script script comment. 2013-10-25 00:08:49 +08:00
Lasse Öörni
02df5b2d02 Write package file size to the end of package files. If package signature is not found from the file beginning, seek to file end and read the size, then seek backward to check if the package file is concatenated eg. in the executable. Alternatively the start offset can be specified manually when opening a package file. Closes #27. 2013-10-24 00:06:19 +03:00
Yao Wei Tjong 姚伟忠
e34e26d068 Merge branch 'library-build'. 2013-10-23 15:15:03 +08:00
Lasse Öörni
18d4f6e6db Deploy Urho3D.dll to Bin directory after build. 2013-10-22 22:59:03 +03:00
Yao Wei Tjong 姚伟忠
a9ed330890 Create sub-projects for Samples/Tools/Extras. 2013-10-22 23:19:03 +08:00
Yao Wei Tjong 姚伟忠
db8f7a2289 Simplify the build script to eliminate unused variable.
As the enable_pch() macro is not being called, there is no need to set SOURCE_FILES variable at this scope.
2013-10-22 20:28:15 +08:00
Yao Wei Tjong 姚伟忠
7785640904 Fixed Lua/LuaJIT compilation issue.
The combined Precompiled header does not include tolua++.h anymore, so it must be included back explicitly.
2013-10-22 20:12:33 +08:00
Lasse Öörni
0c14a17774 Use one combined precompiled header file for Urho3D library, as otherwise precompiled headers would be disabled on Visual Studio. 2013-10-22 00:48:27 +03:00
Lasse Öörni
89ea05f068 Fixed git revision generation on Win32 Android build. 2013-10-22 00:24:19 +03:00
Lasse Öörni
0eb45c0960 Fixed ShaderCompiler build. 2013-10-21 23:59:21 +03:00
Lasse Öörni
c5278a8649 On a Visual Studio build, do not copy .obj files for the Urho3D library but use them from their original location. 2013-10-21 23:32:28 +03:00
Yao Wei Tjong 姚伟忠
7b24807c32 Combine Engine sources into one place and build as a single target. 2013-10-22 04:16:22 +08:00
Yao Wei Tjong 姚伟忠
2b3af05f26 Added license notice. 2013-10-21 22:39:16 +08:00
Yao Wei Tjong 姚伟忠
d953b36d62 Reverted back decision to also build samples on Android platform.
Although samples should also work for Android platform, currently there is no available mechanism to package each sample app into individual *.apk.
2013-10-21 20:27:08 +08:00
Yao Wei Tjong 姚伟忠
9070746b56 Fix Xcode AssetImpoter linker error caused by both freetype and assimp emitting same symbols. 2013-10-21 19:36:41 +08:00
Yao Wei Tjong 姚伟忠
07f81edc6f Explicitly specify a base name for the export header generation.
The library target is renamed from "Urho3D" to "Urho3D_lib" as it clashes with "Urho3D" target for script host application. The library target's output name is then adjusted back "Urho3D" in the macro to generate "libUrho3D.a" or "libUrho3D.so" or "Urho3D.dll", etc. However, it seems that generate_export_header() macro provided by CMake does not taken into consideration of the adjusted target's output name property. Fortunately, it accepts a BASE_NAME argument to rectify the problem cleanly.
2013-10-21 15:46:55 +08:00
Lasse Öörni
d560675985 Fix static lib build define. 2013-10-20 23:08:28 +03:00
Yao Wei Tjong 姚伟忠
d33ac02538 Refactor build scripts to build Urho3D library as main target.
Other changes in the commit:
- Change build option from URHO3D_BUILD_TYPE to URHO3D_LIB_TYPE. Default value is STATIC.
- Automatically add compiler definition 'URHO3D_STATIC_DEFINE' when linking with Urho3D library statically.
- Move LuaScript subsystem from Extra/ to Engine/.
- Enable FindUrho3D module to also detect Urho3D library target when the FindUrho3D module is being used internally by Urho3D project.
- Configure to build all the samples for iOS and Android platforms also when option to build samples is enabled.
- Export all the Register*Library() global functions.
- Rewrite all the tools, samples, and extras targets to link against Urho3D library.

TODOs:
- Combine engine sub-libraries into one.
- Test builds on non-Linux platforms.
2013-10-21 02:28:29 +08:00
Lasse Öörni
5fb42a277c Re-added "flush GPU command buffer" -feature for controlling timestep variance and input lag. Direct3D only for now. Default off, as can decrease performance. 2013-10-20 21:02:19 +03:00
Lasse Öörni
2ab9fa5429 Merge remote-tracking branch 'remotes/szamq/master' 2013-10-20 12:36:26 +03:00
Paweł Mogiła
d392e9e031 Possibility to set more last timesteps(20) and don't use timestep smoothing, until got full vector 2013-10-20 02:06:03 +02:00
Lasse Öörni
db3bf3fbf9 Added timestep smoothing to Engine. By default the previous 2 frames' timesteps are averaged. 2013-10-19 22:51:47 +03:00
Yao Wei Tjong 姚伟忠
2af7dbdcd9 Move tolua++ add_subdirectory instruction from main to LuaScript.
This should be part of commit 5dbf83c418.
2013-10-20 00:14:00 +08:00
Yao Wei Tjong 姚伟忠
5dbf83c418 Show a warning message when tolua++ tool is missing.
For cross-compiling to be successful, all the tools must be already built natively.
2013-10-19 23:58:23 +08:00
Yao Wei Tjong 姚伟忠
c37ac56ec3 Added license notice. 2013-10-19 22:24:25 +08:00
aster2013
99b4315386 Chanage SharedPtr<T>, please use SharedPtr<T>::Get() to get raw pointer. add Read chunk function in Deserializer class, add Write chunk function in Serializer. 2013-10-19 10:19:28 +08:00
aster2013
27f7a2b31f Add more vector type support in Lua, rename ToluaUrho3DEx file to tolua++urho3d. 2013-10-18 22:04:36 +08:00
aster2013
4e0df133c0 Add "const Vector<String>" support in Lua, now in Lua "const Vector<String>" is a Lua table with string elements. 2013-10-18 20:39:47 +08:00
aster2013
d83f982c57 Change const string reference to const string type. 2013-10-17 23:25:01 +08:00
aster2013
747ab13932 Adjust lua gc step pause parameter, make it gc aggressive. 2013-10-17 23:03:33 +08:00
aster2013
6ae4ab9b7f Add SharedPtr<HttpRequest> support in Lua. 2013-10-17 21:42:35 +08:00
Lasse Öörni
b935b544de Do not check for HttpRequest error on initialization, as the connection init is performed in a background thread and is not immediately ready. 2013-10-17 15:41:00 +03:00
Lasse Öörni
0210a049b2 Block HttpRequest::Read() if not all data is received and connection is still open. This is to allow the other ReadXXX() functions to work properly. Only call Read() with size at or below GetAvailableSize() to ensure no blocking. 2013-10-17 15:03:22 +03:00
Lasse Öörni
0b938bf1ae Further iOS FreeType fix. 2013-10-17 13:12:07 +03:00
Lasse Öörni
9667886273 Restored the previous architecture check for whether to use arm assembly in FreeType. 2013-10-17 12:18:45 +03:00
Lasse Öörni
d1c547d455 Fixed to correctly use Time::Sleep() instead of Sleep(). 2013-10-17 11:48:15 +03:00
Lasse Öörni
2a5bea6bed Always merge the node's own world position to a BillboardSet bounding box. 2013-10-17 00:46:17 +03:00
Lasse Öörni
dc0533e1ae Fix forceAutoHint_ being uninitialized. 2013-10-17 00:32:25 +03:00
Lasse Öörni
347b840b7c Read HttpRequest in a background thread to prevent blocking. Always check all triangle mesh geometries for the closest hit in the RAY_TRIANGLE raycast mode. 2013-10-16 18:03:39 +03:00
Yao Wei Tjong 姚伟忠
cfe7ccf21c Replaced the logic to use VARIANT variable instead.
The CMAKE_CROSSCOMPILING variable cannot be used here because it will be always false since 'buildvm-*' is only built natively (not cross-compiling).
2013-10-16 00:44:57 +08:00
Yao Wei Tjong 姚伟忠
7a562a4e6c Fixed tolua++ 64-bit Mac Os X build when LuaJIT is enabled.
The tolua++ executable segfaults when it is generated without proper linker flags.
2013-10-16 00:17:32 +08:00
Yao Wei Tjong 姚伟忠
aed0da5161 Fixed FreeType debug build. 2013-10-15 22:56:49 +08:00
Lasse Öörni
840d50ce0d Allow to force FreeType autohinting (old 2.3 version behavior.) Reload font faces when global font settings changed. 2013-10-15 15:31:39 +03:00
Lasse Öörni
7cfb9a85f7 Trust FreeType about the font's row height. Possibly improves issue #13. 2013-10-15 00:08:51 +03:00
Lasse Öörni
bc6dd70fae Update FreeType version in documentation, and FreeType's own documentation. Enabled FreeType subpixel hinting. Restored old BlueHighway.ttf. Removed FreeType .mk and jamfiles. 2013-10-14 23:15:52 +03:00
Lasse Öörni
efefbca976 Merge remote-tracking branch 'remotes/friesencr/bump_freetype' 2013-10-14 22:39:09 +03:00
Yao Wei Tjong 姚伟忠
5896e52552 Filter target architecture information if the tool is available.
The initial target architecture detection for LuaJIT on Raspberry Pi native build was painfully slow due to the amount of output produced by compiler.
The filter reduces the number of output rows and speeds up the process significantly.
2013-10-14 10:39:31 +08:00
Chris Friesen
12d22bd8cc update freetype 2013-10-13 16:18:28 -05:00
Lasse Öörni
6e3dde8a10 Merge branch 'font2' 2013-10-13 21:43:42 +03:00
Lasse Öörni
267523a738 Adapted Aster Jian's mutable glyph mechanism. Globally switchable on from the UI subsystem. Configurable font texture max size in UI subsystem. 2013-10-13 21:42:36 +03:00
Yao Wei Tjong 姚伟忠
405e89b5f2 Fixed LuaJIT native build on Raspberry Pi.
Missed out one more condition check before applying -m32/64 flag.
2013-10-14 00:22:32 +08:00
Lasse Öörni
b1b60edbf4 Code cleanup. 2013-10-13 17:28:05 +03:00
Lasse Öörni
ecc37d1f2e If all font's glyph do not fit into one page, begin filling texture pages dynamically as glyphs are used. 2013-10-13 17:17:00 +03:00
Yao Wei Tjong 姚伟忠
441ab9e5d4 Fixed LuaJIT native build on Raspberry Pi.
Only set the assembler flag to either -m32 or -m64 when the target architecture is X64.
2013-10-13 21:46:58 +08:00
Yao Wei Tjong 姚伟忠
04034d088f Fixed native build against latest Pidora/Raspberry Pi firmware.
Related to issue #17.
2013-10-13 16:33:49 +08:00
Yao Wei Tjong 姚伟忠
18a05df3bd Attempt to fix issue#17. Find EGL shared lib explicitly. 2013-10-13 15:50:34 +08:00
Lasse Öörni
9d0eb0ffae If a rigid body is kinematic, set it to never deactivate itself. 2013-10-12 21:22:47 +03:00
Lasse Öörni
8d5aa5bbd2 Fix UNICODE define in SDL not taking effect properly with new MinGW. 2013-10-12 18:37:58 +03:00
Lasse Öörni
e408d1b614 Fix GCC 4.8 undefined behavior warnings. 2013-10-12 18:37:58 +03:00
Yao Wei Tjong 姚伟忠
74601477fe Support LuaJIT amalgamated build.
Added new build option ENABLE_LUAJIT_AMALG.
2013-10-12 22:26:43 +08:00
Lasse Öörni
752051b86f Correct kNet winsock2.h include order. Fixes #16. 2013-10-12 16:58:52 +03:00
Lasse Öörni
c6a6f71aa3 Finalize LZ4 support. Do not repeatedly allocate compressed data buffer. Do not store global blocksize into the package file header. Increased Android read buffer to 32KB. 2013-10-12 15:03:17 +03:00
Lasse Öörni
30ce75fd68 LZ4 compressed package file support. Closes #6. 2013-10-12 15:03:17 +03:00
Lasse Öörni
48a53a61e9 Fix endless loop if trying to print a log message causes more messages to be logged. Closes #14. 2013-10-10 22:42:49 +03:00
Lasse Öörni
c097d8f122 Fix OpenGL texture partial update. 2013-10-10 21:52:31 +03:00
Yao Wei Tjong 姚伟忠
b5836237e9 Remove dependency on Lua when LuaJIT is enabled.
Change build option name from ENABLE_LUA_JIT to ENABLE_LUAJIT.
Change tolua++ lua scripts to be compatible with both LuaJIT and Lua. Replace toluabind.c with the corresponding bytecode.
2013-10-11 02:02:08 +08:00
Lasse Öörni
5da7d24f94 Fixed bug in D3DTexture2D && D3DTextureCube::SetData() when not setting the whole texture. 2013-10-10 18:53:26 +03:00
Yao Wei Tjong 姚伟忠
46f5f21f59 Fixed issue #12. Reorder library dependency list.
It seems Debian is not as forgiving as Redhat on the external library list order.
2013-10-10 17:44:53 +08:00
Lasse Öörni
9b037e938d Mono font rendering fix from Aster Jian's font branch. 2013-10-09 22:14:08 +03:00
aster2013
475ddbe99d Fixed Text Shadow Effect bug. 2013-10-09 22:02:12 +03:00
Yao Wei Tjong
76ba362179 Rephrased instructions to overcome CMake error for LuaJIT cross-compilation build. 2013-10-09 00:59:19 +08:00
Yao Wei Tjong
756728d5d1 Fixed 32-bit LuaJIT compilation on Linux platform. 2013-10-08 23:26:02 +08:00
Lasse Öörni
f6213623ed Workaround for VS2008 64-bit mode. 2013-10-08 12:45:49 +03:00
Yao Wei Tjong
28ab693b6a Fixed LuaJIT CMake error on Windows platform. 2013-10-08 15:47:14 +08:00
Yao Wei Tjong
2b90804c6e Fixed LuaJIT build on Linux, both native and cross-compiling.
The following platforms should be now supported:
Windows, Linux, Mac OS X, IOS, Android, and Raspberry Pi. Not all platforms are fully tested yet.

Cross-compilation may work on GCC/CLang only.
2013-10-08 12:22:56 +08:00
Lasse Öörni
dc2e59af7f Do not use a layout on a ScrollBar as using it can lead to resizing the ScrollBar itself, which is irreversible. Fixes #11. 2013-10-07 23:18:44 +03:00
Lasse Öörni
4186e48b7f Set internal flag on ListView containers before adding as a child. Fixes #10. 2013-10-07 16:38:41 +03:00
weitjong
2ef2e65872 Recreate "assets" directory back in Git repository.
Git does not handle empty directory like SVN. A directory in Git must at least contain a file to be tracked.
Added .gitignore to do the work and at the same time tell Git to ignore all the symlinks/files in this directory.
2013-10-07 12:45:07 +08:00
weitjong
633a7f4804 Renamed IOS and Mac OS X framework macros.
These macros may be used later not just to setup frameworks but also
other linker flags.

Renamed setup_ios_frameworks    -> setup_ios_linker_flags.
Renamed setup_macosx_frameworks -> setup_macosx_linker_flags.
2013-10-07 00:12:01 +08:00
weitjong
1cdd74f3da Support more source file extensions.
Added support for: .mm (Objective-C++ source code) and .s (preprocessed assembly source code).
2013-10-06 18:37:05 +08:00
weitjong
1afb83b10b Generated sources are defined before normal sources.
To be consistent with the rest of the CMakeLists.txt.
2013-10-06 14:01:11 +08:00
weitjong
598c24a4aa Corrected usage of message() command for showing CMake status. 2013-10-06 14:01:10 +08:00
Lasse Öörni
87e1761a31 Reorder GetType() & GetBaseType() functions in headers for consistency. 2013-10-06 02:10:03 +03:00
Lasse Öörni
673d948950 Fix crash when loading another scene in the editor after loading a scene with physics constraints. 2013-10-06 00:11:58 +03:00
Lasse Öörni
c934342cec Trim path in AddTrailingSlash() & RemoveTrailingSlash() to be sure. Fix extra slashes appearing in scene load path in the editor. 2013-10-06 00:03:44 +03:00
Lasse Öörni
36eb726d36 Add the concept of base class type to Object to simplify determining if a ScriptInstance's handle variable is a Node, Component or Resource. Serialize script's resource handles as ResourceRef attributes and allow editing them. 2013-10-05 23:24:39 +03:00
Lasse Öörni
cfd2516000 Return window size for GetDesktopResolution() on mobile platforms due to possible SDL bug. 2013-10-05 19:20:05 +03:00
Lasse Öörni
facbae131e Store an explicit parent ListView pointer to HierarchyContainer to avoid having to search for it through the element hierarchy. 2013-10-05 16:55:24 +03:00
Lasse Öörni
25c7aa53c3 Added GetDesktopResolution() to Graphics. 2013-10-05 02:39:58 +03:00
Lasse Öörni
2fbe931cee Added SetWindowPosition() / GetWindowPosition() to Graphics. 2013-10-05 02:22:02 +03:00
Lasse Öörni
39c8295eb3 Added editable flag to UI elements. When disabled, will not edit the value (eg. LineEdit text) through user input. Fixes #4.
Moved UIElement default virtual function implementations to the header.
Removed clip border from the default style LineEdit, as some letters (eg. lowercase y) will clip with the font size used in the editor & console.
2013-10-04 01:58:46 +03:00
Lasse Öörni
b2d356ad5e Allow using the operating system clipboard in UI. 2013-10-04 01:21:24 +03:00
Lasse Öörni
6ad8a077aa Do not place any demands on OpenGL ES 2.0 color/depth configuration to allow running on eg. RGB_565 pixel format. 2013-10-04 00:06:17 +03:00
aster2003
8098f588b4 Change LuaFunction to subclass of RefCounted. 2013-10-03 21:06:46 +08:00
weitjong
6fec33aada Simplified logic for detecting the availability of GIT command line tool
and GIT repository.
2013-10-03 19:40:52 +08:00
weitjong
242f317ddd Configure Doxyfile according to the value of USE_OPENGL variable. 2013-10-03 17:41:17 +08:00
Lasse Öörni
9a5632f745 Use kNet debug memory leak check on MSVC only. Fixes #1. 2013-10-02 20:29:51 +03:00
weitjong
79017b26de Fixed the condition to check GIT_EXIT_CODE variable. 2013-10-02 21:44:14 +08:00
weitjong
e6b690a9dc Replace svnversion with git tool to generate library revision number." 2013-10-02 21:24:33 +08:00
weitjong
11ffd62f0c Provide new batch and shell script to clean CMake cache for convenience and document it. Adjust line width of Readme.txt to prevent text overwrap in GitHub view. 2013-10-02 17:04:56 +08:00
Lasse Öörni
165b7c8eae Default to ENABLE_SAFE_LUA=0 for improved performance. 2013-10-01 18:40:47 +00:00
Aster Jian
68a081f0b5 Fix minilua link error on Linux. 2013-10-01 05:58:11 +00:00
Lasse Öörni
c169684bcd Crashproofed most of the C++ samples when running with empty resource directories. 18 & 19 will still crash inside Bullet. 2013-09-30 20:12:45 +00:00
Lasse Öörni
869eeac20c Moved ENABLED_LUA_JIT check for InitFPU() to the outer #if directive. 2013-09-30 11:35:27 +00:00
Lasse Öörni
36e165596a Create a dedicated depth stencil texture in View3D so that temporary depth stencils are not constantly generated when resizing a View3D.
Decrease screen buffer idle time before destruction to 1 second.
2013-09-30 11:22:11 +00:00
Aster Jian
11674b421a Fix LuaJIT CMakeLists.txt. 2013-09-30 05:09:44 +00:00
Lasse Öörni
56b453c25e Update to AngelScript 2.28.0 WIP to fix a ternary operator crash bug. 2013-09-29 15:47:55 +00:00
Aster Jian
eccf0fefdd Set generated file to CMAKE_CURRENT_BINARY_DIR/generated folder. 2013-09-29 15:01:28 +00:00
Aster Jian
a570bb8ad6 Add LuaJIT support in LuaScript module, please use ENABLE_LUA_JIT to enable it, just test on Windows. 2013-09-29 14:38:03 +00:00
Aster Jian
2d3740d28c Fixed an error in PushString. 2013-09-29 09:00:59 +00:00
Lasse Öörni
fc2854167c Changed Lua library & object registration order to ensure base classes are correctly set up. 2013-09-28 19:34:45 +00:00
Lasse Öörni
04c3a45d92 Fixed vegetation wind effect on billboards.
Added unlit vegetation technique & example material.
Added alphamasked variation to Unlit shader.
Fixed billboard textures displayed upside down. Note: this is a breaking change for old scene content that manually specifies non-default billboard UV:s.
2013-09-28 09:46:12 +00:00
Lasse Öörni
c7f098de3e Updated documentation on changed Lua function call mechanism. 2013-09-27 21:36:19 +00:00
Lasse Öörni
c3870201b9 Added TransformChanged() script method to ScriptInstance & LuaScriptInstance. Called when node transform changes (hooks to OnMarkedDirty() on C++ side)
Ensure that LuaScriptInstance listens only to its own scene's & physics world's update events.
Changed LuaScriptInstance to use IsEnabledEffective() to make sure it gets disabled if the node is disabled.
2013-09-27 20:56:35 +00:00
Wei Tjong Yao
09ba853aba Keep CMakeCache.txt in between build script invocation to speed things up. Correct typo error. 2013-09-26 20:56:42 +00:00
Aster Jian
4b9f241065 Add LuaFunction class, Add more Lua API in Sound, fixed typo. 2013-09-26 16:18:38 +00:00
Lasse Öörni
04bf45e463 Added support for SDL_DROPFILE event. Input system sends event with filename only, and UI subsystem interprets that to include the element that was dropped onto. The UI variant of the event is only posted when the OS mouse cursor is visible (such as in the editor.) 2013-09-26 12:51:15 +00:00
Lasse Öörni
e5b7b6c916 Re-enable Lua's default loaders. Register own loader last into the table. 2013-09-26 07:23:09 +00:00
Lasse Öörni
d90a9168cf Applied joystick index patch from Gunnar Kriik. 2013-09-25 21:51:32 +00:00
Lasse Öörni
49319ddb57 Disable Lua's inbuilt loaders. This fixes LuaScript's own loader possibly failing on Linux. 2013-09-25 19:44:35 +00:00
Lasse Öörni
4d4cb2cbb3 Fix incorrect assignment. 2013-09-25 17:11:05 +00:00
Lasse Öörni
d22dab085d Restored Variant constructors & equality operators. 2013-09-25 14:30:24 +00:00
Wei Tjong Yao
978bfe0f3d Use the instance variable instead of re-obtaining the graphics subsystem from context. 2013-09-25 12:24:23 +00:00
Lasse Öörni
862ca75a46 Added script (pkgToDox.lua) which regenerates Lua script API documentation. It can be run with a standalone Lua interpreter. 2013-09-25 06:59:47 +00:00
Wei Tjong Yao
24eacf9e3f Attempt to support IOS arm64 build. 2013-09-25 04:46:23 +00:00
Wei Tjong Yao
1250776d0c Added basic.lua as dependency in build script so that C++ to Lua binding codes would be automatically rebuilt. 2013-09-25 04:16:49 +00:00
Lasse Öörni
b8a3157e91 Show enumerations in the generated AngelScript API. 2013-09-24 20:12:08 +00:00
Aster Jian
e4fda39b47 Rename function to solve name conflict with base class. 2013-09-24 15:51:21 +00:00
Aster Jian
241afce241 Handle enabled/disabled state change. 2013-09-24 13:21:27 +00:00
Lasse Öörni
bb9b3a5871 Disabled depth write from Text3D generated material. Now Z-bias can default to 0. 2013-09-24 07:04:27 +00:00
Lasse Öörni
586d878509 Fix enum. 2013-09-23 18:51:50 +00:00
Lasse Öörni
dbd7687c56 Added configurable Z bias to Text3D effect.
Default Text effect color changed to opaque black.
2013-09-23 18:49:50 +00:00
Aster Jian
902300e2e5 Add TextEffect in Text3D class. 2013-09-23 15:00:31 +00:00
Aster Jian
318d2bd5ef Add TextEffect in Text class. 2013-09-23 14:38:21 +00:00
Aster Jian
6dcf4a7c9f Restore text.h 2013-09-23 06:22:01 +00:00
Aster Jian
3e4765e4f4 Change SetRotationSpeed's parameter to Vector3. 2013-09-23 05:54:29 +00:00
Aster Jian
bbf193dd5f Move tolua++ Urho3D extension in a file, Move PushParameters function in ToluaUrho3DEx and change return type to bool. 2013-09-23 05:29:03 +00:00
Lasse Öörni
dd9a9feb61 Allow convenience access to scriptObjects residing in the scene root node. 2013-09-22 23:52:17 +00:00
Lasse Öörni
eb6ba62ab9 Added the LuaScript library to Doxygen documentation.
Added LuaScript doxygen page.
2013-09-22 23:41:27 +00:00
Lasse Öörni
f93a5e4a23 LuaScript library header formatting. Allow parameters also for procedural Lua functions. Renamed LuaScriptInstance::Execute() to ExecuteFunction(). 2013-09-22 22:08:26 +00:00
Lasse Öörni
48532b2509 Added C++ / script integration samples, which reimplement AnimatingScene sample, but use a script object instead of a C++ component.
Added Execute() function to LuaScriptInstance.
Fixed LuaScriptInstance::SetScriptFileName() not loading the script.
2013-09-22 19:15:30 +00:00
Aster Jian
75a55050b7 Fixed Lua Chat sample bug, Replace Variant's constructor with SetXXX function. 2013-09-22 15:12:37 +00:00
Aster Jian
472a2b9bd9 Added Lua Chat sample. 2013-09-22 14:18:44 +00:00
Aster Jian
00342501ab Binding more class in IO lib to Lua, Fixed multi inheritance class. 2013-09-22 05:51:05 +00:00
Lasse Öörni
da45ff6b6b Added SceneReplication Lua sample. 2013-09-21 22:08:05 +00:00
Lasse Öörni
81f5233ef7 Added Lua Ragdolls sample. 2013-09-20 21:50:20 +00:00
Aster Jian
cb19db83d1 Add RenderToTexture and Physics sample in Lua. 2013-09-20 14:59:54 +00:00
Lasse Öörni
7a55a43725 Tidied up the sample descriptions.
Exposed UIElement::SetVar() and GetVar() to Lua script.
Modified the Lua Sprites sample to use custom vars inside UIElement.
2013-09-20 07:30:07 +00:00
Lasse Öörni
1cd73e46fd Exposed StaticModelGroup to script. Ported HugeObjectCount example group mode switching to script versions. 2013-09-19 22:44:06 +00:00
Aster Jian
6e58119be9 Fixed typo error in comment. 2013-09-19 13:49:19 +00:00
Lasse Öörni
f3fa29a614 Fix crash when replacing shader with unshadowed or non-specular variation, and geometry type is something else than static.
Add billboard variation to Vegatation shader. The effect is not very good though, as the billboard vertices do not move individually.
2013-09-19 11:51:05 +00:00
Lasse Öörni
9443cce235 Use a temp variable when calculating a merged world bounding box, as OnWorldBoundingBoxUpdate() may be called re-entrantly from multiple worker threads. 2013-09-19 08:53:58 +00:00
Lasse Öörni
41f627b230 Fixed Urho3D.cpp compile error on VS2008.
Re-entrancy safety for StaticModelGroup::OnWorldBoundingBoxUpdate(): do not resize the worldTransforms_ vector. Instead set maximum size beforehand.
Do not make group mode light as bright in HugeObjectCount so that text remains easier to read.
2013-09-19 07:28:18 +00:00
Lasse Öörni
40c7c0f7af Initialize geometry type of light volume batches. 2013-09-19 00:20:20 +00:00
Lasse Öörni
b3777b652c Fixed StaticModel::SetModel() getting called instead of AnimatedModel::SetModel() in Lua script. 2013-09-18 23:42:48 +00:00
Lasse Öörni
247158b7d8 Added node IDs attribute to StaticModelGroup.
Added raycast & occlusion rendering to StaticModelGroup.
2013-09-18 22:53:10 +00:00
Wei Tjong Yao
e376dc4562 Identity the maintainer of the Urho3D/Lua fork. Regenerate toluabind.c and toluabind.h using bootstrap process. Only call 'standard' script functions when they are available and be silent about it when they are not defined in the Lua script. 2013-09-18 21:49:04 +00:00
Lasse Öörni
0f965d3443 Optimize StaticModelGroup by going through the objects in one pass during transform / bounding box update.
Change light color in HugeObjectCount when the group optimization is enabled.
2013-09-18 20:02:06 +00:00
Lasse Öörni
2e178f1976 Added virtual function to Component for handling node enabled/disabled change. This optimizes StaticModelGroup to not have to subscribe to the scene-global change event. 2013-09-18 19:38:22 +00:00
Aster Jian
0ddb13f148 Add Update, PostUpdate, Save, Load function in LuaScriptInstance, Add one more LoadXML and SaveXML in Scene, Add destructor function in Math lib. 2013-09-18 17:25:16 +00:00
Lasse Öörni
168b69c09d Added StaticObjectGroup component for optimizing culling, light and drawcall processing. Update HugeObjectCount to use it. Not yet exposed to script. 2013-09-18 16:19:15 +00:00
Wei Tjong Yao
e1cf3a4b25 Fixed the include dir. 2013-09-18 10:21:08 +00:00
Wei Tjong Yao
9b023ae862 Add BCM VideoCore include directories globally for RASPI build. 2013-09-18 10:15:22 +00:00
Wei Tjong Yao
e039ba4b29 More useful debug info when loading font face. 2013-09-18 08:56:41 +00:00
Lasse Öörni
0201c1d961 Undefine TOLUA_RELEASE by default for better Lua crash protection. Re-enable with the CMake build option -DENABLE_SAFE_LUA=0.
Fixed some Variant constructors failing in Lua (removed void pointer constructor.)
Removed deprecated RenderMode enum.
Added Camera's ViewOverrideFlags to Lua.
Added MultipleViewports Lua sample.
2013-09-17 19:49:18 +00:00
Aster Jian
80acf3e718 Add CreateScriptObject GetScriptObject Lua API in Node class. 2013-09-17 10:42:14 +00:00
Wei Tjong Yao
5d04c531a1 Pass window resized event (due to device orientation change) from SDL to Urho3D::Graphics class for both Android and iOS as well. Note that the event is only sent when the application has not locked the orientation. Minor code cleaned up on LuaScript subsystem. 2013-09-17 09:55:26 +00:00
Lasse Öörni
216ec576f3 Removed VectorToArray optimization which caused debug mode crash. 2013-09-17 08:32:14 +00:00
Lasse Öörni
720ff4c3b8 Fix GCC build. 2013-09-17 07:24:47 +00:00
Lasse Öörni
c20257cdf7 Merged the shaderData_ and worldTransform_ members of Batch & SourceBatch. The idea is that a batch can define multiple world transforms. For static geometry this means instance transforms. For skinned geometry they are bone transforms instead.
Inlined some functions in View & Drawable.
2013-09-17 07:14:13 +00:00
Aster Jian
78a77a7e36 Add type parameter to VariantMap::GetPtr funcition, so we can get correct type in Lua.
Remove SetCamera and GetCamera etc function in VariantMap, pls use SetPtr and GetPtr.
2013-09-17 05:55:04 +00:00
Lasse Öörni
39fc6dfd64 Fix the scene loading/saving to work from Lua. Before, casts to Deserializer/Serializer would crash due to File's multiple-inheritance. Note that the file still needs to be closed manually. 2013-09-16 20:03:52 +00:00
Aster Jian
5b1879c0ff Add unsubscribe from event functions in LuaScript and LuaScriptInstance. 2013-09-16 15:58:29 +00:00
Lasse Öörni
5f09777de0 Edit comment. 2013-09-15 23:44:33 +00:00
Lasse Öörni
dcb39bf810 Add note of Direct3D9 bool shader constants possibly having no effect.
Add support for Color shader parameters inside a Variant (same as Vector4.)
Parse bool shader parameters in Material & RenderPath.
2013-09-15 23:42:59 +00:00
Wei Tjong Yao
7594f8105a Applied Raspberry Pi patch sent by Colin Barrett. 2013-09-15 23:35:13 +00:00
Wei Tjong Yao
46205d8efd Fixed compilation error on D3D9Graphics class. 2013-09-15 23:18:01 +00:00
Wei Tjong Yao
51d2a7321a Added support to pass boolean shader parameter value. 2013-09-15 21:57:14 +00:00
Lasse Öörni
4696717b7f Code and comment cleanup. 2013-09-15 20:57:07 +00:00
Lasse Öörni
36892ae86c Clear pending ID attributes when the script object is destroyed. 2013-09-15 20:49:02 +00:00
Lasse Öörni
81622fec98 Fixed ScriptInstance node / component handle attributes so that they go through the SceneResolver properly.
Use AM_FILE mode in ScriptInstance script attributes to make it more explicit that they aren't network-serialized automatically.
Update wiki.
2013-09-15 20:46:13 +00:00
Lasse Öörni
dda39f2b7d Initial work for serializing Node / Component handles from a script object automatically. 2013-09-15 19:08:05 +00:00
Lasse Öörni
1034f8856f Added scene load/save to C++ VehicleDemo. 2013-09-15 16:38:29 +00:00
Lasse Öörni
ef43398d7f Added scene load/save to CharacterDemo, both C++ & script versions. 2013-09-15 10:51:27 +00:00
Lasse Öörni
311b66f859 Invert also quad projection when camera is inverted.
Fixed GLSL GetQuadTexCoordNoFlip() function.
2013-09-14 22:49:06 +00:00
Lasse Öörni
0f5456d35e Avoid unnecessary rendertarget blitting in OpenGL light prepass mode.
Fixed too dark ambient lighting and environment cube mapping in OpenGL deferred mode.
Added new shader function GetQuadTexCoordNoFlip() which can be used to sample regular texture resources in postprocessing quad passes and documented it.
Removed Camera::SetFlipVertical() from the Lua script API as it should only be called internally to handle OpenGL / Direct3D9 differences.
2013-09-14 22:20:39 +00:00
Wei Tjong Yao
a5998c8c89 Cleaned up recent CMake module changes to use variable instead of string in regex matches. 2013-09-14 15:54:58 +00:00
Wei Tjong Yao
81af6af406 Fixed the Lua compilation error in GCC build by making sure the right Precompiled.h include file is found by adjusting the GCC include search path. 2013-09-14 09:56:11 +00:00
Aster Jian
8710d28a79 Convert Vector<String> to Lua table, remove const char* type. 2013-09-13 14:41:58 +00:00
Lasse Öörni
8489eca710 Do not needlessly check for Graphics subsystem in headless mode. 2013-09-13 13:11:55 +00:00
Aster Jian
16360d506f Add default String parameter to tolua_tourho3dstring and tolua_tofieldurho3dstring. 2013-09-13 10:27:02 +00:00
Aster Jian
de816ebeaa Remove Urho3D::String binding in Lua. 2013-09-13 05:44:28 +00:00
Aster Jian
26fb71536a Add Urho3D::String support in tolua++. 2013-09-13 05:41:55 +00:00
Wei Tjong Yao
bb2205e690 Avoid hardcoding Lua API pkg names and at the same time improve build performance by having more granular dependency list. 2013-09-13 04:11:26 +00:00
Lasse Öörni
e9535c8336 Fix Lua SendEvent with parameters. 2013-09-12 17:59:32 +00:00
Lasse Öörni
fc0264e4b9 Set clamp address mode for all cube textures by default. In OpenGL mode seams may appear otherwise. 2013-09-12 17:21:06 +00:00
Aster Jian
0f52702801 Fixed Node::LookAtXYZ function default value. 2013-09-12 13:42:47 +00:00
Lasse Öörni
6f78838b5c Cleaned up Lua event subscription code (do not register C++ handler before Lua function is found successfully.)
Moved Lua script object destruction to a function.
Destroy the old Lua script object before creating new.
Unref the object specific event handler functions when destroying Lua script object.
2013-09-12 07:34:16 +00:00
Aster Jian
d830da9801 Add new CreateObject function in LuaScriptInstance, so can create script object from specific Lua file. 2013-09-12 06:05:03 +00:00
Wei Tjong Yao
205fffb4ad Refactored Sample.h to use class forward for Sprite class. Fixed the alignment of the forward classes to be inlined with convention used by other codes in Urho3D. Added the generated LuaScript wiki into SVN. 2013-09-12 05:44:23 +00:00
Aster Jian
c8df2956a2 Remove ExecuteFile function in Lua. 2013-09-12 05:23:03 +00:00
Lasse Öörni
a9f13ebdfe Added LuaScriptInstance subscribe to specific sender's event. 2013-09-11 23:51:03 +00:00
Lasse Öörni
e234e9e8b6 Refactored slider page event parameters to be simpler and fixed unintended scrolling while hovering without mouse button pressed.
Change CheckBox to react to click begin (as it was before) so that ListView hierarchy toggling doesn't break.
2013-09-11 12:54:45 +00:00
Lasse Öörni
e4970dbde6 Fixed corrupted enum list of ListView. 2013-09-11 09:39:12 +00:00
Lasse Öörni
c089229104 Added documentation on HTTP requests. 2013-09-10 21:33:43 +00:00
Lasse Öörni
6350f246e6 Register HttpRequest to script.
Register Deserializer::Read() & Serializer::Write() to script. They operate on Array<uint8>.
Trim HttpRequest headers and do not add empty headers.
2013-09-10 21:11:39 +00:00
Aster Jian
c2eec49b7a Add faster Lua API function in Node class. 2013-09-10 14:35:20 +00:00
Wei Tjong Yao
707668adfa Removed call to finishActivity() as it is now being called from the native C code when the engine exits. 2013-09-10 13:23:03 +00:00
Lasse Öörni
c814081a7a Only let the Java activity finish be requested once. 2013-09-10 13:15:29 +00:00
Lasse Öörni
554355ab63 Disable Engine::Exit() on iOS.
Disable Engine::SetAutoExit(false) on iOS and Android.
On Android, request activity finish from the Java side instead of directly exiting.
2013-09-10 13:01:07 +00:00
Lasse Öörni
8448215df6 Added proper ws2_32 & pthread dependencies for the Civetweb library. 2013-09-10 12:06:27 +00:00
Lasse Öörni
629d96473c Added skybox material.
Demonstrate use of skybox in the Physics sample.
2013-09-10 09:16:13 +00:00
Lasse Öörni
d72a05fea0 Fixed repeat paging of the slider. 2013-09-10 07:00:00 +00:00
Aster Jian
caf5aa4118 Store Lua function to LUA_REGISTRYINDEX table, make better performance. 2013-09-10 05:13:50 +00:00
Lasse Öörni
26fabce801 Added Civetweb library for HTTP requests.
Implemented basic HTTP request functionality. Not exposed to script yet.
2013-09-09 21:58:24 +00:00
Aster Jian
dfc7647277 Replace table with spaces. 2013-09-09 06:50:17 +00:00
Aster Jian
f9e2d7c9d1 Add LuaScriptInstance class. 2013-09-09 06:32:58 +00:00
Lasse Öörni
4eadb9f6c8 Cleaned up HashTable code. 2013-09-08 23:13:45 +00:00
Lasse Öörni
1f87bcb9f9 Added HashTable class, which has fixed bucket count and a limited API to optimize for performance.
Use HashTable to store Technique's passes to speed up querying for them.
2013-09-08 20:23:51 +00:00
Wei Tjong Yao
1799bc5896 Replaced subversion command line tool detection logic as the previous one did not work for cross-compiling cases for Android and Raspberry-Pi. More deterministic Android shared library loading, dependent shared libraries shall be loaded first before the target application shared library. 2013-09-08 18:15:15 +00:00
Lasse Öörni
4741b3cf08 Added Blender exporter from Reattiva. 2013-09-08 10:51:02 +00:00
Lasse Öörni
a24fdc0e96 Check for existence of SVN before querying revision information; create a dummy svnversion.h if not found. 2013-09-08 10:22:16 +00:00
Lasse Öörni
033dcb4757 Setup resource copying on Xcode only, not Apple/GCC. 2013-09-08 09:47:52 +00:00
Lasse Öörni
c1e03c48db Combine octree update & reinsertion queuing.
Queue only one large work item per thread for threaded Octree & View operations.
Protect the network replication dirty sets with mutex if nodes/components are inserted during the threaded update phase.
2013-09-07 21:08:40 +00:00
Lasse Öörni
a1f6681de3 Eliminated one loop of going through the drawables in View::GetDrawables(). Instead perform the same work in worker threads.
Early-exit StaticModel::CalculateLodLevels() if only one geometry per batch.
2013-09-07 16:02:09 +00:00
Lasse Öörni
18e1746e2b Added forward declaration of Constraint to RigidBody.h. 2013-09-07 08:45:31 +00:00
Lasse Öörni
3a908a54c5 Improved Node, RigidBody & SmoothedTransform header comments in regard to world/parent coordinate spaces. 2013-09-06 16:55:10 +00:00
Lasse Öörni
4ce67126e2 Unversioned the SM2/SM3 shader bytecode destination directories. These are instead created by ShaderCompiler on demand. 2013-09-06 06:51:08 +00:00
Wei Tjong Yao
5b38ca8819 Avoid the assumption that E_CONSOLECOMMAND is only being handled by AngelScript and LuaScript subsystems. Cleaned up the direct dependencies to the script subsystems. 2013-09-06 06:03:15 +00:00
Lasse Öörni
2a9be0b23e Cleaner fix for console crashes: only collect messages when posted, and print during PostUpdate.
Slightly darker error text color.
Updated script API & wiki.
2013-09-05 21:09:03 +00:00
Lasse Öörni
1d19abcda3 Further crash fix for Console and -logdebug mode. 2013-09-05 19:53:30 +00:00
Lasse Öörni
f950220350 Fixed potential crash if applying console style caused new messages to be logged.
As UIElement::GetAppliedStyle() returns an empty string for the 'auto' style, also allow to use SetStyle() with empty string to apply the auto style.
2013-09-05 19:26:17 +00:00
Lasse Öörni
372fbed88d Normalize resource names in SanitateResourceName() if they also contain a registered resource dir name, ie. Data/Scripts/NinjaSnowWar.as becomes Scripts/NinjaSnowWar.as. This fixes script file possibly getting loaded twice.
Fixed renderer raycasts returning wrong distance.
Added caseSensitive parameter to several String functions.
Added option to convert file extension to lowercase in GetExtension() and GetFileNameAndExtension() functions.
Removed unnecessary lowercase conversion of extensions, and complicated string compare logic.
2013-09-05 14:57:45 +00:00
Aster Jian
411f6af885 Add const char* parameter to File's constructor. 2013-09-05 10:24:09 +00:00
Wei Tjong Yao
6bef92973d Avoid hardcoding of highlighted console text style. Console subscribes to handle log message only when it itself is ready to do so. Removed redundant row container vector in the Console class. Hide the Console's linedit and preventing it to gain focus when there is no AngelScript or LuaScript subsystem to handle the E_CONSOLECOMMAND event. Fixed UIElement to send E_ELEMENTREMOVED event for RemoveChildAtIndex() method. Fixed Sample.lua to handle the ESC key to dismiss the Console when it is visible. 2013-09-05 08:55:05 +00:00
Aster Jian
1428423af1 Add GetEventSender function, Add Node::GetChild function. 2013-09-05 05:43:00 +00:00
Aster Jian
9f42299eb8 Set error text in red color make it highlight in console. 2013-09-05 02:40:06 +00:00
Lasse Öörni
caf0994b8f Optimize vector/quaternion Normalize() to a no-op if already at unit length. Changed return value to void.
Optimize cache friendliness of Drawable bounding box update by including the local-space bounding box in the base class. Not used in all subclasses.
Optimize Drawable zone handling by making the zone pointers raw pointers instead of weak. Now finding a drawable's zone can be performed in the threaded view preparation phase.
Removed unnecessary collection of whole visible scene bounding box; it is not used anywhere.
2013-09-04 22:08:47 +00:00
Lasse Öörni
e6d0b4d3f3 Normalize ray direction in constructor. 2013-09-04 14:42:32 +00:00
Aster Jian
e803d1c844 Remove unsupported operator != in Color.pkg. 2013-09-04 12:42:09 +00:00
Aster Jian
90c29aecfb Add type to some template method, lick Node::CreateComponent etc. Add LoadChunk and LoadAndExecute in LuaFile, Add DrawDebugGeometry in Renderer. 2013-09-04 11:52:10 +00:00
Lasse Öörni
05ba4bf719 Favor the non-parented case for SetWorld...() and for updating the world transform.
Explain in documentation that the Scene transform is ignored.
2013-09-04 08:26:47 +00:00
Lasse Öörni
580dd746cf Removed transform attributes from Scene.
When a node has the Scene as its parent, assume the parent transform is identity and skip multiplication with the parent's transform.
2013-09-04 06:40:31 +00:00
Lasse Öörni
7a20f0ad03 Optimize repeated GetWorldBoundingBox() in Drawable::UpdateBatches() override functions.
Do not allocate dynamic memory every time when setting a single vertex buffer.
2013-09-03 21:41:52 +00:00
Lasse Öörni
be7636f823 Make the include path absolute in all script examples so that ScriptCompiler can compile them properly.
Renamed Octree::Resize() to Octree::SetSize()
When destroying a scene, destroy root-level components first so that child node components are detached from their internal structures and can be destroyed faster in turn.
Use raw pointers instead of weak pointers in Octree update/reinsertion lists for some performance gain.
2013-09-03 20:45:53 +00:00
Lasse Öörni
94a3c80e34 Added C++ version of HugeObjectCount example, and animation to both versions.
Added note of event subscription time to the first C++ example.
2013-09-03 19:32:10 +00:00
Lasse Öörni
a71f5fc588 Fixed bad performance of cleaning up a scene with many objects. 2013-09-03 17:49:15 +00:00
Lasse Öörni
6229e36a1e Show filename for Lua subsystem error messages where possible. 2013-09-02 18:02:34 +00:00
Lasse Öörni
eef5b89766 Removed the retained message mode from the AngelScript subsystem. Instead, Application class will remember error log messages and display them if ErrorExit() is called without a custom message. This allows showing all error messages from Lua script subsystem equally. 2013-09-02 17:46:23 +00:00
Lasse Öörni
ccdd318eff Use matching else-if construct in AngelScript & Lua Sample code.
Changed ErrorDialogs in the Lua subsystem to error logging (subsystems should not pop up dialogs on their own.)
2013-09-02 14:23:47 +00:00
Wei Tjong Yao
274c06d3a4 Use the else-if construct as the conditions are mutually exclusive. 2013-09-02 13:59:08 +00:00
Lasse Öörni
55ef6dd6c3 CharacterDemo & VehicleDemo in script. 2013-09-02 13:40:10 +00:00
Lasse Öörni
9cbea3b331 Added SoundEffects, Navigation, Chat & SceneReplication samples in script. 2013-09-02 00:05:05 +00:00
Lasse Öörni
b9cc284048 PhysicsStressTest & Ragdolls samples in script. 2013-09-01 17:36:01 +00:00
Lasse Öörni
869046d7cb Added Physics sample in script. 2013-09-01 12:05:11 +00:00
Lasse Öörni
1eae2e13ab Split UIElement::OnClick() to OnClickBegin() & OnClickEnd(), added global UIMouseClickEnd event, cleaned up Button & CheckBox click handling, based on Chris Friesen's work.
Fixed bug in FileSelector which would cause potentially any keypress to select a file.
Added missing icon for View3D UI element.
2013-09-01 10:52:46 +00:00
Lasse Öörni
c8a1bc96d7 Refactor UI to not duplicate code for touch and mouse handling. 2013-08-31 22:40:57 +00:00
Lasse Öörni
30b7905d98 Decals & MultipleViewports samples in script.
Fixed camera rotation in VehicleDemo.
2013-08-31 14:22:36 +00:00
Lasse Öörni
3c6a0f57d7 In the SoundEffects sample, start/stop music when buttons released. 2013-08-31 12:41:37 +00:00
Lasse Öörni
f7ac7eb713 Applied window fixed resizing patch from Sebastian Delatorre. 2013-08-31 10:28:48 +00:00
Lasse Öörni
956df0a8f6 Added SkeletalAnimation sample converted to script.
Use ScriptInstance component in AnimatingScene script sample to show the "raw" way of creating script objects.
Clamp function call count to 99999 in profiler text output, as otherwise the printing goes out of line.
2013-08-30 14:41:47 +00:00
Lasse Öörni
7f64104825 Added -p command line argument, which specifies resource paths to use.
Added IsAbsolutePath() function to FileSystem.
Removed unnecessary double error message from ResourceCache.
2013-08-30 11:03:07 +00:00
Lasse Öörni
7b4ae12fe0 Ported Sprites, StaticScene & AnimatingScene samples to AngelScript. 2013-08-29 21:34:34 +00:00
Lasse Öörni
10abc4414b Ported HelloGUI sample to script. 2013-08-29 15:53:55 +00:00
Lasse Öörni
5094541394 Ported the first sample to AngelScript. 2013-08-29 14:11:34 +00:00
Wei Tjong Yao
59b5967910 Simplify the build script as ABSOLUTE_PATH_LIBS variable works both ways. 2013-08-29 09:40:35 +00:00
Wei Tjong Yao
643f066179 Use the ABSOLUTE_PATH_LIBS variable instead if the library is found. Just in case the library is found in a path that contains keywords that may be stripped. 2013-08-29 09:11:25 +00:00
Lasse Öörni
1674447226 Use absolute path of d3dcompiler library.
Fixed compiling when Direct3D SDK is not found.
2013-08-29 08:09:29 +00:00
Wei Tjong Yao
c3ea4d7a85 Adjusted Android logging level in SDLActivity java class. Added compiler flag for RASPI build to suppress warning spam about mangling of va_list. Cleaned up header includes in Urho3D class. 2013-08-29 06:34:12 +00:00
Aster Jian
367a930a93 Add Lua File class. Make Lua file as resource. 2013-08-29 05:56:35 +00:00
Lasse Öörni
26901cdc4c Added vehicle sample. 2013-08-28 23:35:10 +00:00
Lasse Öörni
04b00263b0 Moved CharacterDemo to the samples.
Use forward declarations in the samples.
2013-08-27 21:45:43 +00:00
Wei Tjong Yao
a01f6ab183 Enhanced post-build automation for Android build to copy all dependent shared libraries to target library output directory. 2013-08-27 16:01:09 +00:00
Lasse Öörni
3b32acf27f Added possibility to clear scene of only replicated or local content. Do not clear local content from a client scene when joining a server. This makes the startup of the SceneReplication sample faster, as the static scene is not replicated.
Exposed missing Node::RemoveAllComponents() to script.
2013-08-27 15:15:30 +00:00
Wei Tjong Yao
0812e0ac07 Cleanup remnant reference to now defunct variable. 2013-08-27 14:45:01 +00:00
Wei Tjong Yao
9419efa04f Change the variable name back to STRIP_LIBS to avoid variable name clash with other macro. 2013-08-27 14:38:40 +00:00
Wei Tjong Yao
3efb36599a Refactored Findxxxx and Urho3D-CMake-magic modules to let linker uses absolute path to the found libraries. Updated documentation accordingly. 2013-08-27 14:31:05 +00:00
Wei Tjong Yao
0ff4759eba Fixed condition expression in post-cmake() function. 2013-08-27 05:09:31 +00:00
Lasse Öörni
dfb318b4f9 Added scene network replication sample. 2013-08-27 00:12:07 +00:00
Wei Tjong Yao
1051808eee Android java classes code cleanup. 2013-08-26 15:44:37 +00:00
Wei Tjong Yao
3d9858020f Enhanced SDLActivity java class to automatically load all the shared libraries. Enhanced the Urho3D-CMake-magic module to copy Urho3D shared library to target Android library output path. 2013-08-26 14:02:57 +00:00
Lasse Öörni
796d8871b9 Sample code cleanup. 2013-08-26 07:41:02 +00:00
Lasse Öörni
426d664990 Added network chat sample. Cleaned up UI creation code in SoundEffects sample.
Include kNet include dir when finding Urho3D library.
Reset the server connection pointer before sending disconnection event in the Network subsystem.
2013-08-25 23:42:22 +00:00
Lasse Öörni
31da083870 Disallow headless mode from the samples as they do not nullcheck eg. for the Graphics subsystem and would crash. 2013-08-25 21:25:15 +00:00
Lasse Öörni
cfb11454b4 Refactored raycast code in the Decals & Navigation samples.
Added adding & removing obstacles in the Navigation sample.
2013-08-25 20:50:04 +00:00
Lasse Öörni
829bd2a221 Clean up some comments. 2013-08-25 18:52:02 +00:00
Lasse Öörni
fc1c2e6f13 Initial Navigation sample.
Added overload of NavigationMesh::DrawDebugGeometry() that finds the DebugRenderer component from the root scene node automatically.
2013-08-25 18:47:48 +00:00
Lasse Öörni
506915adca Applied physics patch from amadeus_osa. Do not make a copy of triangle mesh collision data, improved constraint behavior under external forces (fix from Bullet SVN.) 2013-08-25 17:01:41 +00:00
Wei Tjong Yao
cd91a6f1f7 Always use non-rooted search (even when cross-compiling) to find the source tree and library based on URHO3D_HOME environment variable. 2013-08-25 16:44:03 +00:00
Lasse Öörni
dee404c133 Removed unnecessary conversion step from RampGenerator. 2013-08-25 15:53:19 +00:00
Lasse Öörni
c9e2b49f5d Queue update when View3D scene changed. 2013-08-25 12:31:23 +00:00
Lasse Öörni
c46d4a1972 Added missing license texts. 2013-08-25 12:15:22 +00:00
Lasse Öörni
9ff0247c68 Applied material editor preview patch from primitivewaste, which also adds View3D UI element class. 2013-08-25 12:11:52 +00:00
Lasse Öörni
056acfcc68 Added sound effects example. 2013-08-25 09:20:56 +00:00
Wei Tjong Yao
463ce2a65d Enabled option to build Urho3D static and shared library (without main entry point) for Android. Fixed debug compiler flags being defined multiple times for Android build. Added post-build command to strip the generated Urho3D shared library if it is built for embedded devices. Enhanced cmake_gcc.sh to automatically fix the generated Eclipse project setting files for Android build. 2013-08-25 08:08:52 +00:00
Lasse Öörni
e7558a3be9 Demonstrate rolling friction in the Ragdolls sample. 2013-08-24 20:21:16 +00:00
Lasse Öörni
2271d6ba83 Added Ragdolls sample.
Added template version of RemoveComponent to Node.
2013-08-24 14:20:02 +00:00
Aster Jian
6aceaa40e0 Restore CMakeLists.txt, remove UIRocket. 2013-08-23 11:01:03 +00:00
Aster Jian
92a3cd6eec 2013-08-23 10:49:41 +00:00
Lasse Öörni
31f4ac0bab Larger plane in the Physics sample. 2013-08-23 05:09:26 +00:00
Aster Jian
861dfadfa3 Add missing header file. 2013-08-23 04:37:08 +00:00
Lasse Öörni
81d87af14c Make the mesh objects larger for more interesting collision response. 2013-08-22 21:29:45 +00:00
Lasse Öörni
e7e469cf5a Added PhysicsStressTest sample. 2013-08-22 21:23:20 +00:00
Lasse Öörni
42093ea88c Allow programmatic control of the mip reduction settings of Texture.
Fixed fonts loading incorrectly when texture quality is not at maximum.
2013-08-22 20:36:52 +00:00
Lasse Öörni
58903874f7 Scene node name consistency in the samples. 2013-08-22 06:35:49 +00:00
Lasse Öörni
056a071ed2 Adjusted physics sample materials. Let the boxes fall a bit in the beginning.
Copy export header only if it has changed to prevent unnecessary engine rebuild.
2013-08-22 06:30:41 +00:00
Wei Tjong Yao
c41f52c38d Added Bullet source directory into header search path for finding its debug draw interface class header file. 2013-08-22 03:49:53 +00:00
Lasse Öörni
b8882c588f Adjust the physics sample initial object positions & friction. 2013-08-21 23:07:16 +00:00
Lasse Öörni
497bd8c101 Added Physics sample. 2013-08-21 22:58:41 +00:00
Lasse Öörni
c14bf5bd69 Added Bullet rolling friction parameter to RigidBody.
RigidBody code cleanup.
2013-08-21 18:44:58 +00:00
Wei Tjong Yao
309218444d Fixed keyboard event handler for Raspberry Pi platform - have to translate native scancode to SDL scancode first for key modifiers to work. 2013-08-21 15:33:19 +00:00
Lasse Öörni
27f1f3ec59 Use the same object count in RenderToTexture as in AnimatingScene. 2013-08-21 10:03:22 +00:00
Lasse Öörni
dbdafefaae Set bilinear filter on the render texture so it looks better up close. 2013-08-20 23:29:36 +00:00
Lasse Öörni
99b2724708 Adjust object & camera position in the RenderToTexture sample. 2013-08-20 23:27:41 +00:00
Lasse Öörni
87a6ee9578 Added MultipleViewports & RenderToTexture samples.
Added diffuse unlit & notexture unlit techniques.
Do not use occlusion if viewport is very tall compared to width, as the pixel width of the occlusion buffer is fixed and would result in large CPU time consumption.
2013-08-20 23:23:42 +00:00
Lasse Öörni
4a31966a14 Updated comments in the samples.
Updated script API.
2013-08-20 07:08:02 +00:00
Lasse Öörni
e4ed439148 Added common rendering quality controls to all samples.
Fixed quality for the Logo & LogoLarge textures.
2013-08-20 06:39:01 +00:00
Lasse Öörni
7de74e6d83 Fixed AnimatedModel bone bounding box not updating when bones are moved without animation, eg. ragdolls.
Remove AnimationController & all AnimationStates from the ragdolls when creating.
2013-08-19 22:52:49 +00:00
Lasse Öörni
cc494ac7e7 Added safety check for the number of animation states. 2013-08-19 20:31:00 +00:00
Lasse Öörni
54a0c90d7a Update AnimatedModel's bounding box with bone accuracy only when the animation is updated. Otherwise transform the previous last calculated bone bounding box. This results in a significant performance boost when a large amount of AnimatedModels are both moved, and animated. 2013-08-19 20:24:01 +00:00
Lasse Öörni
0f4fbda5fb Added Decals example.
Refactored SkeletalAnimation example to use a custom component as well.
2013-08-19 19:45:27 +00:00
Lasse Öörni
40d345ab24 Copy import library separately to Lib directory for a MSVC shared library build. 2013-08-19 14:46:22 +00:00
Wei Tjong Yao
3d48e05714 Fixed find_library() command in FindUrho3D.cmake module to correctly separate list variables with their respective argument separator. 2013-08-19 07:41:44 +00:00
Wei Tjong Yao
727d417bde Enhanced FindUrho3D.cmake module to find library with debug postfix on windows platform. It should work for all build configurations. 2013-08-19 07:19:03 +00:00
Wei Tjong Yao
cfc4ae497f Enhanced FindUrho3D.cmake module to find library with debug postfix on windows platform. 2013-08-19 07:03:34 +00:00
Wei Tjong Yao
9b8b2580b9 Added '_d' postfix when building Urho3D library in Debug configuration on Windows platform. 2013-08-19 06:10:00 +00:00
Lasse Öörni
1590de8b63 Removed offending function from SDL which prevented proper startup when Urho3D was built as a shared library on Windows. 2013-08-19 00:37:28 +00:00
Lasse Öörni
8f240d46bf Disable some more DLL build related warnings. 2013-08-18 22:15:56 +00:00
Lasse Öörni
9f9a238836 Windows shared library build fixes. 2013-08-18 20:26:10 +00:00
Lasse Öörni
26a9bc763e Added Temporary flag to Serializable, which means it will not be saved if enabled. Currently the sub-nodes created by Terrain are marked temporary.
Temporary objects are by default not shown in the editor.
Added trigonometric functions which take degrees argument into the C++ API, not just script.
Edited the Billboards sample.
Made the Urho3D logo in the samples slightly transparent.
2013-08-18 16:50:28 +00:00
Wei Tjong Yao
594457df82 Removed line to define ENABLE_64BIT for Visual Studio based on cmake generator as the define must already been set explicitly when invoking cmake_vsxxxx.bat in order to get Win64 generator. Fixed the expression to check whether ENABLE_TOOLS is defined. Minor update on build options documentation. 2013-08-18 06:16:16 +00:00
Lasse Öörni
a9eb0e1e61 Added Billboards sample.
Some code cleanup/formatting of the other samples.
2013-08-17 23:45:09 +00:00
Lasse Öörni
f74f4dd6f8 Moved the logic for determining whether to use executable directory or the current working directory into FileSystem::GetProgramDir(). 2013-08-17 21:09:47 +00:00
Lasse Öörni
1ef35d353c Added skeletal animation sample.
Fixed build of samples.
Removed line to disable MinSizeRel build type in CMake script as it seems to have no effect any longer.
Removed unused function to get AnimationState by C string of animation name.
2013-08-17 18:38:07 +00:00
Lasse Öörni
7d235c8458 Added touch input double click handling in the UI.
Fixed CopyData.bat paths.
2013-08-17 13:43:25 +00:00
Wei Tjong Yao
dfd142c7d2 Added Raspberry Pi bootstrap back to fix raspi build. Moved the xmlstarlet logic to cmake_gcc.sh for code reuse. Added ANDROID_ABI into build options documentation. 2013-08-17 06:27:32 +00:00
Wei Tjong Yao
ccd6a926ae Added Urho3D library build option for IOS. 2013-08-16 08:56:55 +00:00
Lasse Öörni
45e0907cb8 Use D3D_SDK_VERSION when initializing the Direct3D9 device. 2013-08-16 08:35:38 +00:00
Wei Tjong Yao
cd59d5de56 Assume MinGW generates object files with .obj as suffix. 2013-08-16 06:49:05 +00:00
Lasse Öörni
9047bfa1ab Use DLL runtime by default. Proper fix for building the Urho3D library with VS2008. 2013-08-15 23:00:10 +00:00
Lasse Öörni
ce9154d545 Added missing URHO3D_API defines to some derived classes.
Fixed obj file copying when building Urho3D library on VS and not using USE_MKLINK.
2013-08-15 21:02:54 +00:00
Wei Tjong Yao
478ace41cc Determine the relative path to the CoreData and Data directories correctly for symlink creation, regardless of main executable target location in project source tree. 2013-08-15 18:58:39 +00:00
Wei Tjong Yao
79861d9ee9 Changed the regex replacement command with get_filename_component() command. 2013-08-15 17:30:43 +00:00
Wei Tjong Yao
d37cb04fd9 Added post-build custom command when setting up main executable to facilitate debugging and running the main executable within Xcode itself. 2013-08-15 17:18:34 +00:00
Lasse Öörni
10b4fd2438 Improved fix for OS X fullscreen transition problem. 2013-08-15 07:16:49 +00:00
Lasse Öörni
e903c5edff Before closing an OpenGL SDL window, set it to windowed to fix annoying transition effect on OS X. 2013-08-15 00:00:25 +00:00
Lasse Öörni
0900977b78 Applied some post-SDL 2.0.0 fixes from SDL official repository. 2013-08-14 22:49:34 +00:00
Lasse Öörni
8f0182d1e9 In case SDL's window resize event is handled late, use the current window size at the time of handling, not the event parameters.
Removed unnecessary OS X SDL modification.
2013-08-14 21:42:59 +00:00
Lasse Öörni
9afac28ea0 Do not treat DirectX SDK not found as a fatal error, as it is still possible to compile if eg. Windows 8 SDK is installed instead. 2013-08-14 21:17:32 +00:00
Lasse Öörni
6b4a5fd296 Added cmake_mingw.bat contributed by Mika Heinonen. 2013-08-14 15:30:20 +00:00
Wei Tjong Yao
3fd0638d62 Removed no-warn-unused-cli option as it hid typo error in passing build options. 2013-08-13 23:11:36 +00:00
Lasse Öörni
a899f7293e Capitalize name of CMake script directory. 2013-08-13 20:51:20 +00:00
Lasse Öörni
5bfde24e0b Updated to stable SDL 2.0. 2013-08-13 13:20:59 +00:00
Wei Tjong Yao
ed01bd0959 Fixed Application class namespace declaration. 2013-08-12 17:04:57 +00:00
Wei Tjong Yao
4db3bbaf07 Added SDL include directory into header search path. 2013-08-12 13:39:47 +00:00
Lasse Öörni
e2d2c01636 Added AnimatingScene sample. 2013-08-11 22:24:26 +00:00
Lasse Öörni
972124649e Include only one haptic driver (either windows or dummy) on Windows to fix MinGW build without DX joystick support, and to ensure no duplicate object file names. 2013-08-11 20:47:50 +00:00
Wei Tjong Yao
ddc3670238 Attempt to fix MinGW build and some other code cleanup. 2013-08-11 14:30:22 +00:00
Wei Tjong Yao
217c851811 Create out-of-source build directory for Android on Windows platform when mklink option is enabled. 2013-08-10 17:58:33 +00:00
Wei Tjong Yao
5f32c9dfd0 Rectified source code alignment. 2013-08-10 15:50:51 +00:00
Wei Tjong Yao
83302c3de4 Added mklink support for VS generator, enable by specifying '-DUSE_MKLINK=1' 2013-08-10 15:49:09 +00:00
Wei Tjong Yao
63a1dcc892 Use symlink to object directory instead of direct copying for Xcode. 2013-08-10 04:53:24 +00:00
Wei Tjong Yao
a01faa3ef2 Fixed static and shared library build using Xcode. 2013-08-09 16:19:58 +00:00
Wei Tjong Yao
38ae7f36c5 Fixed the resource path for MacOSX. 2013-08-09 11:26:47 +00:00
Wei Tjong Yao
4524754fda Reverted back to use native copy command. 2013-08-09 10:57:52 +00:00
Wei Tjong Yao
c789be7259 Reverted back Android project properties. 2013-08-09 10:32:07 +00:00
Wei Tjong Yao
02512cecf9 In order to move the out-of-source 'build' directory back to Urho3D project root directory, all the source codes sub-directories are now moved down one level to a new directory under project root called 'Source'. 2013-08-09 10:29:22 +00:00