Commit Graph

10192 Commits

Author SHA1 Message Date
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
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
Lasse Öörni
f8de2a71f0 Align NinjaSnowWar touch buttons to screen corners properly so that they will realign if orientation changes. Fixed touch move not taking the move button position properly into account. 2013-09-17 12:21:08 +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
b55dead807 Added Decals Lua sample. 2013-09-16 20:44:11 +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
Lasse Öörni
274a345db5 Added Billboards Lua sample. 2013-09-16 19:20:26 +00:00
Wei Tjong Yao
0c02a88add Supplement documentation regarding UI default style file. 2013-09-16 16:40:19 +00:00
Aster Jian
5b1879c0ff Add unsubscribe from event functions in LuaScript and LuaScriptInstance. 2013-09-16 15:58:29 +00:00
Lasse Öörni
22d579eea7 Documented the need to either specify a UI style file when loading a layout, or having it set to the root element beforehand. 2013-09-16 14:46:26 +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
Wei Tjong Yao
27a68828ce Corrected typo in documentation for renderpath's quad command. 2013-09-15 21:10:31 +00:00