Commit Graph

9612 Commits

Author SHA1 Message Date
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
ba19c8b905 Add "if exist" checks to cmake_android & cmake_mingw .bat files to avoid printing errors on first run. 2013-09-24 08:25:38 +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
247947f2b1 Update document. 2013-09-23 15:11:34 +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
64e826c3e3 Update changelog.
Position the editor windows lower so that they don't overlap the stats-text in default windowed resolution.
2013-09-23 00:22:30 +00:00
Lasse Öörni
93fe884ceb Update script API. 2013-09-22 23:55:32 +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
b037dc8c58 Clear the UI root in case the editor application is being live-reloaded. 2013-09-22 21:20:00 +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
3c60b5f2d0 Applied patch from Ali Kämäräinen. VS2013 support, ifexists checks when deleting old VS build files, and improved Tundra import. 2013-09-22 17:04:15 +00:00
Lasse Öörni
056e53f46d Added CharacterDemo Lua sample.
Added variable initialization to Lua samples where they were missing.
Show sender IP:port on server in Lua Chat sample.
2013-09-22 16:26:09 +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
Lasse Öörni
cf50bb9f39 Optionally remember last resource path in editor.
Remember last import path in editor.
Set node / scene / UI element picker paths from remembered resource path if possible.
2013-09-22 12:18:14 +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
f3eff662d0 Cleaned up raycast code in Decals sample. 2013-09-21 14:27:51 +00:00
Aster Jian
5d0e4e1b4f Added Lua Navigation sample. 2013-09-21 11:52:50 +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
389cce6732 Unify material used in spawned objects in script versions of PhysicsStressTest. 2013-09-19 22:56:42 +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
b75e301f8b Update Lua script API documention. 2013-09-18 17:26:36 +00:00
Aster Jian
c07137c8f4 Add VehicleDemo sample in Lua, using update function in script object. 2013-09-18 17:25:52 +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