Commit Graph

10202 Commits

Author SHA1 Message Date
Lasse Öörni
9c7908ca82 Do not show unused rendering passes in profiling. 2011-10-23 12:31:41 +00:00
Lasse Öörni
9d077e78a8 Code cleanup.
Fixed lit base pass optimization working only for the first subgeometry of an object.
Calculate per-subgeometry distances in UpdateDistance() for StaticModel & AnimatedModel.
2011-10-23 12:17:57 +00:00
Lasse Öörni
5f65f9a530 Dirty the zone if its priority changes. 2011-10-22 20:02:20 +00:00
Lasse Öörni
9fad97bbcc Changed gizmo update order so that it does not lag visually by one frame. 2011-10-22 19:04:09 +00:00
Lasse Öörni
bdc29caebd Reverted to AngelScript 2.21.1 because of crash with VariantMap.
Find the zone at far clip plane and use it for the background color.
Added zone mask for drawables, allowing to select which zones they can belong to.
When zone moves or changes its bounding box, clear the cached zone from all drawables that were inside.
2011-10-22 18:49:15 +00:00
Lasse Öörni
2ae33cd4fc Fixed missing Precompiled.h include. 2011-10-22 13:17:44 +00:00
Lasse Öörni
5d8ba5e295 Added missing notification of modified code. 2011-10-21 23:20:18 +00:00
Lasse Öörni
1c47bc6f20 Migrated to AngelScript 2.22.0 WIP. 2011-10-21 23:01:30 +00:00
Lasse Öörni
4f9f83eaab Made the move mode arrows smaller to match the scaling mode axes.
Corrected documentation about fallback mode shadow filtering.
2011-10-21 20:05:57 +00:00
Lasse Öörni
4ca9035ba5 Reimplemented the MSVC random number generator to produce same random number output on all platforms. 2011-10-21 19:12:20 +00:00
Lasse Öörni
2b57762508 Added zone property for Drawables in the script API where applicable.
Removed the viewmask attribute from Zone as it is not currently used.
2011-10-21 07:13:44 +00:00
Lasse Öörni
2fc9d75b9a Rewritten zone query handling. 2011-10-20 22:24:39 +00:00
Lasse Öörni
00cca6b83c Zone system refactoring. Now objects check which zone they're in, for per-object ambient light and fog settings. 2011-10-20 18:22:51 +00:00
Lasse Öörni
15e8c14623 Separated SetIntensitySortValue() into two separate functions.
Use the drawable's bounding box in light sort value calculations, instead of just the bounding box center.
Added Rect::Clip().
2011-10-19 23:03:36 +00:00
Lasse Öörni
563ad416e9 Further optimization and improvement of light intensity sorting. 2011-10-19 16:35:06 +00:00
Lasse Öörni
6d5aa888aa Tweaks to light intensity sorting. 2011-10-19 08:17:03 +00:00
Lasse Öörni
eba23029c0 Fixed maxLights not exposed to script.
Added maxLights setting to TestSceneOld animated models as a test.
Improved drawable light sorting.
2011-10-19 07:27:36 +00:00
Lasse Öörni
00dbad68cb Added different axis models for the rotation & scaling modes. 2011-10-18 19:55:05 +00:00
Lasse Öörni
d82608a889 Use OpenGL convention in vertex colors to avoid need for different vertex data depending on the API. 2011-10-18 15:52:56 +00:00
Lasse Öörni
63f23313d6 Sort also the postalpha pass back to front. 2011-10-18 06:36:07 +00:00
Lasse Öörni
e7a4fdba41 Removed unnecessary paranoia from writing the model's geometry centers. 2011-10-17 22:13:21 +00:00
Lasse Öörni
7f7e8b970d Added subgeometry centers to the model format for proper sorting of transparent geometries. 2011-10-17 21:59:47 +00:00
Lasse Öörni
7be9585861 Fixed erroneous use of local axis movement when more than one node selected.
Split the extra (custom) rendering pass into prealpha and postalpha.
2011-10-17 20:59:13 +00:00
Lasse Öörni
081fce3519 Removed node rotation post-snapping, as it has potential to produce erratic behavior. 2011-10-17 19:16:07 +00:00
Lasse Öörni
0e6b9508b9 Gizmo improvements.
Reduced node transform edit related code duplication in the editor.
Exposed Plane class to script.
2011-10-17 18:55:55 +00:00
Lasse Öörni
c4e3833b55 Fixed scaling mode. 2011-10-17 08:24:00 +00:00
Lasse Öörni
fd6a2ece9e Renamed AddUnculledDrawable() to AddManualDrawable().
Made it easier to select all gizmo axes.
2011-10-17 07:03:36 +00:00
Lasse Öörni
d38742b198 Added multiple node rotation around the gizmo and scaling. 2011-10-17 06:52:44 +00:00
Lasse Öörni
4fe4cd6df0 Update node attributes when editing with gizmo. 2011-10-17 00:04:46 +00:00
Lasse Öörni
b11b0f8de1 Initial gizmo-based node transform editing.
Fixed material assignments in the axes model.
Possibility to add unculled drawables to the octree.
2011-10-16 23:59:53 +00:00
Lasse Öörni
4a34382798 Fixed clicking on UI elements clearing the scene node selection in the editor. 2011-10-16 17:52:27 +00:00
Lasse Öörni
a32f0f1c26 Fixed rotation of the axes model.
Added ray-frustum intersection test.
Added accurate raycasts for point and spot lights. Directional light now never returns a raycast result, as it has an "infinite" bounding box.
Added better debug visualization of a point light.
Reorganization of the editor script code.
2011-10-16 14:53:14 +00:00
Lasse Öörni
fc0c9aff06 Added manipulator axes model. 2011-10-15 21:48:21 +00:00
Lasse Öörni
bad42bcc5f Take node parenting into account when moving nodes in the editor.
Added LocalToWorld() & WorldToLocal() functions to Node.
2011-10-15 18:37:55 +00:00
Lasse Öörni
83dbac20fc Fixed Camera's view override flags not exposed to script. 2011-10-15 13:28:28 +00:00
Lasse Öörni
1d45da9789 Fixed not being able to move a scene node when its component is selected in the hierarchy. 2011-10-14 22:20:07 +00:00
Lasse Öörni
510125fe32 Removed unused Component::HasComponent() function. 2011-10-14 18:52:26 +00:00
Lasse Öörni
a436badf8f More documentation updates. 2011-10-14 18:43:17 +00:00
Lasse Öörni
2e32aace3c Documentation update. 2011-10-14 18:20:32 +00:00
Lasse Öörni
dd131fbd66 Added missing file.
Updated script API.
2011-10-14 17:43:54 +00:00
Lasse Öörni
061e68d0d1 Multi-copy & paste in the editor. 2011-10-13 20:01:35 +00:00
Lasse Öörni
0bbf38fcf5 Added script function to add a drawable to an octree manually.
Added an event for AnimatedModel hierarchy creation to remove need for special case attribute edit handling.
2011-10-13 17:26:08 +00:00
Lasse Öörni
2bf69034c2 If only node(s) selected, show their first component(s) for editing if possible. 2011-10-13 06:59:01 +00:00
Lasse Öörni
fd13f46170 Renamed EditorCamera.as to EditorView.as.
Split editor settings handling into a separate file.
2011-10-12 23:04:44 +00:00
Lasse Öörni
e9f6407de2 Multi-node movement by Ctrl + arrows. 2011-10-12 22:59:47 +00:00
Lasse Öörni
4dd0c17651 Editor multi-edit & multi-delete.
Reversed node selection logic: select nodes by default, and components when Shift is held down. This is to avoid mistakenly deleting components and leaving nodes intact when intending to do a node multi-delete.
2011-10-12 22:15:38 +00:00
Lasse Öörni
58843be1fa Initial multiselection in the editor. 2011-10-12 13:17:04 +00:00
Lasse Öörni
2d2acbda3d Added Node::GetComponents() to the script API.
Added qualifier mode QUAL_ANY for the menu accelerators, which accepts any accelerator combination, including none pressed.
Removed setting "Select components instead of nodes" from the editor. Rather components are selected by default, and nodes are selected by holding Shift or Ctrl while clicking.
2011-10-11 21:22:55 +00:00
Lasse Öörni
7c42215d98 Fixed possible normal map Z reconstruction overflow.
Fixed font size inconsistencies in the editor node window. Increased attribute name font size.
Merged Light's cascade split attributes into one Vector4 attribute.
Show local ID's in the editor in a more readable way.
2011-10-10 19:10:27 +00:00
Lasse Öörni
3a55958c5b Fixed camera reacquiring in TestSceneOld. 2011-10-10 06:40:57 +00:00