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