Commit graph

1911 commits

Author SHA1 Message Date
Lubos Lenco d210cea6d8
Merge pull request #1997 from E1e5en/ln-math-optimization
Update the Math Node
2020-11-08 14:13:58 +01:00
Lubos Lenco 0d944db767
Merge pull request #1995 from N8n5h/debug-print
Show commands that launch build better and play for debugging
2020-11-08 14:13:22 +01:00
Lubos Lenco 4adb01dc5f
Merge pull request #1994 from E1e5en/ln-vector-math-upgrading
Upgrading the Vector Math Node
2020-11-08 14:12:26 +01:00
Lubos Lenco 3f77a1e51d
Merge pull request #1993 from MoritzBrueckner/musgrave-tex-node
Fix musgrave texture node
2020-11-08 14:10:47 +01:00
E1e5en c759a48503 Update LN_vector_math.py
Refactoring, optimization, checkstyle
2020-11-08 11:38:19 +03:00
E1e5en 5228bd097b Update LN_math.py
Refactoring, optimization
2020-11-08 11:36:44 +03:00
N8n5h fde5760a29 Show commands that launch build and play for debugging
This is so you can easily copy and paste it for testing purposes instead of having to build the whole project again.
Alternatively a button to play without build could be added to the blender UI.
2020-11-07 09:38:11 -03:00
E1e5en 7dae9e38d0 Upgrading the Vector Math Node
Dynamically change the number of input and output parameters for the selected operation
2020-11-07 11:14:46 +03:00
Moritz Brückner 242f80357f Fix musgrave texture node 2020-11-07 00:27:51 +01:00
knowledgenude 5052d5119b update 2020-11-06 17:31:26 -03:00
knowledgenude 7159b90b45 change-socket-type 2020-11-06 17:22:10 -03:00
knowledgenude 72186140a9 new-nodes 2020-11-06 17:20:28 -03:00
luboslenco 085146b245 Write cascade params only when shadows are enabled 2020-11-05 11:04:11 +01:00
Lubos Lenco d9480bc5b2
Merge pull request #1987 from E1e5en/ln-math-upgrading
Upgrading the Math Node
2020-11-05 10:57:22 +01:00
Lubos Lenco 00c585811d
Merge pull request #1984 from knowledgenude/master
Update nodes that own 'On Local Axis'
2020-11-05 10:56:30 +01:00
E1e5en 1352811bcd Upgrading the Math Node
- Dynamically change the number of arguments for the selected operation;
- Exp() operation added.
2020-11-03 09:12:41 +03:00
David Bruce a559a0b28d
Revert/fix for traits updating
Changes compilation_server_done() back to before my change.  Updates the path it checks to krom/krom.js.temp, this should prevent it from deleting existing krom.js files on first project launch.
2020-11-02 10:15:26 -05:00
knowledgenude 7fcd3dc81d update-local-axis-nodes 2020-11-02 11:51:34 -03:00
luboslenco 8e839b84c7 Bump version 2020-11-02 14:08:09 +01:00
Lubos Lenco f0715ff2b6
Merge pull request #1982 from niacdoial/master
Some more (late) fixes to the node upgrading
2020-11-02 09:26:55 +01:00
Lubos Lenco bed58984d1
Merge pull request #1980 from E1e5en/checking-version
Checking Blender version for Armory
2020-11-02 09:23:27 +01:00
niacdoial 3f9b633fbf Fixed a problem in the default (0->1) node upgrade mechanism
-> in NodeReplacement.Identity, made so that the properties of a given node are detected better. Still not perfect, but better.
2020-11-01 22:15:53 +01:00
niacdoial 7414a6846a Fixed a bunch of node class initializations 2020-11-01 22:15:53 +01:00
E1e5en 9fbd29b143 Checking Blender version for Armory
- Added compare function to utils.py module
- Added check of Blender version and display of a message about incorrectness during Play, Build, Publish operations
2020-11-01 21:10:44 +03:00
Moritz Brückner f7afe8e2f0 Also load libraries when a file is opened during registration 2020-11-01 01:44:22 +01:00
Moritz Brückner 0dfb6c2292 Use more os.path.join() 2020-11-01 01:23:00 +01:00
Moritz Brückner bc5b207544 Fix bug with dynamic socket amounts for custom nodes 2020-11-01 01:20:58 +01:00
Moritz Brückner 07ed438f99 Fix wrong package name for custom nodes 2020-11-01 01:20:41 +01:00
Moritz Brückner 0120910f92 Improve handling of custom logic nodes 2020-11-01 01:20:27 +01:00
Lubos Lenco 38103be7d3
Merge pull request #1973 from davidbruce/master
Fix for play button not working with Krom.
2020-10-31 17:13:25 +01:00
Lubos Lenco 931b999117
Merge pull request #1978 from MoritzBrueckner/fix-paths
Fix trait paths
2020-10-31 17:08:02 +01:00
Lubos Lenco 91c98c7dfc
Merge pull request #1977 from MoritzBrueckner/profiler
Implement optional profiling for export
2020-10-31 17:05:01 +01:00
Lubos Lenco 4236190f5d
Merge pull request #1976 from E1e5en/detect-mobile-browser
LN Detect Mobile Browser
2020-10-31 17:01:36 +01:00
Moritz Brückner 25ed2059f1 Simplify get_pref_or_default 2020-10-31 13:18:05 +01:00
Moritz Brückner efad6d62e6 Fix trait paths 2020-10-31 01:41:53 +01:00
Moritz Brückner 0f3233d829 Implement optional profiling for export 2020-10-31 01:09:33 +01:00
Henrique 58a0d996aa renames 2020-10-30 15:28:38 -03:00
E1e5en 145686dbf4 LN Detect Mobile Browser
Detect Mobile Browser
2020-10-30 21:22:52 +03:00
Henrique 97d284c946 replace-none-node 2020-10-30 13:22:09 -03:00
David Bruce 561daa34fd Forces a build before compilation server to generate first krom.js.
Fixes bug where compilation server will delete krom.js if it exists
during first launch.
2020-10-30 11:39:25 -04:00
Moritz Brückner 1cebb0b0fd Further improve handling of nodes/menu registration 2020-10-29 15:17:44 +01:00
Lubos Lenco 0472734eab
Merge pull request #1967 from MoritzBrueckner/node-deprecation
Improve handling of deprecated logic nodes
2020-10-29 09:34:24 +01:00
Moritz Brückner 60ea88658c Improve handling of deprecated nodes 2020-10-28 20:29:01 +01:00
Henrique bb1fab992d add-bounce-elastic-to-mix-nodes 2020-10-28 11:16:14 -03:00
Lubos Lenco 2f762187cf
Merge pull request #1964 from MoritzBrueckner/fix-nodes-registering
Fix and improve registration of nodes
2020-10-28 10:45:47 +01:00
E1e5en 5eeb6ab559
Update LN_get_fps.py
Due to the change in PR (https://github.com/armory3d/armory/pull/1964)
2020-10-28 07:37:06 +03:00
Moritz Brückner bc05233ca5 Fix registration of node libraries 2020-10-27 22:39:07 +01:00
Moritz Brückner 4b9e5d533d Fix and improve registration of nodes 2020-10-27 19:44:37 +01:00
E1e5en 658d2546d8 Add LN Get Frames Per Second
This is sometimes more convenient than enable the entire debug console.
2020-10-27 15:56:34 +03:00
Henrique 4324d6196b more-cleanups 2020-10-26 11:32:59 -03:00
Henrique 413951cb62 cleanups 2020-10-26 11:20:50 -03:00
Lubos Lenco 8bd93d0d96
Merge pull request #1955 from E1e5en/change-bundle-icon
Change Bundle icon for Armory Traits
2020-10-26 09:20:30 +01:00
Lubos Lenco b81486ac7a
Merge pull request #1954 from E1e5en/get-traits-name
LN for Traits
2020-10-26 09:19:54 +01:00
Lubos Lenco f1a65df4d2
Merge pull request #1952 from MoritzBrueckner/bump-node
Fix bump node when connected to vector output
2020-10-26 09:19:04 +01:00
Lubos Lenco 800498a78e
Merge pull request #1951 from MoritzBrueckner/cycles-nodes
More cycles nodes + improvements
2020-10-26 09:13:54 +01:00
E1e5en e840eead7e Change Bundle icon for Armory Traits
1. Add custom icon.
2. Change Bundle icon for Armory Traits.
2020-10-25 07:51:16 +03:00
Henrique ded3a7353d rename-node 2020-10-24 17:20:22 -03:00
E1e5en ef4dbd7611 LN for Traits
1. Modification of CanvasScript and WasmScript classes: added a field to save the name of the script / file in the class.
2. Added logical nodes for working with Traits.
- Get Object Traits - gets an array of Traits for the specified object;
- Get Trait Name - get the Trait name (the name that appears in the list in Armory Traits) and its type (Canvas, Wasm, Bundle, LogicNode or Haxe).
2020-10-24 22:04:47 +03:00
Henrique b942672990 new-vector-to-object-space-node 2020-10-24 14:39:20 -03:00
Moritz Brückner cf40b4255b Fix bump node when connected to vector output 2020-10-23 23:37:53 +02:00
Moritz Brückner 3f0122ad80 Fix noise texture node socket indices 2020-10-23 16:40:36 +02:00
Moritz Brückner 87d89cfa83 Improve MixRGB node 2020-10-23 16:40:02 +02:00
Moritz Brückner 095f44235c Fix TextureCoordinate node normals for world shaders 2020-10-23 16:24:37 +02:00
Moritz Brückner 070487dd7c Implement Light Falloff node according to Eevee 2020-10-23 16:23:56 +02:00
Moritz Brückner 1ddc106eb7 Implement Separate HSV node 2020-10-23 16:23:36 +02:00
Moritz Brückner 18464a5182 Fix light path node socket indices 2020-10-23 16:23:23 +02:00
Moritz Brückner a2c0ee7192 Align LightPath node to Eevee implementation 2020-10-23 16:16:18 +02:00
Moritz Brückner 5dab3500de Improve normal node parsing 2020-10-23 16:15:53 +02:00
Lubos Lenco 1dfa0c4644
Merge pull request #1948 from MoritzBrueckner/vectormath
Fully implement the VectorMath node
2020-10-23 09:08:12 +02:00
Lubos Lenco 343d22e47a
Merge pull request #1949 from MoritzBrueckner/clamp-node
Implement cycles clamp node
2020-10-23 09:07:37 +02:00
Lubos Lenco a9e59101e5
Merge pull request #1950 from knowledgenude/master
New node Vector From Boolean
2020-10-23 09:04:12 +02:00
Moritz Brückner b9fbb01ea4 Make glsl params const 2020-10-23 00:06:09 +02:00
Moritz Brückner 6d68b41f43 Small fix 2020-10-23 00:05:52 +02:00
Henrique 538e66e680 new-vector-from-boolean-node 2020-10-22 15:42:22 -03:00
Moritz Brückner 40a6a5cddc Implement cycles clamp node 2020-10-22 19:10:39 +02:00
Moritz Brückner 2ff90d55e4 Fully implement the VectorMath node 2020-10-22 18:47:21 +02:00
E1e5en 5451b3e7e2 Added settings for building APK
Added a panel with settings:
- Building APK After Publish - to start the build after the project has been successfully published (False by default). Disabled if SDK path is not specified;
- Emulator - list of installed emulators in Android Studio (AVD Manager). At the start of Blender, the list is always empty, to fill and update it, you must click the Refresh button. To start the emulator, if you wish, you need to press the "Start" button (the list of emulators is obtained with the emulator -list-avds command, the launch is performed with the emulator -avd [name] command). The "Start" button is disabled if the name of the emulator is not selected from the list;
- Run Emulator After Building APK - launch the emulator after successfully building the APK file. Disabled if no APK build is installed or no emulator name selected.

To perform these operations, you need to specify the ANDROID_SDK_ROOT environment variable, if it is not specified in the OS, then the "Android SDK Path" setting is read and set as the environment variable os.environ ['ANDROID_SDK_ROOT'] to perform operations.
If no value is specified, then the user receives a corresponding message to the console. If the specified value is incorrect, then the user will receive messages from the corresponding programs.
2020-10-22 19:19:03 +03:00
Moritz Brückner 74d6b594a6 Two new logic nodes for the "Random" category 2020-10-19 18:21:56 +02:00
Lubos Lenco b36cf8327b
Merge pull request #1940 from MoritzBrueckner/fix-android-build-folder
Open correct folder after successful Android build
2020-10-19 09:09:25 +02:00
Moritz Brückner 597bb9aca5 Open correct folder after successful Android build 2020-10-18 21:57:49 +02:00
Moritz Brückner 863ec518f8 Set file encoding to utf-8 2020-10-18 17:50:35 +02:00
Lubos Lenco e9c351c7e0
Merge pull request #1936 from E1e5en/add-android-settings
Add Android Settings + LN Set Vibrate
2020-10-18 11:59:35 +02:00
E1e5en 1a34e202a7 Add Android Settings + LN Set Vibrate
1. For the new settings to fully function, you need to update the submodules so that this Pull Request (https://github.com/Kode/kincmake/pull/100) gets into armsdk. Extended settings via khafile.js.

2. Added Android Settings panel:
- invisible until the target platform android-hl is added to the list;
- inactive until the target platform android-hl is selected in the list.
Options:
- Orientation;
- Compile Version SDK - from 26 to 30, default 29;
- Minimal Version SDK - from 14 to 30, default 14;
- Target Version SDK - from 26 to 30, default 29;
- Permissions - a list of permissions. If I will duplicate entries in the list, then only unique entries will be included during export. By default, the list is empty;
- Android ABI Filters - a list of platforms to build for (arm64-v8a, armeabi-v7a, x86, x86_64). If I will duplicate entries in the list, then only unique entries will be included during export. By default, the list is empty. If the list is empty, then all platforms will be used (as before).

3. The enum (names of permissions) and the function have been added to the utils.py modules, which adds the specified value to the list of permissions. Feature added for ease of use from different locations (different logical nodes).

4. List of permissions:
- ACCESS_COARSE_LOCATION - Allows an app to access approximate location;
- ACCESS_NETWORK_STATE - Allows applications to access information about networks;
- ACCESS_FINE_LOCATION - Allows an app to access precise location;
- ACCESS_WIFI_STATE - Allows applications to access information about Wi-Fi network;
- BLUETOOTH - Allows applications to connect to paired bluetooth devices;
- BLUETOOTH_ADMIN - Allows applications to discover and pair bluetooth devices;
- CAMERA - Required to be able to access the camera device;
- EXPAND_STATUS_BAR - Allows an application to expand or collapse the status bar;
- FOREGROUND_SERVICE - Allows a regular application to use Service.startForeground;
- GET_ACCOUNTS - Allows access to the list of accounts in the Accounts Service;
- INTERNET - Allows applications to open network sockets';
- READ_EXTERNAL_STORAGE - Allows an application to read from external storage;
- VIBRATE - Allows access to the vibrator;
- WRITE_EXTERNAL_STORAGE - Allows an application to write to external storage.

5. Added logical node Set Vibrate:
Category: Native
Pulses the vibration hardware on the device for time in milliseconds, if such hardware exists.
Input parameters:
- Milliseconds - time in milliseconds (data type Int, default value 100).
When adding the logical node Set Vibrate, the permission is automatically added to the list, even if the target android-hl has not been added to the export list (using a function from utils.py).
2020-10-17 16:47:54 +03:00
Moritz Brückner 4bafe8130c Add option to open build directory after successfully publishing 2020-10-17 15:09:21 +02:00
Moritz Brückner 203da296ad Make arm.utils.folder() work with every folder 2020-10-17 15:08:56 +02:00
Moritz Brückner 6dcc2f3fe8 Add arm.utils.get_arm_preferences() 2020-10-17 15:08:20 +02:00
Henrique f2afb4fcdb rename-tilesheet-sockets 2020-10-14 10:56:41 -03:00
Henrique be137c3805 get-tilesheet-state-ln 2020-10-14 10:03:47 -03:00
Lubos Lenco aaa699c3cd
Merge pull request #1930 from E1e5en/screen-to-world-space-modif
Modifying the Screen To World Space node
2020-10-14 08:58:37 +02:00
E1e5en 6116c665c4 Modifying the Screen To World Space node
Modifying the Screen To World Space node

Input parameters:
- Screen X - value of screen coordinates along the X axis (data type Int);
- Screen Y - the value of the screen coordinates along the Y axis (data type Int).

Options:
- Separator Out - whether or not to separate the output parameters (vectors) into components (XYZ).

Output parameters:
- World - coordinates of a point in 3D space (Vector data type)
- Direction - normalized direction vector from the camera towards the point/cursor indication (data type Vector).
- X, Y, Z - components of the corresponding vectors (data type Float).
2020-10-13 20:50:30 +03:00
E1e5en ebfb324abf
Update
Correction of an error in the node description
2020-10-13 18:25:10 +03:00
E1e5en c67246cd1a Get System Language - LN
Get System Language
Category: Native
To get the current system language according to the IS0 639 standard.
The Krom platform always returns “en”.
2020-10-13 17:29:50 +03:00
Lubos Lenco 20c8be3d0d
Merge pull request #1924 from MoritzBrueckner/world-nodes
World nodes support and nodes parsing refactor
2020-10-11 20:23:53 +02:00
Moritz Brückner eeee016927 Remove unused parameter 2020-10-11 17:15:35 +02:00
Moritz Brückner 34eafda885 Fix noise texture node socket indices 2020-10-11 17:13:36 +02:00
knowledgenude 5abe984920
Update LN_set_object_material.py 2020-10-11 12:08:05 -03:00
knowledgenude 6ed63ad7d0
Update LN_resume_action.py 2020-10-11 12:06:36 -03:00
knowledgenude 46f0c3eb9b
Update LN_play_action.py 2020-10-11 12:05:44 -03:00
knowledgenude ffffd6bc88
Update LN_resume_trait.py 2020-10-11 12:03:49 -03:00
knowledgenude 1d0d22594f
Update LN_pause_trait.py 2020-10-11 12:02:23 -03:00