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
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