Commit Graph

132 Commits

Author SHA1 Message Date
Lasse Öörni
e9535c8336 Fix Lua SendEvent with parameters. 2013-09-12 17:59:32 +00:00
Aster Jian
0f52702801 Fixed Node::LookAtXYZ function default value. 2013-09-12 13:42:47 +00:00
Lasse Öörni
6f78838b5c Cleaned up Lua event subscription code (do not register C++ handler before Lua function is found successfully.)
Moved Lua script object destruction to a function.
Destroy the old Lua script object before creating new.
Unref the object specific event handler functions when destroying Lua script object.
2013-09-12 07:34:16 +00:00
Aster Jian
d830da9801 Add new CreateObject function in LuaScriptInstance, so can create script object from specific Lua file. 2013-09-12 06:05:03 +00:00
Aster Jian
c8df2956a2 Remove ExecuteFile function in Lua. 2013-09-12 05:23:03 +00:00
Lasse Öörni
a9f13ebdfe Added LuaScriptInstance subscribe to specific sender's event. 2013-09-11 23:51:03 +00:00
Aster Jian
c2eec49b7a Add faster Lua API function in Node class. 2013-09-10 14:35:20 +00:00
Aster Jian
caf5aa4118 Store Lua function to LUA_REGISTRYINDEX table, make better performance. 2013-09-10 05:13:50 +00:00
Aster Jian
dfc7647277 Replace table with spaces. 2013-09-09 06:50:17 +00:00
Aster Jian
f9e2d7c9d1 Add LuaScriptInstance class. 2013-09-09 06:32:58 +00:00
Lasse Öörni
4741b3cf08 Added Blender exporter from Reattiva. 2013-09-08 10:51:02 +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
372fbed88d Normalize resource names in SanitateResourceName() if they also contain a registered resource dir name, ie. Data/Scripts/NinjaSnowWar.as becomes Scripts/NinjaSnowWar.as. This fixes script file possibly getting loaded twice.
Fixed renderer raycasts returning wrong distance.
Added caseSensitive parameter to several String functions.
Added option to convert file extension to lowercase in GetExtension() and GetFileNameAndExtension() functions.
Removed unnecessary lowercase conversion of extensions, and complicated string compare logic.
2013-09-05 14:57:45 +00:00
Aster Jian
411f6af885 Add const char* parameter to File's constructor. 2013-09-05 10:24:09 +00:00
Aster Jian
1428423af1 Add GetEventSender function, Add Node::GetChild function. 2013-09-05 05:43:00 +00:00
Lasse Öörni
caf0994b8f Optimize vector/quaternion Normalize() to a no-op if already at unit length. Changed return value to void.
Optimize cache friendliness of Drawable bounding box update by including the local-space bounding box in the base class. Not used in all subclasses.
Optimize Drawable zone handling by making the zone pointers raw pointers instead of weak. Now finding a drawable's zone can be performed in the threaded view preparation phase.
Removed unnecessary collection of whole visible scene bounding box; it is not used anywhere.
2013-09-04 22:08:47 +00:00
Aster Jian
e803d1c844 Remove unsupported operator != in Color.pkg. 2013-09-04 12:42:09 +00:00
Aster Jian
90c29aecfb Add type to some template method, lick Node::CreateComponent etc. Add LoadChunk and LoadAndExecute in LuaFile, Add DrawDebugGeometry in Renderer. 2013-09-04 11:52:10 +00:00
Lasse Öörni
be7636f823 Make the include path absolute in all script examples so that ScriptCompiler can compile them properly.
Renamed Octree::Resize() to Octree::SetSize()
When destroying a scene, destroy root-level components first so that child node components are detached from their internal structures and can be destroyed faster in turn.
Use raw pointers instead of weak pointers in Octree update/reinsertion lists for some performance gain.
2013-09-03 20:45:53 +00:00
Lasse Öörni
6229e36a1e Show filename for Lua subsystem error messages where possible. 2013-09-02 18:02:34 +00:00
Lasse Öörni
ccdd318eff Use matching else-if construct in AngelScript & Lua Sample code.
Changed ErrorDialogs in the Lua subsystem to error logging (subsystems should not pop up dialogs on their own.)
2013-09-02 14:23:47 +00:00
Lasse Öörni
7f64104825 Added -p command line argument, which specifies resource paths to use.
Added IsAbsolutePath() function to FileSystem.
Removed unnecessary double error message from ResourceCache.
2013-08-30 11:03:07 +00:00
Aster Jian
367a930a93 Add Lua File class. Make Lua file as resource. 2013-08-29 05:56:35 +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
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
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
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
c14bf5bd69 Added Bullet rolling friction parameter to RigidBody.
RigidBody code cleanup.
2013-08-21 18:44:58 +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
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
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