Commit Graph

500 Commits

Author SHA1 Message Date
SuperWangKai
fcc1071f64 Add 'Rotate Around Selection' to simulate the legacy way of camera orbit 2017-09-08 16:31:21 +08:00
SuperWangKai
2367f9eec8 Interrupt camera interpolation when user pan/orbit/zoom camera 2017-09-08 15:42:28 +08:00
SuperWangKai
0e88ed738e Editor camera improved:
1. Camera now has a virtual look-at point. Camera can now rotate around the look-at point or as well as itself. No focus will be lost during camera operation (issue #2039). New object can place at this look-at point(view center).
2. Better camera close-look - adjust pos/zoom of camera and make view frustum fit the calculated bounding box of selected nodes and components.
3. Double click component in Hierarchy Window can also look close to the node.
4. Camera smooth interpolation - pos/rot/zoom smooth interpolating for close-look, top/front/side view switching.
5. Removed MouseWheelCameraPosition to make camera less confusing.
6. Key/Mouse changed - Added F key(Standard Hotkey, many popular tools use this key) and NumPad Period(Blender Hotkey) for camera close-look. Moving middle mouse button for orbiting around look-at and right button movement for orbiting around camera itself (For standard Hotkey).
2017-09-06 16:51:30 +08:00
Eugene Kozlov
b617a576c4 Added attribute metadata. Removed attribute variant structure element names. Resolves #1766. 2017-08-27 12:02:47 +03:00
Lasse Öörni
4f54e7a95e Hello3DUI Lua version and minor Lua binding fix. 2017-08-23 23:29:02 +03:00
Lasse Öörni
50fbdbd12e UIComponent AngelScript API fix, AS example and shutdown crash fix. 2017-08-23 22:02:51 +03:00
Lasse Öörni
4265f99a8c Fix normals / lighting on the cylinder by using auto normal smoothing. Closes #2075. 2017-08-18 22:40:13 +03:00
Eugene Kozlov
d537c2027a Merge pull request #2061 from eugeneko/navmesh-streaming
Navmesh streaming
2017-08-12 15:52:35 +03:00
Eugene Kozlov
ef3b6efd96 Add streaming mode to Lua samples 15_Navigation and 39_CrowdNavigation. Minor changes. 2017-08-08 01:34:57 +03:00
Eugene Kozlov
f84e9d1392 Add streaming mode to C++ samples 15_Navigation and 39_CrowdNavigation . Fix using outdated navigation mesh data for streaming. 2017-08-08 01:34:57 +03:00
Eugene Kozlov
20d2133f13 Add streaming mode to AS sample 15_Navigation. 2017-08-08 01:34:57 +03:00
Eugene Kozlov
f7573971f4 Update Navigation AS API. Add streaming mode to AS sample 39_CrowdNavigation. Disable bounding box padding on NavigationMesh::Allocate. Send E_NAVIGATION_MESH_REBUILT on NavigationMesh::Allocate. 2017-08-08 01:34:56 +03:00
TheComet
e134de1b18 Updating sample scripts 2017-08-06 17:09:27 +02:00
TheComet
4f96c7c29f Refactoring the 'feature' setters and getters into a single method. Renaming a few things to be more consistent. Adding Documentation 2017-07-28 18:36:57 +02:00
TheComet
4a6d86804e Fixing bugs, updating script bindings and sample code 2017-07-28 03:42:16 +02:00
Lasse Öörni
83c17c7dc6 Robustness improvements for terrain editor brush loading. Closes #2011. 2017-07-06 18:13:13 +03:00
Iain Merrick
0450bcd11e Add configurable oversampling to improve subpixel font rendering (#1953)
Subpixel-positioned text looks blurry, due to bilinear filtering of the
underlying texture. The basic idea here is to stretch the font glyphs
horizontally to increase the sharpness at subpixel positions. The
stretched images need to be smoothed to avoid aliasing artifacts; this
is done in FontFaceFreeType::BoxFilter().

Glyphs are always pixel-aligned vertically, so no vertical oversampling
is needed.

To make this feature comprehensible (I hope!) I've removed the
'subpixelGlyphPositions' flag and replaced it with a couple of values:
'fontSubpixelThreshold' sets the point at which subpixel positioning
kicks on, and 'fontOversampling' controls the amount of stretching.

The default values are 12pt text and 2x oversampling. These are fairly
conservative settings, which should improve small text without wasting
a lot of memory.

Note that when the font hint level is NORMAL (the default), subpixel
positioning and oversampling are both disabled. So, this feature doesn't
change any default behavior, and applies some hopefully sensible values
if the hint level is set to LIGHT or NONE.
2017-07-03 11:21:47 -05:00
Iain Merrick
e603eed814 Add a 'subpixel glyph positions' option to UI (#1953)
When this option is enabled, text will be formatted with subpixel
(fractional) positions on the x-axis. Positions on the y-axis are
still pixel-aligned.

Note that this option has no effect if the hinting level is set
to FONT_HINT_LEVEL_NORMAL, as each glyph is rounded to an integral
pixel size by the hinter. It only makes a different if the hinting
mode is LIGHT (vertical hinting only) or NONE.

With subpixel positioning, the output will look blurrier due to
texture filtering. TODO: Add horizontal oversampling to improve
sharpness. That needs extra memory so it should be configurable.
2017-06-20 17:04:56 -05:00
Iain Merrick
1e3a1edd45 Change font size to a float (closes #1952)
This commit changes the 'pointSize' parameter in Font, Text
and Text3D from an int to a float, allowing e.g. 14.5pt text.
Note that when hinting is enabled, font metrics are snapped
to pixel boundaries, so the effect may be hard to see unless
you also set UI.FontHintLevel to LIGHT or NONE.

This is a change to the public API, but existing code (including
scripts) should compile and run as before.
2017-06-18 22:27:59 -05:00
Lasse Öörni
b9c3199a25 Merge remote-tracking branch 'iainmerrick/font_hinting' 2017-06-17 22:17:59 +03:00
Lasse Öörni
e5dcfdafbb Merge remote-tracking branch 'dragonCASTjosh/master' 2017-06-17 00:08:03 +03:00
Iain Merrick
282f250e3a Add UI.FontHintLevel property
There are three levels: NORMAL (the default), LIGHT and NONE.
The LIGHT level makes FreeType align font outlines to pixel
boundaries vertically, but not horizontally.
2017-06-15 15:30:28 -05:00
Iain Merrick
db6f4f9029 AngelScript version of Typography sample program 2017-06-13 13:40:31 -05:00
Iain Merrick
8fe78f261b Lua version of Typography sample program 2017-06-13 13:40:31 -05:00
dragonCASTjosh
53c36d25f9 Added PBR demo changes to LUA and AS 2017-06-13 19:25:40 +01:00
dragonCASTjosh
64d7e83711 Fixed missing files 2017-06-13 04:59:00 +01:00
dragonCASTjosh
bf40c8c7c4 Changed the diffuse and fresnel models 2017-06-13 04:03:48 +01:00
dragonCASTjosh
e741c50b11 Improved Area Lighting 2017-06-11 21:37:53 +01:00
dragonCASTjosh
e0cd084c74 Improved Sphere lights 2017-06-11 20:11:31 +01:00
Lasse Öörni
392155397b Add / remove the vehicle Action when RaycastVehicle component is enabled or disabled. Closes #1954. Minor code reformatting in 46_RaycastVehicleDemo.as. 2017-06-03 23:22:29 +03:00
Lasse Öörni
94af133ca4 For increased sharpness and to avoid artifacts, switch UI texture to nearest filtering when scaling the editor UI. 2017-05-09 01:02:49 +03:00
1vanK
fa767d1dc1 40_Localization: Center mouse on start 2017-05-05 19:39:45 +03:00
Lasse Öörni
f413945c98 Fix editor UI resolution detection for whether to lay out the status text on 1 or 2 rows. 2017-05-03 02:00:53 +03:00
Lasse Öörni
d4df1937c8 Line breaks formatting for RaycastVehicle demo code. 2017-04-29 20:33:36 +03:00
Lasse Öörni
13cfad66ef RaycastVehicle code / comments formatting and AngelScript fix. RegisterRaycastVehicleLibrary function removed and class registration performed as part of Physics library initialization instead. 2017-04-29 20:21:55 +03:00
Sergey Lapin
ed210093d4 RaycastVehicle Lua demo code 2017-04-25 13:45:09 +03:00
Sergey Lapin
e50ec947a8 RaycastVehicle AngelScript demo code 2017-04-25 13:45:09 +03:00
Sergey Lapin
2eb3a1183a RaycastVehicle C++ demo code 2017-04-25 13:45:09 +03:00
Lasse Öörni
5fecffe8bd Fix dialog centering in the editor to use UI root size instead of screen size, which may not be the same. 2017-04-22 13:03:06 +03:00
Yao Wei Tjong 姚伟忠
1d3c20aa70 Double up the editor UI when on High DPI display. 2017-04-14 19:57:16 +08:00
1vanK
150c4fb26d Export some consts to AngelScript 2017-04-09 22:17:34 +03:00
orefkov
1556605471 Clear tabs 2017-04-08 20:50:44 +03:00
orefkov
fa71240346 Add color wheel in editor for Text3D component. 2017-04-08 20:50:44 +03:00
Yao Wei Tjong 姚伟忠
8c9122ce25 Minor refactoring and cleaning on IK component's code. 2017-04-01 21:28:27 +08:00
Alex Murray
68f8d23411 Fixing issues raised by Mike3D (incorrect offset in sample, exposing auto solve) 2017-03-22 14:23:14 +01:00
TheComet
327965a40c Fixing build on windows, fixing segfault in release builds 2017-03-22 02:15:32 +01:00
TheComet
8fc0aa2866 Lua script bindings and CPP sample 2017-03-21 15:56:47 +01:00
TheComet
2be9286d38 Wrote AngelScript bindings, I'm still considering renaming a few things here and there 2017-03-21 15:56:47 +01:00
TheComet
cf30fb98c0 Adding IK library to Urho3D, enable/disable it with -DURHO3D_IK 2017-03-21 15:56:46 +01:00
Lasse Öörni
5f2b2132d7 Fix use of fileSystem.programDir in the terrain editor. Use the resource system / scene resource path instead. Closes #1852. 2017-03-19 12:12:35 +02:00
Enhex
0e2182b4e8 Updated sound effects Lua sample to use SetAutoRemoveMode() instead of nodes. 2017-03-15 21:15:56 +02:00
Enhex
490d402d4f Updated sound effects AngelScript sample to use SetAutoRemoveMode() instead of nodes. 2017-03-15 01:10:47 +02:00
Lasse Öörni
21ead269a4 Set renderorder 0 to example alpha pass decal materials to make sure they render before e.g. particles. Closes #1862. 2017-03-14 11:32:10 +02:00
Lasse Öörni
48a1f3dcdd Take fix from AngelScript WIP version to fix temp variable corruption. Remove now unnecessary fix from Editor script code. Closes #1850. 2017-03-08 14:26:52 +02:00
Lasse Öörni
ac821d21c1 Fix editor resource browser preview camera position and failure to assign model by drag & drop. Closes #1848. 2017-03-07 17:25:17 +02:00
Lasse Öörni
9999c44809 Fix resource browser scene node addition/removal getting reflected in the editor hierarchy window. 2017-03-07 16:55:52 +02:00
Lasse Öörni
2898952b08 Fix deprecated attributes in EditorTerrainWindow. 2017-02-18 23:01:57 +02:00
Lasse Öörni
4c877d98ee Merge remote-tracking branch 'luveti/editor-terrain' 2017-02-18 22:47:57 +02:00
luveti
1ce189361d Added brush visualizer to the TerrainEditor. 2017-02-16 23:16:12 -05:00
luveti
8d7b4b0b58 Make sure to clip undo / redo buffer bounds to the heightMap bounds in the TerrainEditor 2017-02-16 01:14:31 -05:00
luveti
7798f1f2ca Added basic undo / redo support 2017-02-15 23:21:37 -05:00
luveti
3511050a96 Updates to Terrain Editor
+ Added settings for the currently selected tool. This includes brush size, brush opacity, and brush height
+ Improved the speed of the smoothing algorithm by removing the new Array that was being created
+ Ignore transparent pixels in the smoothing algorithm
+ The "Create Terrain" action now creates a new image, saves it to Textures folder and adds it to the scene
+ Hid the "Paint" tools, as they have yet to be implemented
2017-02-14 00:52:49 -05:00
1vanK
4b901d2c05 Editor: F3 also toggle Physics2D debug geometry 2017-02-13 12:34:32 +03:00
luveti
79dc24003c More coding convention updates to Terrain Editor 2017-02-11 23:53:56 -05:00
luveti
d56ccd619d Use 4 spaces instead of tabs in Terrain Editor 2017-02-11 23:50:15 -05:00
luveti
6e250289a8 Merge remote-tracking branch 'github/master' into editor-terrain
# Conflicts:
#	bin/Data/Scripts/Editor.as
#	bin/Data/Textures/Editor/EditorIcons.png
2017-02-11 23:46:00 -05:00
luveti
6950ad7c7d Updated Terrain Editor UI to work with latest version of Urho3D. 2017-02-11 23:41:16 -05:00
Lasse Öörni
2821837f2a Remove zero damping from Urho2DConstraints sample to eliminate jittering behavior. Closes #1816. 2017-02-11 15:33:09 +02:00
Lasse Öörni
337056b657 Squashed commit of the following:
commit 53b7204fded9ce69fa69e96b0531a12161c1036d
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Tue Feb 7 13:52:27 2017 -0300

    Restore windows positions when viewportmode switch

    Now the hierarchy and inspector windows will be restored to original state if you switch between viewport_compact and others.

commit 8a15c06ea468fd42268fa3d937433ff624b03a42
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 15:04:43 2017 -0300

    Replaced tabs by spaces.

commit 9663fef07f5dcebc3a78d2e82c875736cb6d1a70
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 14:56:06 2017 -0300

    Replaced tabs by spaces.

commit 6fbea29b26491675d9783769cc9f01e8f925dabe
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 14:49:15 2017 -0300

    Replaced tabs by spaces.

commit 6dbe8b451e444391f82c642374f1bcba506035ce
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 14:48:30 2017 -0300

    Replaced tabs by spaces.

commit 1d3c98689183abcc99271a65fe9ec3d9be5b6ca0
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 14:19:00 2017 -0300

    Fixed stats text position.

commit 9632876aee4470d722872223f62a072cef1e8137
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 13:54:20 2017 -0300

    Prevent inspector hide if viewport_compact

commit 46775b205bb340dddcb2f1950d9c1912845d36aa
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 13:52:25 2017 -0300

    Prevent hierarchy hide if viewport_compact

commit b301b244a47c4f374ca7b97f6c06029f95531c5e
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 13:47:10 2017 -0300

    Replaced .visible by functions.

commit a30879d68d2145c6521a9ed9f7d282e9f63b4404
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 13:42:51 2017 -0300

    Enable hierarchy/inspector on compact viewport mode.

commit d6f9d2748e96d8f7b76ea875e5079385f4d9af60
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Mon Feb 6 13:30:18 2017 -0300

    Clean version of code

    Now the content of SetCompactMode is inside of SetViewportMode.
    Code commented.
    Now the code match the engine code convention.

commit 9777750d41f6f45701438b65fae20ea008db3f71
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Sat Feb 4 17:21:57 2017 -0300

    Update EditorView.as

commit e00dbbac2a528a535dab2e1bbc24fe91933caf3b
Author: Liichi <lisandrobruzzo@gmail.com>
Date:   Sat Feb 4 17:18:11 2017 -0300

    Added compact option to viewport mode list.
2017-02-09 15:34:36 +02:00
Lasse Öörni
171896ddb4 Hide instead of skip UI element internal vars in AttributeEditor so that indexing works for user-added UI element variables (subindex 0 must always be found in current implementation.) Closes #1788. 2017-02-06 19:00:12 +02:00
Mateus Vendramini
78b77ed48f Fixing small typos in comments 2017-02-05 17:33:01 -02:00
Henrik Heino
2d8c0cf247 IntVector2 bindings, conversions, serialization, etc.
Also two typos "Intvector2" and "Intrect" fixed.
2017-01-29 17:57:16 +02:00
1vanK
0c1c14871c Remake 'Anonymous Pro.sdf' font 2017-01-19 19:54:03 +03:00
1vanK
c4de7c004a Fix Kachujin BoundingBox 2017-01-17 23:32:37 +03:00
MonkeyFirst
0d91a1b412 minor fixes: sizes, font, adjust offsets, b.mode key 2017-01-17 23:56:49 +07:00
MonkeyFirst
8828740464 Use Ctrl instead Alt for deselecting with PaintSelection 2017-01-17 19:25:21 +07:00
MonkeyFirst
b0cade9697 add global handlers 2017-01-17 06:24:55 +07:00
MonkeyFirst
984ba731bb PaintSelection and Origins 2017-01-17 06:23:21 +07:00
Yao Wei Tjong 姚伟忠
53d213eb50 Minor refactor to remove the '***' as the repeat indicator.
The script already knows when the nested attributes repeat itself.
2017-01-07 14:08:37 +08:00
Yao Wei Tjong 姚伟忠
8fd264c73e Fix minor typo in editor resource browser script. 2017-01-07 13:02:36 +08:00
Lasse Öörni
c548d8ed24 Merge remote-tracking branch 'arnislielturks/console-update' 2017-01-04 16:05:28 +02:00
Lasse Öörni
e93fa4d7b3 Replace small version of old logo with slightly larger picture. For now editor does not display a logo in the top bar, since the new logo would become mostly illegible. 2017-01-04 14:39:14 +02:00
Arnis Lielturks
e89a769a76 console text highlighting, style detection by log level improved 2017-01-04 10:50:19 +02:00
Eugene Kozlov
48b82e136e Fix typo in Editor scripts. 2017-01-03 18:27:06 +03:00
Arnis Lielturks
ffbe619c8a log message colour in console displayed based on it's type 2017-01-03 17:09:59 +02:00
Lasse Öörni
496b2d39f8 Merge remote-tracking branch 'Modanung/new-icon' 2017-01-02 19:16:53 +02:00
Lasse Öörni
b5a7d764bd Replace "***" with a divider element. 2017-01-02 18:11:12 +02:00
Lasse Öörni
c9884af9a6 Minor code edit, prefer GetObjectAttributeInfos() since it's asking for a single object's attributes. 2017-01-02 17:57:47 +02:00
Lasse Öörni
1f1433847d Merge remote-tracking branch 'KonstantinTomashevich/allow-define-vector-structs-attributes' 2017-01-02 17:43:15 +02:00
Modanung
c17a63dd57 Switched to new icon 2017-01-02 11:47:22 +01:00
Konstant
c70b6cf7ae Fix another misspelling. 2017-01-02 11:23:52 +02:00
Lasse Öörni
11f099c655 Minor style edits. Use position instead of iterator in autocomplete to be safe against iterator invalidation. Add Lua binding to autocomplete. Add short description of the new feature being demonstrated in sample 26. 2017-01-01 22:35:16 +02:00
Enhex
f0e05cb7e1 Console auto complete 2017-01-01 22:35:14 +02:00
Konstant
40907e4ec1 Return " >areaCost" variables to AttributeEditor. 2017-01-01 20:29:14 +02:00
Konstant
7244503cef Update AttributeEditor. 2017-01-01 20:24:09 +02:00
1vanK
9d7dceb2f2 06_SkeletalAnimatin: fix running out bounds, lighting correction
Fix excessive specular on Kachujin texture
2016-12-30 13:58:41 +03:00
Lasse Öörni
299dbf803b Squashed commit of the following:
commit 8b67f0edcb9b588c70df1676bdbfa4853e50c3aa
Author: Lumak <lumak5309@gmail.com>
Date:   Thu Dec 29 10:18:40 2016 -0800

    corrected to stonetiled mat

commit c17d68b1e0ed5435c492a26ed8010c4f4aa708eb
Author: Lumak <lumak5309@gmail.com>
Date:   Thu Dec 29 10:14:20 2016 -0800

    removed proto mat/texture

commit 1c322d19556d7796c4958a920203e5b1c80af843
Author: Lumak <lumak5309@gmail.com>
Date:   Wed Dec 28 12:18:59 2016 -0800

    replaced the Jack with Jill in 06_SkeletalAnimation sample
2016-12-29 20:39:28 +02:00
Lasse Öörni
adf96469ef Replace LogoLarge.png with new logo & redirect README.md back to it, since svg doesn't appear properly on the project page. 2016-12-19 20:02:05 +02:00
Lasse Öörni
790772ec79 Squashed commit of the following:
commit 79d66503554c716c6a3c31f6c9e0aed46832c6bb
Author: Modanung <frode@lindeijer.nl>
Date:   Mon Dec 19 02:45:45 2016 +0100

    More clearly defined character edges in FishBoneLogo.png

commit fbfa9285f78819b4f1f3c42673f61f55c5ce5d06
Author: Modanung <frode@lindeijer.nl>
Date:   Mon Dec 19 02:27:07 2016 +0100

    Removed alpha anomaly in FishBoneLogo.png

commit 07161d555ed3ab3a13ac7c2f8ae0c0abfc7688a8
Author: Modanung <frode@lindeijer.nl>
Date:   Mon Dec 19 02:21:27 2016 +0100

    Improved lighting on FishBoneLogo.png

commit 5ec68be44517a4fd0ebd19b7bc73b98117af5f62
Author: Modanung <frode@lindeijer.nl>
Date:   Mon Dec 19 01:05:58 2016 +0100

    Tuned down alpha to zero for low-alpha areas

commit 55fc6df7302597f2e8281283748b5f3723297362
Author: Modanung <frode@lindeijer.nl>
Date:   Sun Dec 18 23:12:32 2016 +0100

    Increased size of black and white fish bone logo

commit 2c3ef9af05df91149132a3ac137e51a424be98f6
Author: Modanung <frode@lindeijer.nl>
Date:   Sun Dec 18 23:11:03 2016 +0100

    Updated black and white fish bone logo

commit 47adbcf0463937726b406c1ee7deead3d568bf63
Author: Modanung <frode@lindeijer.nl>
Date:   Sun Dec 18 23:08:51 2016 +0100

    Replaced logo in readme and samples
2016-12-19 19:49:17 +02:00
luveti
ba5e3a3097 Moved Editor resources into correct bin folder 2016-12-18 20:18:47 -05:00