Commit Graph

10192 Commits

Author SHA1 Message Date
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
Lasse Öörni
407ffc684b Do not close the scene hierarchy or node/component edit window with ESC. 2011-10-09 17:43:59 +00:00
Lasse Öörni
d9524b79ad Added light & zone picking to editor. 2011-10-09 17:17:09 +00:00
Lasse Öörni
31efab5d65 Moved SetSortChildren() to UIElement public API and exposed it to script.
Added layout skipping optimizations to UI::GetElementAt().
2011-10-09 10:30:52 +00:00
Lasse Öörni
6c5d216c27 Added local axis movement mode to the editor.
Optimized UI child element queries and sorting.
2011-10-08 22:24:21 +00:00
Lasse Öörni
1039a2703d Register physics joints in similar manner as rigid bodies and collision shapes. Clean up PhysicsWorld destructor. 2011-10-08 11:33:24 +00:00
Lasse Öörni
4c03639fed Explicitly register CollisionShapes to the physics world to avoid a recursive scene query when drawing physics debug geometry. 2011-10-08 11:22:44 +00:00
Lasse Öörni
26618f0705 Further optimization of physics trimesh debug geometry drawing. 2011-10-08 08:45:54 +00:00
Lasse Öörni
ce5a45d10f Fixed cloned geometries (for morphing) missing raw data.
Removed unused member variables from Model.
2011-10-08 08:22:05 +00:00
Lasse Öörni
16b8bddde4 Fixed SetDataRange() in OGLVertexBuffer & OGLIndexBuffer.
Code cleanup.
2011-10-07 22:58:30 +00:00
Lasse Öörni
90596a064a Use a memory pool in OGLGraphics for discard lock buffers.
Include file reordering.
2011-10-07 22:36:06 +00:00