Commit Graph

10192 Commits

Author SHA1 Message Date
Wei Tjong Yao
a4479c65ec New UI-element style is applied after removing the 'effect' from the old style. 2013-04-26 10:00:48 +00:00
Wei Tjong Yao
1b2497dc10 Added new LoadChildXML() method to UIElement and exposed it to Script. Changed Editor app to call LoadChildXML() instead of LoadXML() to prevent child XML-chunk from accidentally modifying the parent element's tyle. Note: child XML-chunk does not require nested element tag anymore. 2013-04-26 04:11:05 +00:00
Lasse Öörni
cebf24fdca Minor code cleanup. 2013-04-25 21:38:39 +00:00
Wei Tjong Yao
2c10af2385 Reverted back the last changes. 2013-04-25 15:18:58 +00:00
Wei Tjong Yao
0927d087d4 Added instruction in the child XML-chunks for the Attribute Inspector to skip style processing for the root element as we do not want the child XML-chunk to affect its parent element besides creating new child element as per defined in the chunk. 2013-04-25 14:56:02 +00:00
Wei Tjong Yao
fe5b26abd7 Manipulation of UI-element's style in the Attribute Inspector's Style drop down list is now functional. At the moment new style is applied on top of existing attribute values (i.e. without first removing the effect of existing style). Adjusted DefaultStyle.xml to enable highlight on selected item in DropDownList. 2013-04-25 14:39:35 +00:00
Lasse Öörni
106cb89d56 Allow camera's viewmask to affect which zones are used for rendering. Drawables will be dynamically reassigned into the visible zones when rendering. This adds possibility to render the same scene in eg. an RTT view with a different zone. 2013-04-25 12:31:27 +00:00
Lasse Öörni
8b6189090f Prevent log spam if a postprocess shader is not found. 2013-04-25 07:27:22 +00:00
Lasse Öörni
9d507640f7 Exposed Ray<>Frustum HitDistance() to script, and added solidInside parameter to it which determines whether the inside of the frustum is interpreted as solid (return zero distance for rays originating within.) 2013-04-24 22:02:02 +00:00
Lasse Öörni
8f5623d9bb Renamed RenderPath::LoadParameters() to Load() and ParticleEmitter::LoadParameters() to SetParameters() as LoadParameters() is used in other classes to denote loading of optional parameters, not the main asset itself.
Fixed incorrect exposing of BillboardSet::GetMaterial() & ParticleEmitter::GetMaterial() to script.
2013-04-24 21:38:09 +00:00
Lasse Öörni
f4a3014d75 Corrected ShaderCompiler documentation.
ShaderCompiler output dir is no longer mandatory, if not specified, will use input dir.
2013-04-24 17:05:06 +00:00
Wei Tjong Yao
521ee691c3 Enhanced DropDownList to support showing of placeholder text when there is no selection. The text could be used to show a 'Please choose ...' kind of prompt. Rearranged child XML-chunk resources responsible for Attribute Inspector to remove duplicate definition. Added new child XML-chunk to display and manipulate applied style of the UI-element in the Editor (not yet fully functional). Adjusted DefaultStyle.xml to distinguish between auto and non-auto types. Added new method in Serializable to remove instance default and in UIElement to return applied style name, in preparation for future work. 2013-04-24 13:34:03 +00:00
Lasse Öörni
90233154ab Added padding attribute to NavigationMesh, which expands the bounding box to allow adding geometry in partial rebuilds. 2013-04-24 07:30:16 +00:00
Wei Tjong Yao
fd8b475a3e Enhanced Attribute Inspector to display 'strike-out' visual cue in DropDownList editor having different values in multi-edit case. 2013-04-24 02:28:34 +00:00
Wei Tjong Yao
a1cd90dff6 Fixed Zone's override-mode and ambient-gradient attribute default value registration. Fixed Editor's hierarchy auto expansion when selecting item via view raycast. 2013-04-24 01:55:40 +00:00
Lasse Öörni
0df99637a0 Updated documentation. 2013-04-23 19:04:47 +00:00
Lasse Öörni
38498ab24c Completed the OffMeshConnection implementation.
Added Ctrl+LMB in the Navigation test to create offmesh connections.
2013-04-23 18:43:37 +00:00
Wei Tjong Yao
ea2c1f8ae2 Fixed Octree's bounding box attribute default value registration. 2013-04-23 17:52:40 +00:00
Wei Tjong Yao
79b2fc726c Added option in UI-element editor to show/hide the internal UI-elements, configurable in the editor's preferences window. Adjusted CheckBox UI-element to have fixed size by default. 2013-04-23 17:36:02 +00:00
Wei Tjong Yao
f5aa8898da Fixed UIElement's SetParent() method which was exposed to the Script API with wrong signature previously. Added drag-and-drop support for UI-element in Editor app. 2013-04-23 16:20:21 +00:00
Wei Tjong Yao
da08a0b451 Added New reset-to-default icon in the Attribute Editor. Fixed the reset-to-default functionality to call ApplyAttributes() method after modifying the attribute values. 2013-04-23 09:38:05 +00:00
Lasse Öörni
464335c726 Added OffMeshConnection component. Not yet used in the navigation mesh. 2013-04-22 22:45:34 +00:00
Lasse Öörni
0ef6e3f135 Added profiling blocks to shader loading.
Renamed Engine::DumpProfilingData() to Engine::DumpProfiler() to be shorter to type on the console.
2013-04-22 22:11:44 +00:00
Lasse Öörni
7d4ee02f53 Compile only Vegatation vertex shaders, combine with LitSolid pixel shaders.
Allow a shader definition file to only specify vertex or pixel shaders.
Enforce shader definition file structure (must have "shaders" root element.)
Removed Skinned & Billboard geometry variations from the Vegetation & TerrainBlend shaders.
2013-04-22 19:13:37 +00:00
Wei Tjong Yao
184360dc82 Added new feature in the Editor's edit menu to reset-to-default selected serializable objects (nodes, components, UI-elements) to their default values with undo/redo support. Added new method ResetToDefault() in Serializable class and exposed it to Script. Fixed the constness in Serializable class and all the recently added filtering methods in UIElement descandant classes. Exposed AM_NODEID and AM_COMPONENTID to Script. Added new Keys() method in HashMap class. Fixed SetModel() method in StaticModel and AnimatedModel to accept null model pointer in order to make reset-to-default to work. 2013-04-22 13:12:52 +00:00
Lasse Öörni
abae3414ac Applied camera constness patch from Erik Beran. 2013-04-22 11:49:56 +00:00
Lasse Öörni
a698776a66 Added simple swaying vegetation example shader. 2013-04-21 22:08:00 +00:00
Lasse Öörni
d43d14fb1a Added unique icons for UI elements. 2013-04-21 21:01:40 +00:00
Lasse Öörni
3dac8c7a59 Added setInstanceDefault parameter also to binary serialization.
Comments cleanup.
2013-04-21 16:53:06 +00:00
Wei Tjong Yao
9bfb0019e3 Added logic to filter UI-style and implicit attributes from UI serialization result. Added logic to let Attribute Inspector to recognize derived values from UI-style file (so, only user modified and programmatically modified attributes are displayed using 'modified color'). Enhanced UI style file processing to support derived 'style' (see how 'ListView' style is derived from 'ScrollView' style and 'CloseButton' derived from 'Button' in file 'DefaultStyle.xml' as examples). Enhanced Serializable class to support instance-level default values (used in XML serialization filtering and also in Editor app). Enhanced Context class to support update of class-level default values during object registration in UIElement's descendant classes. Verified and fixed the attribute default values in RegisterObject() method for all UIElement's descendant classes. Added new method in XMLElement to remove attribute. Exposed new methods to Script API accordingly. 2013-04-21 14:14:30 +00:00
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