Commit Graph

452 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
dbeb244fb5 Minor clean up on sample code. Move Console & HUD to settings joystick. 2014-04-18 18:06:41 +08:00
thebluefish
907c6a15f5 Bugfixes 2014-04-18 00:03:55 -07:00
thebluefish
1ba75f5222 Resolved virtual joystick support
- Added function to set virtual joystick visibility.
- Updated samples.iml to reflect changess.
2014-04-17 23:50:06 -07:00
Yao Wei Tjong 姚伟忠
ec25e56046 Refactor Samples to support yaw and pitch by touch on mobile platform. 2014-04-17 01:56:59 +08:00
aster
fff89efdd8 Make 2D camera auto aspect ratio. 2014-04-16 10:59:01 +08:00
Yao Wei Tjong 姚伟忠
c78f34d5ca Improve the hats response on screen joystick (in joystick event mode).
Refactor Samples base class to take advantage of the screen joystick.
Add second screen joystick layout for changing app settings.
Closes #264.
2014-04-15 22:59:10 +08:00
aster2013
2c672b154b Remove animation only attribute support. 2014-04-12 21:47:08 +08:00
aster2013
afaa9c7702 Demonstrate usage of spline interpolated animation, and set animation to node's world position(animation only attribute). 2014-04-12 13:12:29 +08:00
Aster Jian
b7917af4fd Revert "Remove wrap mode default value."
This reverts commit 3f832eb5d0.
2014-04-11 13:38:54 +08:00
Aster Jian
3f832eb5d0 Remove wrap mode default value. 2014-04-11 12:54:49 +08:00
Yao Wei Tjong 姚伟忠
5ce5be8d66 Enhance FileSystem class to also able to execute console command. 2014-04-11 12:44:20 +08:00
aster2013
d2f9db942a Add LightAnimation in AngelScript.[ci skip] 2014-04-09 23:17:45 +08:00
aster2013
00b57c1231 Add LightAnimation sample, revert StaticScene. 2014-04-09 23:01:39 +08:00
aster2013
a2197916a7 Update LuaIntegration sample. 2014-04-09 22:24:52 +08:00
aster2013
496fb3e74e Refactor AttributeAnimation. 2014-04-09 22:24:17 +08:00
aster2013
da7936dd68 Add attribute animation sample in StaticScene. 2014-04-09 22:24:15 +08:00
Lasse Öörni
9066f6873d Merge remote-tracking branch 'remotes/origin/transformspace' 2014-04-05 16:59:24 +03:00
Yao Wei Tjong 姚伟忠
46285baf97 Refactor build scripts to group Urho3D specific build option.
Initial support of project configuration and generation via cmake-gui.
2014-04-05 00:20:56 +08:00
Lasse Öörni
67d603d8e5 Node transform space refactoring. Translate(), Rotate() and LookAt() functions take a transform space (local, parent or world). Translate() has a behavior change: default space is local, as that is most often used in eg. camera movement, and is consistent with the default for rotations (the earlier fixedAxis = false was same as local space). The redundant TranslateRelative() function is removed. Add RotateAround() function, which allows rotating around a pivot in either local, parent or world space. Closes #295. 2014-04-03 22:36:29 +03:00
Alex Parlett
a22a24c0e4 Rename RigidBody::Phantom to RigidBody::Trigger to align it with common terminology for physics. 2014-03-24 20:44:34 +00:00
aster2013
ff0d806587 Rename ParticleModel2D to ParticleEffect2D. 2014-03-24 12:09:51 +08:00
aster2013
fc0e65a8d9 Add Lua and AngelScript binding. 2014-03-21 17:48:30 +08:00
aster2013
9cd40fb07f Revert attribute animation. It will be added in a new branch. 2014-03-21 10:44:18 +08:00
aster2013
29e930d495 Add commend and use shared ptr for attribute animation. [ci skip] 2014-03-20 22:32:49 +08:00
aster2013
b1b9c34c11 Add simple attribute animation system, and change StaticScene to test it. 2014-03-20 22:23:33 +08:00
aster2013
86ae9190a7 Fix particle emitter, add radial particle in sample. 2014-03-19 23:09:10 +08:00
Lasse Öörni
12e6bcf4e0 Fixed typo and improved SoundSynthesis example comments. 2014-03-19 13:43:55 +02:00
Lasse Öörni
e8c550a98f Added documentation for the sound streaming feature. 2014-03-19 12:28:11 +02:00
Lasse Öörni
a06e4238b3 Simplify sound stream code and improve the SoundSynthesis sample. Closes #257. 2014-03-19 12:15:31 +02:00
aster2013
6e5d43a56b Replace plist particle file with Staring extension particle system (pex). 2014-03-19 16:11:02 +08:00
Lasse Öörni
1cc8f2b82b Added BufferedSoundStream class and sound synthesis C++ example.
Removed SharedArrayPtr DynamicCast() as it made no sense; replaced with ReinterpretCast().
2014-03-19 09:18:13 +02:00
aster2013
c7153fd67d Add Urho2DPhysicsRope sample.[ci skip] 2014-03-18 18:43:00 +08:00
Yao Wei Tjong 姚伟忠
10cbd8deed Add a simple Android samples launcher activity.
The launcher activity will only be shown when there are actually more samples built into the deployed apk. If no other samples then the launcher will just launch Urho3DPlayer without prompting. Otherwise a list view is presented in the launcher activity to let user to choose which sample library to be loaded.
Due to unloading of shared library is not supported from Java side, currently once a sample library is being loaded, the launcher cannot unload the library and let user to choose other samples. Until a workaround is found, user would have to perform a long pressed on a home button, close the app, and restart it again from scratch.
2014-03-18 16:33:27 +08:00
aster2013
c5c715ee84 Add 2D sprite to physics samples.[ci skip] 2014-03-14 14:03:14 +08:00
aster2013
8dca005f9c Add Lua binding and AngelScript Binding.[ci skip] 2014-03-14 13:30:02 +08:00
aster2013
b9940bdac1 Apply node transform to collision shape, add CollisionCircle2D.[ci skip] 2014-03-13 22:03:38 +08:00
aster2013
5bb12f4a2d Add Box collision shape. 2014-03-13 13:14:15 +08:00
aster2013
74a059d899 Add Urho2D Physics sample. 2014-03-12 20:59:39 +08:00
aster2013
e116ab8150 Add 2D physics class. 2014-03-12 20:58:35 +08:00
aster2013
130551f4d8 Add fixed pixel size (user don't need change the value). 2014-03-12 19:58:32 +08:00
Yao Wei Tjong 姚伟忠
24aeabb02f Move back MarkAllDrawable2DDirty() to Node class as public method.
The method could be called to mark Drawable2D as dirty for other reasons and not just because of Scene's pixels per unit attribute has changed. It could also be called on a particular node instead of Scene node to partially mark the attached 2D components as dirty.
2014-03-11 23:09:27 +08:00
aster2013
c96d44fcb8 rename unitSize2D to pixelsPerUnit. 2014-03-11 22:39:18 +08:00
aster2013
3101a308f9 Change default unitSize2D to 100, Apply model scale in ParticleModel2D. 2014-03-11 22:14:50 +08:00
Lasse Öörni
0f3d781c3b Update copyright year in some files. Added copyright notice to ForEach.h. 2014-03-10 00:56:06 +02:00
Lasse Öörni
d0595084d4 Initial implementation of LogicComponent base class, which should make writing C++ logic/updater components more similar to scripting. Refactored C++ examples to use LogicComponent where possible. 2014-03-06 21:47:39 +02:00
Lasse Öörni
7fd40cf630 Moved the test for ENABLE_TESTING into GetConsoleInput(), as script applications can not know whether it is safe to call.
Show OS mouse cursor in ConsoleInput sample.
2014-03-04 12:16:31 +02:00
Lasse Öörni
ac21be3e39 Implemented ConsoleInput sample in AngelScript. Added possibility to the Script subsystem to disable automatic execution of console input as AngelScript. Tidied up newlines from the ConsoleInput sample. 2014-03-04 11:51:28 +02:00
Yao Wei Tjong 姚伟忠
c08e1a2822 Fix last sample to bypass taking input from stdin during CI testing.
For some reason, xcodebuild does not support non-blocking stdin read while running the last test. Interestingly xctool does not have this problem. Alas, we use xcodebuild instead of xctool when performing testing because the former provides immediate testing results.
2014-03-04 16:58:33 +08:00
aster2013
2d8f14ce12 Merge branch 'master' of https://github.com/urho3d/Urho3D 2014-03-04 11:51:25 +08:00
Yao Wei Tjong 姚伟忠
b5f9b52717 Minor fixes on C++ ConsoleInput sample class. 2014-03-04 11:39:36 +08:00
aster2013
3e7aa8512e Fixed warning. 2014-03-04 11:21:06 +08:00
Lasse Öörni
dd77e395b8 Process Urho threat level first to avoid message spam when he kills you and other stuff is also happening. 2014-03-04 02:13:53 +02:00
Lasse Öörni
1ed123194c Fixed 'hide' command behaving incorrectly during Urho cooldown period. 2014-03-04 02:08:24 +02:00
Lasse Öörni
e2779d0509 Added ConsoleInput C++ example. Closes #159.
When setting the number of rows, ensure Console sets the text style if available, so that the row container appears immediately with the correct height.
2014-03-04 02:01:50 +02:00
Yao Wei Tjong 姚伟忠
1a7d032425 Misc. minor fixes. 2014-03-02 16:16:50 +08:00
aster2013
7cfb4fe6be Add Urho2DParticle sample in C++. 2014-03-01 13:52:32 +08:00
aster2013
7c609e4629 Add AnimatedSprite to sample. 2014-02-28 19:20:10 +08:00
aster2013
383da73503 Add Urho2DSprite sample. 2014-02-27 23:20:33 +08:00
Lasse Öörni
076b333124 Simplify pointer usage in HelloGUI example. 2014-02-21 10:25:33 +02:00
Lasse Öörni
47836474e2 Variant pointer refactoring. Variant can now hold a weak pointer to a RefCounted object, which is safer, and is returned using GetPtr(). Engine events have been converted to use that mechanism. GetPtr() is also directly available in AngelScript, as well as assigning a RefCounted or derived class handle to a Variant.
Important: when you assign a non-RefCounted object as a void pointer to a Variant, you must now retrieve it with GetVoidPtr() instead.

The legacy methods in AngelScript for obtaining object handles from Variant, ie. GetNode(), GetUIElement() etc. still exist, but are considered deprecated.
2014-02-15 19:22:29 +02:00
Lasse Öörni
b496c5a012 Added a square Urho icon (same as the Android icon) to use for the samples on desktop. 2014-02-12 15:19:58 +02:00
Lasse Öörni
fd140ddb32 Minor code reorganization of the HelloGUI example. Removed SubscribeToEvents() as it was only used for 1 event and events were also subscribed to elsewhere. 2014-02-11 21:41:57 +02:00
Mike3D
a0f42bee35 Added drag and tooltip to sample#2 HelloGUI 2014-02-11 09:49:53 +01:00
Lasse Öörni
6d5ddc23e0 Bump the copyright for 2014. 2014-02-01 14:37:21 +02:00
Lasse Öörni
50c54346eb Check for not overshooting the target when moving in the Navigation sample. 2014-02-01 14:37:19 +02:00
Lasse Öörni
be060dfb8a Fix Jack looking in weird direction if teleporting to above or below. 2014-02-01 01:22:40 +02:00
Lasse Öörni
5062dbba42 Sanitate screenshot name in the samples to ensure saving it succeeds. Prepend the executable path properly. Flip image in OpenGL Graphics::TakeScreenShot() instead of having the user to do it. 2014-02-01 01:07:03 +02:00
Lasse Öörni
2af8244543 Convert the Navigation sample to move the Jack character from current position to new target. Shift + LMB to teleport. 2014-02-01 01:04:50 +02:00
Mike3D
75321c632d Extended Sample with ability to set window title and icon and take screenshots 2014-01-31 16:56:50 +01:00
Mike3D
0e3389eb7b Update Sample.h 2014-01-31 16:55:06 +01:00
Mike3D
431133127f Added follow path function. RecalculatePath()is no longer used but kept anyway. 2014-01-31 16:44:06 +01:00
Mike3D
188dddf601 Update Navigation.h 2014-01-31 16:39:49 +01:00
Lasse Öörni
8fafdbf842 Ported the CharacterDemo touch input code to C++. 2014-01-28 00:40:36 +02:00
Lasse Öörni
25a887cfe4 Fix crash in 15_Navigation.lua when adding and removing objects without having a path defined yet. Cleanup Navigation sample code. 2014-01-26 16:32:21 +02:00
Lasse Öörni
9486d17667 Bump the depth constant bias in all shadowed directional light samples to work better on mobile platforms. Disable Urho3D logo in samples when using touch controls. 2014-01-23 16:07:08 +02:00
Yao Wei Tjong 姚伟忠
48eb0497df Rename var name from <package>_INCLUDE_DIR to <package>_INCLUDE_DIRS.
See http://urho3d.prophpbb.com/topic9.html.
2014-01-21 15:57:07 +08:00
Lasse Öörni
40d759fbae New skybox from Vladimir. Set fog to white in scenes using the skybox. Water scene lighting slightly brightened to match the skybox. 2014-01-20 12:01:38 +02:00
Lasse Öörni
1ace697dc9 Added water example with reflection/refraction. Improved the water shader to include proper fresnel calculation and a noise map. Closes #120. 2014-01-19 15:47:56 +02:00
Lasse Öörni
a26d5b98d5 Added example of manual bone control to CharacterDemo. Added a version of Skeleton::GetBone() that takes a C string parameter to avoid ambiguity. 2014-01-18 23:05:52 +02:00
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
Lasse Öörni
e19bed4946 Clean up scene node related comments in samples. 2013-12-17 13:28:46 +02:00
Lasse Öörni
aa0f72cf65 Added world position & normal to RayQueryResult. 2013-12-02 23:20:00 +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
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 姚伟忠
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 姚伟忠
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
Yao Wei Tjong 姚伟忠
a9ed330890 Create sub-projects for Samples/Tools/Extras. 2013-10-22 23:19:03 +08:00
Yao Wei Tjong 姚伟忠
2b3af05f26 Added license notice. 2013-10-21 22:39:16 +08: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
aster2003
8098f588b4 Change LuaFunction to subclass of RefCounted. 2013-10-03 21:06:46 +08: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
Aster Jian
4b9f241065 Add LuaFunction class, Add more Lua API in Sound, fixed typo. 2013-09-26 16:18:38 +00:00
Aster Jian
3e4765e4f4 Change SetRotationSpeed's parameter to Vector3. 2013-09-23 05:54:29 +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
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
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
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
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
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
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
Lasse Öörni
629d96473c Added skybox material.
Demonstrate use of skybox in the Physics sample.
2013-09-10 09:16:13 +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
e6d0b4d3f3 Normalize ray direction in constructor. 2013-09-04 14:42:32 +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
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
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
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
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
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
Lasse Öörni
dfb318b4f9 Added scene network replication sample. 2013-08-27 00:12:07 +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
056acfcc68 Added sound effects example. 2013-08-25 09:20:56 +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
Lasse Öörni
31f4ac0bab Larger plane in the Physics sample. 2013-08-23 05:09:26 +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
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
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
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
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
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
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
e2d2c01636 Added AnimatingScene sample. 2013-08-11 22:24:26 +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