Commit Graph

10202 Commits

Author SHA1 Message Date
Lasse Öörni
945375d0ee Added mass axis parameter to RigidBody so that the axis of cylinder and capsule shapes is not hardcoded.
Fixed RigidBody mass not being properly set on the client.
Re-enabled replication of snowball collisionshapes in NinjaSnowWar as the erroneous physics interactions caused by missing masses are no longer a problem.
2011-08-22 22:24:26 +00:00
Lasse Öörni
3dc01e1a20 Fixed TestScene.as not saving the scene correctly if working directory was not Bin. 2011-08-22 21:52:38 +00:00
Lasse Öörni
6f5f3c252b Specify diameter instead of radius for sphere, capsule and cylinder CollisionShapes so that switching between shape types is more intuitive.
Capsule and cylinder shapes are now upright by default.
Fixed geometry offset staying if it was first set, but then zeroed after assigning the rigid body.
Fixed geometry offset not updating after the rigid body is assigned.
2011-08-22 21:35:23 +00:00
Lasse Öörni
3f7fffbf49 Some renames. CollisionGroup -> CollisionLayer, Scene::GetNodeByID() -> GetNode(), Ray::Distance() -> HitDistance().
Moved all hit distance tests to Ray.
Tundra scene physics import.
2011-08-22 20:06:27 +00:00
Lasse Öörni
7b89315876 Case-insensitive filename sort in FileSelector. 2011-08-22 12:01:09 +00:00
Lasse Öörni
534da86f8f Added node parenting support to Tundra scene import. 2011-08-22 11:52:15 +00:00
Lasse Öörni
62fac23f11 Perform conversion to left-handed coordinate system when importing Tundra scenes. 2011-08-22 11:13:39 +00:00
Lasse Öörni
f0362f1758 Fixed endless loop in Tundra scene import. 2011-08-22 10:14:12 +00:00
Lasse Öörni
ba7e79e82d If no element is focused, send mouse wheel to the element under cursor. 2011-08-22 08:37:10 +00:00
Lasse Öörni
57bcdb2479 For optimization, assume that the scene root node does not have a moving rigid body. 2011-08-22 07:13:42 +00:00
Lasse Öörni
ad57102acb Fixed root node identity assumption in GetWorldTargetTransform(). 2011-08-22 07:09:37 +00:00
Lasse Öörni
0298cd3e00 Removed assumptions of root node's identity transform.
Re-added the root node transform attributes so they can be edited, though this is not recommended.
Fixed needless creation of almost similar collision meshes caused by floating point inaccuracy.
Fixed bug where parenting a node back to the root node would not be replicated correctly on the network.
2011-08-22 07:05:19 +00:00
Lasse Öörni
d39446c592 Fixed menu item name.
Added editor instructions.
2011-08-21 23:59:49 +00:00
Lasse Öörni
a133d549ac Fixed file selector button text. 2011-08-21 23:28:20 +00:00
Lasse Öörni
61f7feb268 Added "run script" function to the editor.
Update the scene hierarchy when a model resource is loaded, in case bone nodes are destroyed/recreated.
2011-08-21 23:16:27 +00:00
Lasse Öörni
4fbd837058 Refactored user variables & other subindexed attributes handling in the editor. Now the proper editors are used.
Added VariantVector struct support, used for editing billboards.
Fixed billboard bounding box calculation.
Removed the transform attributes from Scene, as currently moving the root node is not supported in rendering & physics.
2011-08-21 22:46:10 +00:00
Lasse Öörni
906b528cc5 Adding and removing of node user variables in the editor. 2011-08-21 18:57:59 +00:00
Lasse Öörni
6a22f5d7d7 Fixed crash if a RigidBody is parented to a node without a RigidBody.
Fixed garbage being sent to the client if node variables change, but attributes do not.
Optimized the network parent node attribute. Added warning prints if the parent is not found on the client.
2011-08-21 17:25:31 +00:00
Lasse Öörni
f23a78eec4 Fixed crash if physics world was destroyed before other physics components.
Disallow to delete or create duplicates of scene-global components (Octree, PhysicsWorld, DebugRenderer) into the root node in the editor.
2011-08-21 16:09:40 +00:00
Lasse Öörni
96855411c0 Fixed unnecessarily complicated UI element focusing/defocusing logic.
Fixed slider bar size and positioning logic.
Ensure ListView item visibility also when pressing TAB to cycle focus.
Hide console if ESC pressed in the editor.
2011-08-21 15:23:25 +00:00
Lasse Öörni
cea5282fd4 Fixed draw distance attribute not working correctly.
Always use set/get functions for animation LOD bias attribute.
2011-08-21 12:46:46 +00:00
Lasse Öörni
10ad7a3dd2 Added phantom attribute to CollisionShape. Phantom shapes create collision events, but do not generate contact joints to the physics simulation.
Fixed opening resources externally in the editor.
2011-08-21 12:39:28 +00:00
Lasse Öörni
6dd8679214 Further attribute reorganization.
Refactored CollisionShape shape setting functions, which now take default parameters.
CollisionShape triangle meshes can now use the size attribute as well.
Fixed CollisionShape model not changing when picked with the file selector.
Added occluder triangles & instancing parameters to the editor settings dialog.
2011-08-21 11:42:11 +00:00
Lasse Öörni
23d51b853e Pick resource functionality in editor.
Editor script code cleanup.
Added missing functions to the script API.
2011-08-21 10:06:52 +00:00
Lasse Öörni
bbad36cc63 Do not destroy old animation states if skeleton has stayed compatible.
Reload also animations in editor (get them from inside the AnimationState variant vector attribute.)
Adjust shadow map constant bias according to global shadow map resolution.
Reduced shadow cascade fade range in TestScene & NinjaSnowWar.
2011-08-21 09:02:07 +00:00
Lasse Öörni
3576a81993 Initial node/component attribute editing.
Attributes reorganized for editing. Accessor attributes used more for verifying correct value ranges.
More editor settings, including rendering quality.
PhysicsWorld raycast returns CollisionShapes instead of Nodes.
Fixed LineEdit cursor not showing when at text start.
Script API fixes.
2011-08-21 08:15:21 +00:00
Lasse Öörni
215fb04f72 Converted VAR_BUFFER file serialization attributes to VAR_VARIANTVECTOR to make them more readable and/or editable.
Moved ResourceRef hash registration from Serializable to XMLElement.
Clear delayed method calls when recreating the script object.
2011-08-20 18:42:03 +00:00
Lasse Öörni
d0ab5fb7d6 Disabled shader branching from lighting calculations as on some GPUs it has a dramatic negative performance impact.
Added -noflush command line option to disable GPU command queue flushing before rendering.
2011-08-20 14:12:16 +00:00
Lasse Öörni
df6a86b573 Use placement new in Variant to avoid heap allocation for non-POD types.
VariantMap changed back to Map<ShortStringHash, Variant> to allow fitting inside the VariantValue structure.
2011-08-20 11:27:57 +00:00
Lasse Öörni
360ab16f9f Do not replicate the scene ID generator state through the network unnecessarily. 2011-08-20 09:46:08 +00:00
Lasse Öörni
861091d375 Fixed performance problems caused by offscreen UI elements being queued for rendering unnecessarily. Fixed missing file extension filtering on Unix. Added String::StartsWith() & String::EndsWith() functions. 2011-08-19 22:08:53 +00:00
Lasse Öörni
7083ed9c69 Removed debug print. 2011-08-19 18:21:02 +00:00
Lasse Öörni
d1125f7d35 Fixed wrong material assignment in AssetImporter when more than one submesh. 2011-08-19 18:11:21 +00:00
Lasse Öörni
84fb81684b Documentation update. 2011-08-19 10:53:36 +00:00
Lasse Öörni
942bf00ca4 Fixed animations not continuing after scene load.
Removed redundant @'s from editor script code.
Added scene update pause/unpause to editor.
2011-08-19 06:32:21 +00:00
Lasse Öörni
b7e5971bc1 Revert to AABB testing if AnimatedModel's bones have been destroyed. 2011-08-18 22:04:17 +00:00
Lasse Öörni
5e2682d3e5 Cut/copy/paste in editor.
Exposed Serializable::FinishUpdate() to script.
2011-08-18 21:52:59 +00:00
Lasse Öörni
16911eab63 Added delete support to the editor.
Fixed erroneous script API bindings.
2011-08-18 18:46:12 +00:00
Lasse Öörni
d94b865fce Reverted the change to not support fallback data mode in index & vertex buffers, as it broke AssetImporter.
Add resource hashes from ResourceRef or ResourceRefList attributes to ResourceCache in Serializable::LoadXML(), so that resources created during runtime will load properly.
Do not automatically assign the scene root node name when saving a scene in the editor.
Add the DebugRenderer component to the saved scene in AssetImporter, as it is needed in editing.
2011-08-18 17:58:29 +00:00
Lasse Öörni
9bebc4898e Switched to AngelScript 2.21.1 WIP.
Fixed node reparenting removing extra items from the scene hierarchy window in the editor.
Guard against cyclic parent-child assignments in Node & UIElement.
2011-08-18 15:25:51 +00:00
Lasse Öörni
f8761918a8 Initial node reparenting (drag and drop) in the editor.
Let user code handle ListView item visibility toggling on doubleclick; do not handle it automatically.
2011-08-18 06:40:17 +00:00
Lasse Öörni
5296a4e569 Fixed ItemSelected event.
Script API fixes.
Sorting of the available component types.
Working component selection, and new node/new component creation in the editor.
2011-08-17 21:11:26 +00:00
Lasse Öörni
fc2567980e Added the same speed-optimization to ListView::ToggleChildItemsVisible(). 2011-08-17 08:47:05 +00:00
Lasse Öörni
97eff87a74 Fixed scene hierarchy window update.
Speed-optimized ListView::SetChildItemsVisible() & ListView::RemoveAllItems() by disabling layout update during processing.
2011-08-17 08:40:23 +00:00
Lasse Öörni
d6f774fc54 Fixed scene window update partially. 2011-08-17 07:05:21 +00:00
Lasse Öörni
b7797e95f2 Fixed odd crash in editor script after scene load.
Fixed nearclip & farclip related rendering issues.
2011-08-16 22:03:07 +00:00
Lasse Öörni
2863a640a8 Fixed inconsistent lineedit scrolling behaviour.
Lineedit cursor is created as the text element's child for more straightforward code.
2011-08-16 08:32:39 +00:00
Lasse Öörni
f1bb8bd2ba Updated to latest kNet.
Editor script fixes.
Fixed loading resources from script.
Fixed crashes when handling events from objects that subsequently get destroyed.
Fixed not being able to load elements of type UIElement from xml layouts.
2011-08-15 20:56:53 +00:00
Lasse Öörni
30660c705c Initial non-working editor code ported from Urho3D 1.0.
Script API fixes.
2011-08-15 15:16:08 +00:00
Lasse Öörni
387ac00631 Use the variable name uintColor throughout. 2011-08-14 17:44:05 +00:00