Commit Graph

5243 Commits

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