Commit Graph

9612 Commits

Author SHA1 Message Date
Lasse Öörni
d26e2c148a Fixed Text3D in face camera mode becoming invisible after being out of the view frustum due to using old camera position. 2013-04-21 11:41:23 +00:00
Lasse Öörni
6ce654989b Note that 64-bit Linux requires 32-bit development libraries to be installed. 2013-04-21 10:59:22 +00:00
Lasse Öörni
b495b263e4 Added nullcheck to Window. 2013-04-21 10:54:30 +00:00
Lasse Öörni
3f3d63280c Fixed infinite raycast returning results that were not hit by the ray. 2013-04-21 10:13:31 +00:00
Lasse Öörni
28d4ebeb14 In model mode with no animations, optimize nodes away to be able to merge submeshes with same material. 2013-04-20 23:29:05 +00:00
Lasse Öörni
61538a861f Fixed AssetImporter not writing multiple buffers correctly. 2013-04-20 22:10:48 +00:00
Lasse Öörni
fccdba09c6 Use pointers to cubemap direction vectors to fix static initialization order issues. Fixes point light shadow map on MinGW. 2013-04-19 21:49:42 +00:00
Lasse Öörni
e636733f1a Fixed multiple copies of texture potentially being created for each cursor shape. 2013-04-18 22:20:37 +00:00
Lasse Öörni
085d26aa98 Fixed animation not updating if AnimatedModel was invisible while an animation played to the end.
Fixed event subscription error in TestSceneOld.
2013-04-16 22:16:27 +00:00
Lasse Öörni
51c1dd3575 Demonstrate Text3D usage in NinjaSnowWar (nametags shown for players other than you.)
Do not load font or attempt to create font faces in headless mode.
2013-04-16 20:50:15 +00:00
Lasse Öörni
ae9ff0d8df Store colliding bodies first as weak pointers to allow safe deleting of them during collision event handling. 2013-04-16 19:36:29 +00:00
Lasse Öörni
1f8b84c4dc Text3D minor code cleanup.
Mention Text3D in the rendering documentation.
2013-04-15 21:48:54 +00:00
Lasse Öörni
56fbf5a1e9 Added attributes to Text3D.
Limit font face size to 96 pixels for now to prevent crash when rendering font to texture.
Added font resource picking support to editor.
2013-04-15 21:42:37 +00:00
Lasse Öörni
f01b491152 Make sure Text3D octree reinsertion is queued when the text geometry changes. 2013-04-15 00:30:16 +00:00
Lasse Öörni
5bd757850f Added functionality to Text3D. Attributes yet missing.
Added missing MarkNetworkUpdate() calls to NavigationMesh.
Removed unused parameter from Text::UpdateText().
2013-04-15 00:23:00 +00:00
Lasse Öörni
d567ef83fc Started work on 3D text component. 2013-04-14 18:31:12 +00:00
Lasse Öörni
9132ea611c Removed shadow bias adjustment according to shadow map resolution, as it causes the amount of "peter panning" to change.
Instead, added bias adjustment factor according to far clip of directional light cascade splits.
Slightly adjusted ninja offset to physics shape to align better with the ground.
Ensure same memory layout of CascadeParameter on desktop and mobile, though mobile uses only 2 of the cascades.
2013-04-14 14:50:25 +00:00
Wei Tjong Yao
832ef7ddfd Fixed XPath query result integration with existing XMLElement class (XMLElement constructed from XPath query result should be abled to traverse up/down document tree as if it is a 'normal' XMLElement). Added feature to auto-add variable into XPath variables set based on pre-formatted variable string. Modified 3rd-party PugiXML library to have a proper xpath_node copy-constructor. Fixed UI.h to build under GCC. 2013-04-14 14:03:43 +00:00
Lasse Öörni
fedccdebd6 Set busy cursor when importing model or scene. 2013-04-14 11:24:25 +00:00
Lasse Öörni
bc4b428295 Allow UI to operate without a defined cursor element, if the operating system cursor is visible. 2013-04-14 11:13:15 +00:00
Lasse Öörni
37d2911ec8 Fixed AssetImporter to not save empty submeshes. 2013-04-13 22:02:24 +00:00
Wei Tjong Yao
4d30392c1c Added more null check on XMLElement and XPathResultSet classes. 2013-04-13 16:59:52 +00:00
Wei Tjong Yao
e7c46428d5 Fixed XMLElement copy constructor and added assignment operator to handle the xpath_node assignment correctly. 2013-04-13 16:48:02 +00:00
Lasse Öörni
379d786da4 Fixed NinjaSnowWar assets to use 1m world unit.
Added GetDistanceToWall() function to NavigationMesh.
NavigationMesh code cleanup.
2013-04-13 13:20:43 +00:00
Wei Tjong Yao
342db6f72b Fixed indentation calculation for vertically layout UI-element parent. Fixed LineEdit indentation handling on internal objects. Added and exposed functions to determine whether UI-element size is fixed. 2013-04-13 09:59:32 +00:00
Wei Tjong Yao
21a2a008fa Fixed UI-element debug draw being clipped by clip-border. 2013-04-13 03:50:46 +00:00
Wei Tjong Yao
a16998dc41 Code cleanup. 2013-04-13 00:15:29 +00:00
Wei Tjong Yao
5d698d9ad1 Turned on XPath feature in pugixml thirdparty library. Added new XPath query and resultset wrapper classes and exposed them to Script. Reimplemented UI-element serialization filtering function using XPath query. 2013-04-12 12:20:07 +00:00
Wei Tjong Yao
c31961bd6a Fixed gcc build. 2013-04-12 00:00:05 +00:00
Lasse Öörni
78a5a2ed89 Updated to newest stable kNet. 2013-04-11 20:59:58 +00:00
Lasse Öörni
362e6a6f95 Added functionality to NavigationMesh. 2013-04-11 07:15:49 +00:00
Wei Tjong Yao
2ffd92b9f0 Code cleanup. 2013-04-11 04:05:31 +00:00
Wei Tjong Yao
e57bc3987b Serialized UI-element's user variable names in its own UI-element file instead of in scene file. Automatically determine the right UI-element level to perform the serialization when it is being requested. Fixed a bug in Scene class to unregister all the scene variable names when the scene is being cleared. 2013-04-10 17:48:24 +00:00
Wei Tjong Yao
0af8f6afda Applied the UI-element child sorting fix recursively. 2013-04-10 12:30:08 +00:00
Wei Tjong Yao
f7195a0e6b Prevent unnecessary update on attribute inspector if it is not showing attributes of UI-element having the attribute changed event detected. 2013-04-10 11:58:45 +00:00
Wei Tjong Yao
5106e4cf00 Fixed the UI-element editor issue caused by child sorting. 2013-04-10 11:49:16 +00:00
Wei Tjong Yao
6925853d0c Fixed the signature of the UIElement 'parent' property setter. 2013-04-10 08:49:37 +00:00
Wei Tjong Yao
17714cb198 Further fine tuning on the UI subsystem. 2013-04-10 08:38:51 +00:00
Lasse Öörni
c1e1c20ea2 Added documentation page on navigation. 2013-04-09 21:26:10 +00:00
Lasse Öörni
606d374936 Added GetWorldBoundingBox() to CollisionShape.
Prefer physics geometry (trimesh, convex hull, box supported) when generating navigation mesh.
2013-04-09 19:02:26 +00:00
Wei Tjong Yao
05fd7419a7 Fixed UI-element debug draw overdrawing the modal element and menu popup. Refactored UI subsystem to support multiple modal elements and auto-dismissal of modal elements when ESC is pressed. The 'Is Modal' attribute of Window UI-element type can be tested in Editor. 2013-04-09 10:32:16 +00:00
Lasse Öörni
56a7f36a0c Store the indices of a physics convex hull in preparation to using it for navigation data.
Generalized the geometry collection list in NavigationMesh to hold any components.
2013-04-09 07:05:10 +00:00
Lasse Öörni
3fac48401a Added support for partial navmesh rebuild.
Added navmesh properties (bounding box, number of tiles) to the script API.
Serialize navmesh tiles directly from Detour data, do not keep a duplicate.
2013-04-08 23:14:47 +00:00
Lasse Öörni
d623481ad0 Changed to use a tiled navmesh to allow for larger navigable areas.
Fixed Navigation example using a detached navmesh component if scene was loaded.
2013-04-08 20:42:33 +00:00
Lasse Öörni
3c43ccb3f1 Transform geometry to local space of the navigation mesh root node to allow moving the root without invalidating navigation data. 2013-04-08 16:24:02 +00:00
Wei Tjong Yao
0eced5780e Implemented 'Save UI-element' functionality (currently the 'UI style' is also getting serialized, which is not preferable). Fixed UI debug draw from being rendered on top of modal window. 2013-04-08 08:15:58 +00:00
Wei Tjong Yao
2e57e55e84 Fixed a bug in XMLElement::RemoveChild() method. Implemented 'Save child UI-element' functionality. 2013-04-08 07:02:05 +00:00
Lasse Öörni
00eac389f9 Added "Is Enabled" attribute to Navigable. This only affects the build process of the navmesh. 2013-04-08 06:42:05 +00:00
Wei Tjong Yao
712de11c99 Debug draw UI-elements in Editor. 2013-04-08 03:51:54 +00:00
Lasse Öörni
be3b304836 Added batch files to start the navigation example.
Added recursive flag to Navigable to optionally disable recursive collection of geometries.
Check that Navigable is enabled before collecting navigation geometry.
2013-04-07 22:49:06 +00:00