Commit Graph

5243 Commits

Author SHA1 Message Date
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