Compare commits

..
748 Commits
Author SHA1 Message Date
Mamadou Babaei b57492ced4 bump the plugin version to v2.4.2 2025-02-17 13:29:30 +01:00
Mamadou Babaei 287ec38324 list the third-party tutorials with a description in their corresponding parent sections 2025-02-17 13:29:30 +01:00
Mamadou Babaei 1e132d1093 bump the plugin version to v2.4.1 2025-02-14 15:25:51 +01:00
Mamadou Babaei afb3789c1e fix a bug that breaks the custom styles on the release urls 2025-02-14 15:07:39 +01:00
Mamadou Babaei d36b729b06 apply a minor handbook makefile fix 2025-02-14 15:07:39 +01:00
Mamadou Babaei 9f6d1191f2 bump the plugin version to v2.4.0 2025-02-14 12:21:32 +01:00
Mamadou Babaei 7c8a577928 update the list of supported hmds in the planned features completion status 2025-02-14 12:11:56 +01:00
Mamadou Babaei 8a2c5ac738 remove meta xr plugin compatibility from the planned features completion status 2025-02-14 12:11:56 +01:00
Mamadou Babaei 1b704d9010 fix documentation errors and confusions 2025-02-14 12:11:56 +01:00
Mamadou Babaei 5fb678700e list the vrexpansion plugin demo in the extra resources section 2025-02-14 12:11:56 +01:00
Mamadou Babaei 7ec73736a2 Revert "experiment with a hacky approach to make metaxr work"
This reverts commit f3bc6502e4.
2025-02-14 12:11:56 +01:00
Mamadou Babaei a97a6c5920 Revert "add SetupMetaXRAvailability during the build time to define WITH_METAXR"
This reverts commit e2c50e9c77.
2025-02-14 12:11:55 +01:00
Mamadou Babaei d134125217 remove metaxr compatibility from the documentation along with its assets and replace it with a caution incompatibility note 2025-02-14 12:11:55 +01:00
Mamadou Babaei 8559022f2c remove metaxr compatibility notes from the changelog for this release 2025-02-14 12:11:55 +01:00
Mamadou Babaei 514f3d920c minor changelog fixes 2025-02-14 12:11:55 +01:00
Mamadou Babaei bbf2b1f396 minor documentation fixes 2025-02-14 12:11:55 +01:00
Mamadou Babaei 10c8051cf0 add notes in regards to pcvr and standlone modes support for vive and meta hmds 2025-02-14 12:11:55 +01:00
Mamadou Babaei 2a5023c34c fix the platform support matrix formatting 2025-02-14 12:11:55 +01:00
Mamadou Babaei d706384c68 add a deprecation note for ue 5.2 2025-02-14 12:11:55 +01:00
Mamadou Babaei aa58c6f142 mark ue 5.5 meta quest standalone mode as supported 2025-02-14 12:11:55 +01:00
Mamadou Babaei e343103be1 mark ue 5.5 meta quest standalone mode as supported 2025-02-14 12:11:48 +01:00
Mamadou Babaei 0159ec492e add a few third-party tutorials 2025-02-14 12:11:45 +01:00
Mamadou Babaei c67382c075 minor url fix 2025-02-14 12:11:45 +01:00
Mamadou Babaei 1e5334a099 experiment with a hacky approach to make metaxr work 2025-02-14 12:11:45 +01:00
Mamadou Babaei 5a4ec78123 add SetupMetaXRAvailability during the build time to define WITH_METAXR 2025-02-14 12:11:45 +01:00
Mamadou Babaei 88cc3b8b70 fix the changelog's grammatical issues and typos 2025-02-14 12:11:45 +01:00
Mamadou Babaei b7297ccc6e add missing headers to solve runuat build issues 2025-02-14 12:11:44 +01:00
Mamadou Babaei aa57b164d6 add htc vive optimal rendering settings 2025-02-14 12:11:44 +01:00
Mamadou Babaei 2be973cce0 add htc vive specific optimization tips for running in standalone mode 2025-02-14 12:11:44 +01:00
Mamadou Babaei a6bb54af47 update viveopenxr XR_EXT_hand_tracking and wrist-tracking documentation with more accurate details 2025-02-14 12:11:44 +01:00
Mamadou Babaei 6115b809b0 add initial ultimate tracker and OpenXRXrTracker support which is not fully functional 2025-02-14 12:11:44 +01:00
Mamadou Babaei 95c077207b bring the wrist-tracking hardware setup and XR_EXT_hand_tracking documentation on par with the recent changes 2025-02-14 12:11:44 +01:00
Mamadou Babaei 5557157dcc clear up debug logs 2025-02-14 12:11:44 +01:00
Mamadou Babaei b82bebf126 add support for htc vive wrist trackers on android 2025-02-14 12:11:44 +01:00
Mamadou Babaei cfa1504bc0 fix a comment formatting 2025-02-14 12:11:44 +01:00
Mamadou Babaei aa171a77a9 fix a typo 2025-02-14 12:11:44 +01:00
Mamadou Babaei d310d30de6 add support for htc vive focus vision hmd auto-detection and various htc hmds auto-detection support on android 2025-02-14 12:11:44 +01:00
Mamadou Babaei 2a394c392a optimize FSGArrayUtils by pre-allocating memory instead of growing by every emplace_back or add 2025-02-14 12:11:44 +01:00
Mamadou Babaei 6e5559c406 fix a comment 2025-02-14 12:11:44 +01:00
Mamadou Babaei 6a29c51b2e use fixed-width integers 2025-02-14 12:11:44 +01:00
Mamadou Babaei 1aa59fab45 clarify how to setup the VIVE Wrist Trackers in various configurations 2025-02-14 12:11:44 +01:00
Mamadou Babaei db03a4a609 add ue 5.2 deprectation notes to the changelog 2025-02-14 12:11:43 +01:00
Mamadou Babaei d11f03c589 minor comment fixes 2025-02-14 12:11:43 +01:00
Mamadou Babaei 2905c1cb59 remove redundant sgxrtracker code 2025-02-14 12:11:43 +01:00
Mamadou Babaei 84c044275f use engine api to set the tracking motion source 2025-02-14 12:11:43 +01:00
Mamadou Babaei 78aca95d11 fix the non-editor build issues caused by the recent motion sources refactor 2025-02-14 12:11:43 +01:00
Mamadou Babaei 7127eda4c8 refactor the way we populate and utilize motion sources for viveopenxr compatibility 2025-02-14 12:11:43 +01:00
Mamadou Babaei dae3999d9e remove redundant dependency module 2025-02-14 12:11:43 +01:00
Mamadou Babaei a3efa62bdf add the FSGPluginUtils utility class for other plugins or modules availability detection such as Meta XR and ViveOpenXR 2025-02-14 12:11:43 +01:00
Mamadou Babaei 6153caf4c8 mention meta xr and viveopenxr plugins compatibility in the planned features completion status 2025-02-14 12:11:43 +01:00
Mamadou Babaei c709f526be revamp the Enabling XR_EXT_hand_tracking OpenXR Extension on VR Headsets and Deploying to Android (Standalone) documentation and the Meta XR-compatibile and ViveOpenXR-compatibile instructions 2025-02-14 12:11:43 +01:00
Mamadou Babaei 44510c5f74 add FSGConnectJNI::Initialize() and FSGCoreJNI::Initialize() return codes to Android logs for detailed debugging purposes through adb logcat 2025-02-14 12:11:43 +01:00
Mamadou Babaei 09790e4859 add a missing url 2025-02-14 12:11:43 +01:00
Mamadou Babaei f2c796c5b7 apply some minor changelog fixes 2025-02-14 12:11:43 +01:00
Mamadou Babaei 4414dbfefd update the changelog with the unreleased changes 2025-02-14 12:11:43 +01:00
Mamadou Babaei 275bcaf488 use ue 5.5 header github links in the fxrmotioncontrollerdata page since its removal is likey in ue 5.6 2025-02-14 12:11:43 +01:00
Mamadou Babaei 01d44d9b7c fixed a few broken URLs caused by bad markdown formatting 2025-02-14 12:11:43 +01:00
Mamadou Babaei c8d92cc8f6 update the changelog with the unreleased changes 2025-02-14 12:11:42 +01:00
Mamadou Babaei 3eb5b7db3e bump the SenseGlove Unreal Engine Marketplace Packager v0.5.0-7df1183 2025-02-14 12:11:42 +01:00
Mamadou Babaei 02ae79f532 make the handbook scp operations safer by utilizing quotes 2025-02-14 12:11:42 +01:00
Mamadou Babaei 4eb2c8fb81 reintroduce Michael-F-Bryan/mdbook-epub backend for the handbook as its issue #115 have been solved 2025-02-14 12:11:42 +01:00
Mamadou Babaei 14b734ce80 make the handbook makefile safer by wrapping files/folder navigations/operations in quotes 2025-02-14 12:11:42 +01:00
Mamadou Babaei 27f2b6810e remove a redundant copy from the handbook makefile 2025-02-14 12:11:42 +01:00
Mamadou Babaei 0b40e34876 remove redundant steps from the handbook makefile 2025-02-14 12:11:42 +01:00
Mamadou Babaei f36ad2672b remove unused variable SG_DOCUMENTATION_EPUB_DIR from the handbook makefile 2025-02-14 12:11:42 +01:00
Mamadou Babaei e576569d4c migrate the documentation changelogs for the next unreleased version to its own section 2025-02-14 12:11:42 +01:00
Mamadou Babaei 43d325bfce bump the mdbook-alerts crate to v0.7.x 2025-02-14 12:11:41 +01:00
Mamadou Babaei a207c3846a bump the SenseGlove libraries to v2.105.3-97ea18cb 2025-02-14 12:11:41 +01:00
Mamadou Babaei 9ffbcae5b5 update the changelog with unreleased changes 2025-02-14 12:11:41 +01:00
Mamadou Babaei bbd813a7ba bump the SenseGlove Unreal Engine Marketplace Packager v0.4.1-e39a4f4 2025-02-14 12:11:41 +01:00
Mamadou Babaei f964a00353 fix the changelog formatting 2025-02-14 12:11:40 +01:00
Mamadou Babaei dfbee1064c bump the copyright years 2025-02-14 12:11:40 +01:00
Mamadou Babaei 8227ebf91a clarify htc vive stand-alone support status in the platform support matrix 2025-02-14 12:11:40 +01:00
Mamadou Babaei 4ebb22fd41 bump the plugin version to v2.3.2 2025-01-28 14:55:52 +01:00
Mamadou Babaei 5f9d0b6145 fix a critical issue where HandStates->GetTransform(KeyPoint) was incorrectly resolving to (&HandStates[0])->GetTransform(KeyPoint), causing both hands to use the left hand's wrist transform under specific conditions 2025-01-28 14:55:52 +01:00
Mamadou Babaei 238db6d527 bump the plugin version to v2.3.1 2024-11-27 10:11:51 +01:00
Mamadou Babaei eff104d889 do an ensure check instead of silently ignoring the non-existent joint 2024-11-27 10:11:51 +01:00
Mamadou Babaei fe4351f451 calculate the bone ref transforms using the current mesh rather than the reference mesh 2024-11-27 10:11:50 +01:00
Mamadou Babaei 26c834820a white space and code formatting fixes 2024-11-27 10:11:50 +01:00
Mamadou Babaei 6e1adc8bb6 bump the plugin version to v2.3.0 2024-11-14 00:31:33 +01:00
Mamadou Babaei b934700c74 fix ue 5.5 deprecation warnings inside USGVirtualHandComponent 2024-11-14 00:26:44 +01:00
Mamadou Babaei 969b356270 fix rocket build issues by adding missing the headers 2024-11-14 00:26:44 +01:00
Mamadou Babaei 426f477dfc list AndroidPermission plugin as a dependency 2024-11-14 00:26:44 +01:00
Mamadou Babaei e00a4ce4d3 remove comments that probably pasted by mistake 2024-11-14 00:26:44 +01:00
Mamadou Babaei 0be660e411 revamp the way the plugin requests permisions on Android by showing a pop-up to the user rather than silently crashing if those permisions were not already given 2024-11-14 00:26:44 +01:00
Mamadou Babaei 360801b574 implement the android permissions singleton responsible for requesting android permissions and checking those 2024-11-14 00:26:44 +01:00
Mamadou Babaei 837739e8c8 re-order the required permissions alphabetically inside the android upl file 2024-11-14 00:26:44 +01:00
Mamadou Babaei 2177e41dea make the USGBackend constructor private 2024-11-14 00:26:44 +01:00
Mamadou Babaei cef4d58440 remove USGBackend class config specifier 2024-11-14 00:26:44 +01:00
Mamadou Babaei cfc68fea72 apply a minor formatting fix to the changelog 2024-11-14 00:26:44 +01:00
Mamadou Babaei dafcde807c bump the plugin version to v2.2.2 2024-11-08 12:24:47 +01:00
Mamadou Babaei a6025cb793 fix a chain of glove and hand-tracking bugs that render the hand-tracking state invalid at certain times 2024-11-08 12:24:47 +01:00
Mamadou Babaei 78f0d43637 bump the plugin version to v2.2.1 2024-10-23 14:50:30 +02:00
Mamadou Babaei e7e821f570 revise documentation to point to fab instead of ue marketplace 2024-10-23 14:50:29 +02:00
Mamadou Babaei a1512f2cef bump the plugin version to v2.2.0 2024-10-22 06:58:22 +02:00
Mamadou Babaei 292b746043 remove ue 5.5+ code that causes build failure and cannot be wrapped inside if/def/end preprocessors due to lack of its support in uht 2024-10-22 06:58:22 +02:00
Mamadou Babaei 030a71996e list ue 5.5 in the sgum-packager configuration file 2024-10-22 06:58:22 +02:00
Mamadou Babaei 563334317c include Runtime/Launch/Resources/Version.h only where it matters 2024-10-22 06:58:22 +02:00
Mamadou Babaei f874087596 add the documentation on consuming the FXRHandTrackingState struct in both Blueprint and C++ 2024-10-22 06:58:22 +02:00
Mamadou Babaei 9a808242b7 minor formatting fix 2024-10-22 06:58:22 +02:00
Mamadou Babaei 85e4b8967c change SG_BROWSER_BINARY_PATH_LINUX binary path 2024-10-22 06:58:22 +02:00
Mamadou Babaei ae6793166a migrate away from the deprecated FXRMotionControllerData in favor of FXRMotionControllerState and FXRHandTrackingState on UE 5.5+ 2024-10-22 06:57:58 +02:00
Mamadou Babaei 5c8066850d bump the plugin version to v2.1.4 2024-10-22 05:30:17 +02:00
Mamadou Babaei ae169cd184 add the missing release title to the v2.1.3 changelog entry 2024-10-22 05:30:17 +02:00
Mamadou Babaei 1f1290094f update the documentation on consuming the FXRMotionControllerData struct 2024-10-22 05:30:17 +02:00
Mamadou Babaei 937eb5996d bump the plugin version to v2.1.3 2024-10-11 12:31:27 +02:00
Mamadou Babaei 405a3f426e update the platform support matrix and also add a note in regards to fab and ue marketplace transition 2024-10-11 12:31:27 +02:00
Mamadou Babaei 6767753bfb add the planned features for the v2.2.x release series 2024-10-11 12:31:27 +02:00
Mamadou Babaei 4866564edc silence another ue 5.5 deprecation warning with a temporary workaround for the time being 2024-10-11 12:31:27 +02:00
Mamadou Babaei cc34976b5c avoid mentioning the patch releases in the planned features completion status page 2024-10-11 12:31:27 +02:00
Mamadou Babaei 726984fe4c address a few ue 5.5 deprecation warnings 2024-10-11 12:31:27 +02:00
Mamadou Babaei 37820cac97 add a missing header 2024-10-11 12:31:27 +02:00
Mamadou Babaei 15cc08aeeb add support for epic native toolchain v23 2024-10-11 12:31:27 +02:00
Mamadou Babaei 825fa9d46c bump the senseglove libraries to v2.105.2-f2de4b89 2024-10-11 12:31:26 +02:00
Mamadou Babaei f6d1a65003 fix code formatting 2024-10-11 12:31:26 +02:00
Mamadou Babaei a33cc1b679 remove a redundant header 2024-10-11 12:31:26 +02:00
Mamadou Babaei 84d0e5f7dd fix a bug inside USGVirtualHandComponent::PostEditChangeProperty() where the get member name check happens against the wrong class and member names 2024-10-11 12:31:26 +02:00
Mamadou Babaei 67b2747632 fix a grammatical typo in a comment 2024-10-11 12:31:26 +02:00
Mamadou Babaei 52345b5427 bump the plugin version to v2.1.2 2024-09-02 19:38:36 +02:00
Mamadou Babaei 8c7180dd0d update the changelog 2024-09-02 19:38:36 +02:00
Mamadou Babaei 6d8c75ad07 update the changelog 2024-09-02 19:38:35 +02:00
Mamadou Babaei 30410ed00f fix a few virtual hand component visibility issues 2024-09-02 19:38:35 +02:00
Mamadou Babaei 2571b7e163 fix the non-existent default hand-mesh warnings polluting the logs when packaging the game 2024-09-02 19:38:35 +02:00
Mamadou Babaei 15c713d27e update the changelog 2024-09-02 19:38:35 +02:00
Mamadou Babaei a1be910d47 fix the wrong script name for USXRTrackerKismetLibrary 2024-09-02 19:38:35 +02:00
Mamadou Babaei c0e286ac44 fix the wrong script name for USGHMDTrackerKismetLibrary 2024-09-02 19:38:35 +02:00
Mamadou Babaei e7a7e2bde8 expand the clickable area on the handbook index page revision buttons 2024-09-02 19:38:35 +02:00
Mamadou Babaei 2cedcdc18e an overview title fix to match the summary file 2024-09-02 19:38:35 +02:00
Mamadou Babaei deced25632 bump the SenseGlove Unreal Engine Plugin to v2.1.1 2024-08-18 01:46:53 +02:00
Mamadou Babaei e7a5321c8e fix documentation typos 2024-08-18 01:46:52 +02:00
Mamadou Babaei 21738c2c48 fix a bug where SG_GIT_IS_SHALLOW_CLONE while building the handbook is always set to yes even if it's not a shadow clone 2024-08-18 01:32:52 +02:00
Mamadou Babaei fbe29db4dc removed android ndk r25 armv7 and x86 dependencies brought back by mistake while merging v2.1.0 from the dev branch to the master branch 2024-08-18 00:55:33 +02:00
Mamadou Babaei e917182c17 fix a bug that causes a handbook revision mismatch when deploying the handbook from the dev branch 2024-08-18 00:28:34 +02:00
Mamadou Babaei 39b5ee1191 fix the messed up changelog file caused by cherry-picking merge conflicts between the dev branch and the master branch 2024-08-18 00:10:39 +02:00
Mamadou Babaei 286e851a51 bump the plugin version to v2.1.0 2024-08-16 19:55:25 +02:00
Mamadou Babaei 90cca59373 fix build issues caused by cherry-pick order between v2.0.x and v2.1.x releases; the dev branch already contains these fixes 2024-08-16 19:55:25 +02:00
Mamadou Babaei e3d1e0d23d extract the git version from the remote repo when it's a shallow clone to allow the sgum-packager work with release branches 2024-08-16 19:09:26 +02:00
Mamadou Babaei 1333e31eb0 determine the value of mdbook site-url from the makefile instead of hardcoding it per branch 2024-08-16 18:02:20 +02:00
Mamadou Babaei 798bc8a234 fix ue 5.4 runuat build issues inside the sggrabcomponent caused by missing headers 2024-08-16 18:02:20 +02:00
Mamadou Babaei 9365172b71 fix a broken url 2024-08-16 18:02:20 +02:00
Mamadou Babaei 3b4a5d256c add make pack to the output of make help 2024-08-16 18:02:20 +02:00
Mamadou Babaei fee2efe304 fix a broken url 2024-08-16 18:02:20 +02:00
Mamadou Babaei 3bd4467aa8 fix a url 2024-08-16 18:02:20 +02:00
Mamadou Babaei fa295ee1f3 add topic: Upgrade Guide 2024-08-16 18:02:19 +02:00
Mamadou Babaei 90f0fa86ac add the sub-topic: Optimizing Unreal Projects for Mobile 2024-08-16 18:02:19 +02:00
Mamadou Babaei eefce4faba formatting fixes 2024-08-16 18:02:19 +02:00
Mamadou Babaei a26d72a39c add topic: Optimizing Your Project for Higher FPS 2024-08-16 18:02:19 +02:00
Mamadou Babaei 2e4ee273c1 lock cargo dependencies for the hadbook to pecific major/minor releases and not patch releases 2024-08-16 18:02:19 +02:00
Mamadou Babaei 8107cadfbe clarify the note about how the separation of the real and virtual hand rendering is broken 2024-08-16 18:02:19 +02:00
Mamadou Babaei 239408f261 fix a typo 2024-08-16 18:02:19 +02:00
Mamadou Babaei 0240e62b84 remove troublesome inline keywords added by jetbrains rider 2024-08-16 18:02:19 +02:00
Mamadou Babaei fb114a4a28 mark the separation of the real and virtual hand rendering as broken and a note to the known issues section 2024-08-16 18:02:19 +02:00
Mamadou Babaei 41b4de7d55 fix a few bugs that does affect the real hand collision events because of SetVisibility and redundant checking against grabbed actor 2024-08-16 18:02:19 +02:00
Mamadou Babaei 9a76aa7d01 replace SGPawn::FImpl::EnableActorPhysics() and SGPawn::FImpl::DisableActorPhysics() with USGGrabComponent::SimulatePhysics() 2024-08-16 18:02:19 +02:00
Mamadou Babaei 6dbc6542c5 enable bGravityEnabled, bSimulatePhysics, and call WakeRigidBody on grab component's owning actor at BeginPlay() if bAffectPhysicsState is enabled 2024-08-16 18:02:19 +02:00
Mamadou Babaei 678c06fb04 document Configuring the SGPawn and Plugin Virtual Hand Mesh Settings as the final step in setting up the virtual hand meshes 2024-08-16 18:02:19 +02:00
Mamadou Babaei a15096eb64 fix a typo 2024-08-16 18:02:19 +02:00
Mamadou Babaei db2c11079c use the value of GrabAttachPointSocketName from the plugin settings as default for USGGrabComponent's AttachmentSocketName uproperty 2024-08-16 18:02:19 +02:00
Mamadou Babaei 551eca3985 add the sgbasicdemo-openxr repository to the examples and demo projects section 2024-08-16 18:02:19 +02:00
Mamadou Babaei be79401fe4 minor fix 2024-08-16 18:02:19 +02:00
Mamadou Babaei 5f05dff18d add video tutorials 2024-08-16 18:02:19 +02:00
Mamadou Babaei 6bbb914f47 add the contents for setting up the grab/release, and the touch systems 2024-08-16 18:02:18 +02:00
Mamadou Babaei c1592c4e47 add another android note 2024-08-16 18:02:18 +02:00
Mamadou Babaei 1db97c3904 fix the display name for various overloads of the Blueprint-exposed function Queue Command Vibro Level to expose sensible display names. 2024-08-16 18:02:18 +02:00
Mamadou Babaei 18228372a6 a changelog fix 2024-08-16 18:02:18 +02:00
Mamadou Babaei 2f9f7b415f fix a topic title 2024-08-16 18:02:18 +02:00
Mamadou Babaei 08088ca7fb minor fix 2024-08-16 18:02:18 +02:00
Mamadou Babaei 67d309d52d add topic: Deploying to Android (Standalone) 2024-08-16 18:02:18 +02:00
Mamadou Babaei eac5365c3e add a note in regards to meta xr and vive openxr plugins incompatibility 2024-08-16 18:02:18 +02:00
Mamadou Babaei 0ddd216a55 add instructions: Setting up the SenseGlove Grab and Touch Sockets 2024-08-16 18:02:18 +02:00
Mamadou Babaei 237d2c4c53 remove irrelevant section as it's already set up by the plugin automatically 2024-08-16 18:02:18 +02:00
Mamadou Babaei 2b0abbca20 mention a relevant video tutorial 2024-08-16 18:02:18 +02:00
Mamadou Babaei 9541756129 close the div tag properly 2024-08-16 18:02:18 +02:00
Mamadou Babaei b7d50f58d3 add the instructions for: Setting up the Rigid Bodies 2024-08-16 18:02:18 +02:00
Mamadou Babaei 37a99e477b fix license titles 2024-08-16 18:02:18 +02:00
Mamadou Babaei 7475b269a9 add instructions for importing / exporting compatible virtual hand meshes 2024-08-16 18:02:18 +02:00
Mamadou Babaei 2563df8191 minor fix 2024-08-16 18:02:17 +02:00
Mamadou Babaei df3adfe980 update the overview section 2024-08-16 18:02:17 +02:00
Mamadou Babaei 6acdd37103 add the content for setting up the wrist tracking hardware section 2024-08-16 18:02:17 +02:00
Mamadou Babaei 3729e80c51 add important notes for setting up the wrist tracker and virtual hands 2024-08-16 18:02:17 +02:00
Mamadou Babaei b4be6851c5 add the complete documentation for setting up the senseglove default classes 2024-08-16 18:02:17 +02:00
Mamadou Babaei da2c0b3f34 fix a build issue on ue 5.2 2024-08-16 18:02:17 +02:00
Mamadou Babaei 67c8ccdf65 apply summary.md changes to the overview page 2024-08-16 18:02:17 +02:00
Mamadou Babaei 8084bc5005 fix borken links 2024-08-16 18:02:17 +02:00
Mamadou Babaei 283db3705d add more topics to the menu 2024-08-16 18:02:17 +02:00
Mamadou Babaei 803ab3e192 minor fix 2024-08-16 18:02:17 +02:00
Mamadou Babaei cdce60389f add the introduction to the senseglove default classes 2024-08-16 18:02:17 +02:00
Mamadou Babaei 49ef127f7a fix the wrong content path 2024-08-16 18:02:17 +02:00
Mamadou Babaei 160af1b5df fix README.md broken links 2024-08-16 18:02:17 +02:00
Mamadou Babaei a3d03f79fb add a caution for bvalidateifdefaultclassesaresgcompliant 2024-08-16 18:02:17 +02:00
Mamadou Babaei fd178679cd fix a typo 2024-08-16 18:02:17 +02:00
Mamadou Babaei b6d80c4959 add the console commands SG_GetEngineScalabilitySettings and SG_SetEngineScalabilitySettings 2024-08-16 18:02:17 +02:00
Mamadou Babaei 8bc118551e add the license terms for the handbook 2024-08-16 18:02:17 +02:00
Mamadou Babaei 9614d1f72e add the boilerplate for setting up the senseglove default classes 2024-08-16 18:02:17 +02:00
Mamadou Babaei 65b918b19d fix broken links in the overview page by adding .. to the relative urls 2024-08-16 18:02:16 +02:00
Mamadou Babaei f288b4fc31 fix broken index/readme.md links in the overview page 2024-08-16 18:02:16 +02:00
Mamadou Babaei 5b5d065352 minor fix 2024-08-16 18:02:16 +02:00
Mamadou Babaei e44c831aa8 add the content for the overview page 2024-08-16 18:02:16 +02:00
Mamadou Babaei ad4d27c69f minor fix 2024-08-16 18:02:16 +02:00
Mamadou Babaei 3ba1b1d7b8 complete the plugin configuration, settings, and overrides, sections 2024-08-16 18:02:16 +02:00
Mamadou Babaei 8f4374a008 improve the repo's main readme file 2024-08-16 18:02:16 +02:00
Mamadou Babaei 78b341f14d reference the handbook's extra resources 2024-08-16 18:02:16 +02:00
Mamadou Babaei ad42f44799 bring on par the SGSettings blueprint api with the cpp api 2024-08-16 18:02:16 +02:00
Mamadou Babaei f9fb21fa9c add some custom css styles for better html formatting 2024-08-16 18:02:16 +02:00
Mamadou Babaei c663213844 add the plugin-settings section 2024-08-16 18:02:16 +02:00
Mamadou Babaei c9e08c2fb6 add a note about Hand and Body Tracking settings 2024-08-16 18:02:16 +02:00
Mamadou Babaei c8a4902f9a add the sensecom documentation 2024-08-16 18:02:16 +02:00
Mamadou Babaei 16dfdee924 add a caution in regards to broken meta quest hmds on steamvr 2024-08-16 18:02:16 +02:00
Mamadou Babaei 11cd91ef98 fix youtube video urls 2024-08-16 18:02:16 +02:00
Mamadou Babaei d091506319 whitespace fix 2024-08-16 18:02:16 +02:00
Mamadou Babaei 5aac46b884 add the low level api documentation 2024-08-16 18:02:16 +02:00
Mamadou Babaei cd22e7f9f2 complete installation instructions 2024-08-16 18:02:15 +02:00
Mamadou Babaei 08c3921430 Revert "move bFallbackToHandTrackingIfNoGloveDetected from tracking settings to glove tracking settings"
This reverts commit e16c1d216f.
2024-08-16 18:02:15 +02:00
Mamadou Babaei 20ef0424ed move bFallbackToHandTrackingIfNoGloveDetected from tracking settings to glove tracking settings 2024-08-16 18:02:15 +02:00
Mamadou Babaei 4e20629bc4 add an important alert 2024-08-16 18:02:15 +02:00
Mamadou Babaei 57a610ecb1 minor fixes 2024-08-16 18:02:15 +02:00
Mamadou Babaei cc1f4cdb9f fix a broken link 2024-08-16 18:02:15 +02:00
Mamadou Babaei 386e7a5df0 add instructions: Enabling XR_EXT_hand_tracking OpenXR extension on VR Headsets 2024-08-16 18:02:15 +02:00
Mamadou Babaei 00d82dfbd1 add topic: Extra Resources 2024-08-16 18:02:15 +02:00
Mamadou Babaei b2f5644843 add instructions: Safe and Reliable Glove Access in Blueprint 2024-08-16 18:02:15 +02:00
Mamadou Babaei a2ce0e0c33 center all youtube videos 2024-08-16 18:02:15 +02:00
Mamadou Babaei 636bf58775 add instructions: Enabling The SenseGlove Unreal Engine Plugin and Veirfying the Plugin Version 2024-08-16 18:02:15 +02:00
Mamadou Babaei 631a1c529b whitespace fix 2024-08-16 18:02:15 +02:00
Mamadou Babaei 0e077f016b add the epic games launcher installation instructions 2024-08-16 18:02:15 +02:00
Mamadou Babaei 5cc9113f09 replace inline code blocks with back tilde inside the changelog 2024-08-16 18:02:15 +02:00
Mamadou Babaei 09cc90f92c update the changelog 2024-08-16 18:02:15 +02:00
Mamadou Babaei f7e4f7dc08 revamp the main readme file with the latest information and instructions 2024-08-16 18:02:15 +02:00
Mamadou Babaei 6ae74f8e67 change the DocsURL from the old blueprint docs to the handbook 2024-08-16 18:02:15 +02:00
Mamadou Babaei cd4b664cd0 improve the main index layout 2024-08-16 18:02:14 +02:00
Mamadou Babaei dd6e76b300 make the main index generation code more readable 2024-08-16 18:02:14 +02:00
Mamadou Babaei f1ee78831e deploy the favicon to the main index as well 2024-08-16 18:02:14 +02:00
Mamadou Babaei ab4f9416ca bump the SenseGlove Unreal Engine Marketplace Packager v0.4.0-a65bb20 2024-08-16 18:02:14 +02:00
Mamadou Babaei e7628c4714 fix the windows cmd.exe issues with rename/copy and always use move when invoking the pack target 2024-08-16 18:02:14 +02:00
Mamadou Babaei e457b91cd3 remove the changelog.md file from filterplugin list and list the pdf and html documentation files 2024-08-16 18:02:14 +02:00
Mamadou Babaei 9844225989 minor fixes 2024-08-16 18:02:14 +02:00
Mamadou Babaei 9ebf4ce048 document for dependencies 2024-08-16 18:02:14 +02:00
Mamadou Babaei aea73e0f66 mention the purpose of make pack in the handbook readme file 2024-08-16 18:02:14 +02:00
Mamadou Babaei c921d3763d add make pack target to the handbook makefile 2024-08-16 18:02:14 +02:00
Mamadou Babaei 5c012ce7a1 try to fix rsync error on windows: error in rsync protocol data stream (code 12) 2024-08-16 18:02:14 +02:00
Mamadou Babaei 2e8afd7366 fix the windows rsync/git bash issue: the source and destination cannot both be remote 2024-08-16 18:02:14 +02:00
Mamadou Babaei 5297de19d9 add a deployment note in regards to sourcing the deployment configurations on windows + git bash setups 2024-08-16 18:02:14 +02:00
Mamadou Babaei bbb4de35b9 introduce #sg-handbook-revision-url and #sg-handbook-revision-url + other preprocessor improvements 2024-08-16 18:02:14 +02:00
Mamadou Babaei c319405894 add the initial implementation for the deploy target 2024-08-16 18:02:14 +02:00
Mamadou Babaei 7f3dc46012 revamp the handbook make targets 2024-08-16 18:02:13 +02:00
Mamadou Babaei 9c5a7478cf fix the broken pdf toc generation on linux 2024-08-16 18:02:13 +02:00
Mamadou Babaei 62389247d1 replace all bitfield uproperties with booleans 2024-08-16 18:02:13 +02:00
Mamadou Babaei 97ce815c08 adjust the exclusion list to the latest repo structure overhaul 2024-08-16 18:02:13 +02:00
Mamadou Babaei 2e18af7d7e merge the pack branch into the plugin's source and add the sgum-packager v0.3.0 utility for automatic packaging and deployment to epic marketplace 2024-08-16 18:02:13 +02:00
Mamadou Babaei c1c615b9bc winpython fixes and fix pdf-outline generation on gentoo using a temporary python env 2024-08-16 18:02:13 +02:00
Mamadou Babaei 347f243627 minor fixes and clean up 2024-08-16 18:02:13 +02:00
Mamadou Babaei d5313c8058 replace inline code blocks with back tilde 2024-08-16 18:02:13 +02:00
Mamadou Babaei 47ebb98a11 complete advanced-topics/openxr/consuming-fxrmotioncontrollerdata/cpp tutorial 2024-08-16 18:02:13 +02:00
Mamadou Babaei 4a7d6c55a8 set the default value of bValidateIfDefaultClassesAreSGCompliant to false 2024-08-16 18:02:13 +02:00
Mamadou Babaei 3619256c6d crop the image edge 2024-08-16 18:02:13 +02:00
Mamadou Babaei 03c44f533f add winpython and enable pdf-outline 2024-08-16 18:02:12 +02:00
Mamadou Babaei 5688143f31 complete advanced-topics/openxr/consuming-fxrmotioncontrollerdata/blueprint tutorial 2024-08-16 18:02:12 +02:00
Mamadou Babaei 11cea35d5c fix a bug where tracking status not being set when the hand data is valid 2024-08-16 18:02:12 +02:00
Mamadou Babaei 5ca9c2945d specify the browser binary path from the gnu-make file 2024-08-16 18:02:11 +02:00
Mamadou Babaei b7053e8018 formatting fix 2024-08-16 18:02:11 +02:00
Mamadou Babaei cf8319d753 add partial content to Handbook/src/advanced-topics/openxr/consuming-fxrmotioncontrollerdata/blueprint.md 2024-08-16 18:02:11 +02:00
Mamadou Babaei 1227e37ab2 minor fix 2024-08-16 18:02:11 +02:00
Mamadou Babaei dbd7f07f64 add links to the ue source code from github 2024-08-16 18:02:11 +02:00
Mamadou Babaei 14ad7eb8d4 add the blueprint title line 2024-08-16 18:02:11 +02:00
Mamadou Babaei 2999c8a362 minor fix 2024-08-16 18:02:11 +02:00
Mamadou Babaei 4ce1fbe647 minor fix 2024-08-16 18:02:11 +02:00
Mamadou Babaei f22366ff04 mention the pdf format as well 2024-08-16 18:02:11 +02:00
Mamadou Babaei 9ed456f1cb add mdbook-pdf support which is able to print pdfs using chromedevtools protocol retaining images 2024-08-16 18:02:11 +02:00
Mamadou Babaei 9bb68e2d7d remove cargo installs for typst-cli, mdbook-typst, and mdbook-epub 2024-08-16 18:02:11 +02:00
Mamadou Babaei d8bec7597e move the /assets/* content to their relative folders as it creates printing issues 2024-08-16 18:02:11 +02:00
Mamadou Babaei 540fed44d3 add the content for the Consuming FXRMotionControllerData section 2024-08-16 18:02:11 +02:00
Mamadou Babaei e2388561b3 replace c++ standard int type definitions with the ones from unreal 2024-08-16 18:02:11 +02:00
Mamadou Babaei 5f0897d54a remove the pdf and epub backend due to build errors and inability to show markdown images 2024-08-16 18:02:11 +02:00
Mamadou Babaei 7a2c804435 consider the value of site-url when verifying the handbook revision and simplify the makefile code to do so as well 2024-08-16 18:02:11 +02:00
Mamadou Babaei 9cc2d38618 make the default site-url next 2024-08-16 18:02:11 +02:00
Mamadou Babaei f36e91be5e mention the pdf and epub formats as well and rename the pdf output filename 2024-08-16 18:02:11 +02:00
Mamadou Babaei 89a221d0ae rename a page 2024-08-16 18:02:11 +02:00
Mamadou Babaei 4c90177a2d switch to typst-cli from crates.io instead of git 2024-08-16 18:02:11 +02:00
Mamadou Babaei 0e8134d4cd bump senseglove libraries to v2.104.1-55fddbd2 2024-08-16 18:02:10 +02:00
Mamadou Babaei 06afcf5f36 fix the inro notice 2024-08-16 18:02:10 +02:00
Mamadou Babaei 88d0081f20 fix a table column header 2024-08-16 18:02:10 +02:00
Mamadou Babaei 31efbc596c remove edit-url-template from the book.toml file 2024-08-16 18:02:10 +02:00
Mamadou Babaei ce07ec1570 minor fix 2024-08-16 18:02:10 +02:00
Mamadou Babaei 41f64c2f5b remove mdbook-lintcheck 2024-08-16 18:02:10 +02:00
Mamadou Babaei 82902033d3 add github flavored markdown alerts to the handbook 2024-08-16 18:02:10 +02:00
Mamadou Babaei 1c6ea12f5f add experimental mdbook plugins for epub and pdf generation 2024-08-16 18:02:10 +02:00
Mamadou Babaei 9d3b80440e fix the mdbook errors 2024-08-16 18:02:10 +02:00
Mamadou Babaei 9c990b828c add more change logs 2024-08-16 18:02:10 +02:00
Mamadou Babaei cbc2703a7f add more change logs 2024-08-16 18:02:10 +02:00
Mamadou Babaei 1ad1c6b197 update the changelog with many of the recent changes 2024-08-16 18:02:10 +02:00
Mamadou Babaei c0a1ec4497 minor changelog fix 2024-08-16 18:02:10 +02:00
Mamadou Babaei 59aa43ef10 add FSGDebugCube 2024-08-16 18:02:10 +02:00
Mamadou Babaei 2a4831d5a0 reorganize the handbook structure and add new sections 2024-08-16 18:02:10 +02:00
Mamadou Babaei 3684896091 rename SGGameUserSettingSettings to SGGameUserSettingsSettings 2024-08-16 18:02:10 +02:00
Mamadou Babaei 134c26b51d rename SGHardwareBenchmarkSettings to SGHardwareBenchmarkingSettings 2024-08-16 18:02:09 +02:00
Mamadou Babaei db0a86abfb apply the plugin settings when the user overrides the settings for the first time 2024-08-16 18:02:09 +02:00
Mamadou Babaei 09ccb5b561 do not ensure as it's possible to get a nullpointer during component uninitialization 2024-08-16 18:02:09 +02:00
Mamadou Babaei a2eccb3de8 re-implement the virtual hand settings overrides; and apply plenty of other improvements and bug fixes to the settings system; and introduce sgdebugcubesettings 2024-08-16 18:02:09 +02:00
Mamadou Babaei 16b4603f7f rename verify-build-type target to verify-handbook-revision 2024-08-16 18:02:09 +02:00
Mamadou Babaei 6ff5f014ff rename verify-build-type target to verify-build-revision 2024-08-16 18:02:09 +02:00
Mamadou Babaei 4f69156d77 remove the motion source wrist tracking overrides from the wrist tracker component due to the fact that it's utilized only inside the underlying tracking module and overriding it has no effects 2024-08-16 18:02:09 +02:00
Mamadou Babaei 87519b9fa1 re-implement the wrist tracking settings overrides 2024-08-16 18:02:09 +02:00
Mamadou Babaei d4d51e8e0e rename bInIsVisibleWhenHandDataUnavailable to bInVisibleWhenHandDataUnavailable 2024-08-16 18:02:09 +02:00
Mamadou Babaei d0c932444a apply some sgxrtracker enum parsing improvements 2024-08-16 18:02:09 +02:00
Mamadou Babaei a12a7099e8 rename bIsVirtualHandVisible to bVirtualHandVisible 2024-08-16 18:02:09 +02:00
Mamadou Babaei d9c684ab67 delete the engine utils default constructor and destructor 2024-08-16 18:02:09 +02:00
Mamadou Babaei 433e832d17 add the editor utils class 2024-08-16 18:02:09 +02:00
Mamadou Babaei c27a5a1fef fix the debug virtual hand settings and logic 2024-08-16 18:02:09 +02:00
Mamadou Babaei 50568a7007 fix a comment 2024-08-16 18:02:09 +02:00
Mamadou Babaei 6c18b55e3c introduce the senseglove unreal engine handbook 2024-08-16 18:02:09 +02:00
Mamadou Babaei 6f0b0abde7 a const correctness fix 2024-08-16 18:02:09 +02:00
Mamadou Babaei 6c35c3993f make FSGXRTracker::GetMotionControllerData() behave the same as 5.4 on both 5.2 and 5.3 2024-08-16 18:02:09 +02:00
Mamadou Babaei 901770d39b minor fix 2024-08-16 18:02:09 +02:00
Mamadou Babaei e62b87ffd2 update the changelog and clarify what happens when other openxr hand tracking provider's are enabled and the possible workarounds 2024-08-16 18:02:09 +02:00
Mamadou Babaei 142a91d3a0 workaround the runuat 5.2/5.3 build issue due to missing IOpenXRHMD.h from epic public headers 2024-08-16 18:02:09 +02:00
Mamadou Babaei c13a09be49 fix various runuat buiild issues 2024-08-16 18:02:09 +02:00
Mamadou Babaei 45c67aa8c2 break a circular dependency 2024-08-16 18:02:09 +02:00
Mamadou Babaei a6574d5f10 do not reigger OnGrabStateUpdated and OnTouchStateUpdated at all when the hand mesh is not valid or visible and also some other extra measures to make sure even if they are triggered they won't affect anything 2024-08-16 18:02:08 +02:00
Mamadou Babaei 9929bca5b7 take into account the device visual type when updating the hand visibility 2024-08-16 18:02:08 +02:00
Mamadou Babaei 1c077188d3 clarify the meta xr and vive openxr plugins incompatibility 2024-08-16 18:02:08 +02:00
Mamadou Babaei ca9c8caf39 rename variable 2024-08-16 18:02:08 +02:00
Mamadou Babaei dfdf279612 seprate the engine and senseglove module dependency lists 2024-08-16 18:02:08 +02:00
Mamadou Babaei adc7c08a27 implement our own GetMotionControllerData instead of using the one from the XRTrackingSystem as it only picks up the first hand tracking plugin in order to make sure at least internally we use the hand-tracking data from senseglove 2024-08-16 18:02:08 +02:00
Mamadou Babaei da5b3e4bd8 minor fixes 2024-08-16 18:02:08 +02:00
Mamadou Babaei 35a71fccaa mark the SenseGlove settings as DefaultConfig 2024-08-16 18:02:08 +02:00
Mamadou Babaei e91cd02e14 add more bluetooth permissions to be able to request access for nearby devices on android api level 32 in addition to 29 2024-08-16 18:02:08 +02:00
Mamadou Babaei 23169ef328 add the gradle deprecation warnings 2024-08-16 18:02:08 +02:00
Mamadou Babaei be69a27313 never extend the content browser context menu if any skeletal mesh or skeltons selected at the same time 2024-08-16 18:02:08 +02:00
Mamadou Babaei ecc6c2282b clean up and remove the redundant asset type actions no longer required by the senseglove sockets editor 2024-08-16 18:02:08 +02:00
Mamadou Babaei 7e24921a9b implement the SenseGlove grab/touch sockets one-click-setup ability on any Epic-compliant virtual hand mesh from within the Unreal Editor's Content Browser, Skeleton Editor, or Skeletal Mesh Editor 2024-08-16 18:02:08 +02:00
Mamadou Babaei dfca3603fb update the implemented features list 2024-08-16 18:02:08 +02:00
Mamadou Babaei 08c5ab9df7 revamp the whole settings system in order to unify the settings across various systems, modules, and api layers 2024-08-16 18:02:08 +02:00
Mamadou Babaei 2a5e36629d make the virtual hand anim instance proxy safer 2024-08-16 18:02:08 +02:00
Mamadou Babaei 853eb4356d minor fix: get object by reference 2024-08-16 18:02:08 +02:00
Mamadou Babaei a9c1a15d03 add the DebugVirtualHandSettings to the Debugging category 2024-08-16 18:02:08 +02:00
Mamadou Babaei c3226d4ba6 rename SGVirtualHandTrackingSettings to SGVirtualHandSettings 2024-08-16 18:02:08 +02:00
Mamadou Babaei f014f5db72 remove the deperecated jcenter repository from the android upl file 2024-08-16 18:02:08 +02:00
Mamadou Babaei 4fd52ce616 mark the x86 and armeabi-v7a platforms as unsupported inside the android upl file 2024-08-16 18:02:08 +02:00
Mamadou Babaei 06aa37d101 fix a critical Android crash that happens where the default development hand meshes could not be found 2024-08-16 18:02:08 +02:00
Mamadou Babaei b53b2afa1a remove the hardcoded SG_HAND_MESH_YAW_CORRECTION_OFFSET and rely on FVirtualHandTrackingSettings::RootBoneRotationCorrection 2024-08-16 18:02:07 +02:00
Mamadou Babaei 88e82ba276 update the changelog 2024-08-16 18:02:07 +02:00
Mamadou Babaei 34cdd8df55 mention the wrist tracking hardware visualization bug as a known issue with the new openxr system 2024-08-16 18:02:07 +02:00
Mamadou Babaei d11b4aea01 fix runuat build issues for ue 5.4 caused by missing headers 2024-08-16 18:02:07 +02:00
Mamadou Babaei bbe97ba76b remove redundant header files 2024-08-16 18:02:07 +02:00
Mamadou Babaei aabd059034 fix more runuat issues due to missing headers 2024-08-16 18:02:07 +02:00
Mamadou Babaei f69c08cbfb fix runuat build issues for ue 5.2 2024-08-16 18:02:07 +02:00
Mamadou Babaei 6ed9ef525d fix a crash when the wrist-tracker hardware set to auto-detection 2024-08-16 18:02:07 +02:00
Mamadou Babaei 73498f874c fix a few build issues 2024-08-16 18:02:07 +02:00
Mamadou Babaei f7bd1296f9 fix the wrong kismet library class name 2024-08-16 18:02:07 +02:00
Mamadou Babaei 7c939fc4a3 formatting fix 2024-08-16 18:02:07 +02:00
Mamadou Babaei 1569541f7d update the changelog 2024-08-16 18:02:07 +02:00
Mamadou Babaei 40691ad496 whitespace fix 2024-08-16 18:02:07 +02:00
Mamadou Babaei 633f6f1803 add missing header that contains engine version definitions 2024-08-16 18:02:07 +02:00
Mamadou Babaei 834323d5bf drop the minimal api specifier 2024-08-16 18:02:07 +02:00
Mamadou Babaei 76ecc994c4 remove redundant headers 2024-08-16 18:02:07 +02:00
Mamadou Babaei 1aaae5eeba remove unnecessary initialization 2024-08-16 18:02:07 +02:00
Mamadou Babaei c6dc352cf7 whitespace fix 2024-08-16 18:02:07 +02:00
Mamadou Babaei 1cb42eb846 fix wrong kismet script names and class exports 2024-08-16 18:02:07 +02:00
Mamadou Babaei 3fa1173458 remove the experimental bHandTrackingVisualizationAllowed feature 2024-08-16 18:02:07 +02:00
Mamadou Babaei 3ad52b020a remove SetWristTrackingSettings from the FSGWristTrackerComponent's header file since it does not have any implementation 2024-08-16 18:02:07 +02:00
Mamadou Babaei f79a55dac0 perform a ensure before dereferencing 2024-08-16 18:02:07 +02:00
Mamadou Babaei 989f5010d0 formatting fix 2024-08-16 18:02:07 +02:00
Mamadou Babaei a627aaa136 revamp the GetControllerOrientationAndPosition and GetWristTransform to use the same caluclations and get rid of bMotionSourceHandTracking in senseglove joint calculations 2024-08-16 18:02:06 +02:00
Mamadou Babaei 82355b2415 check if motioncontrollerdata is valid 2024-08-16 18:02:06 +02:00
Mamadou Babaei a7e6e419b8 remove the ability to override wrist tracking settings from the wrist tracker component 2024-08-16 18:02:06 +02:00
Mamadou Babaei f75e6f16a5 fix the how we determine the motion source inside the GetControllerOrientationAndPosition and GetControllerTrackingStatus for ue versions earlier than 5.3 2024-08-16 18:02:06 +02:00
Mamadou Babaei 1eddb8a8c2 add htc vive stand-alone support status to the platform support matrix 2024-08-16 18:02:06 +02:00
Mamadou Babaei 0bcaec2c09 fix ue 5.2 and 5.3 build issues 2024-08-16 18:02:06 +02:00
Mamadou Babaei 2a0bfedd7d update the changelog and the readme 2024-08-16 18:02:06 +02:00
Mamadou Babaei 730c956b1c update the changelog 2024-08-16 18:02:06 +02:00
Mamadou Babaei 5808a05dd2 add the editor user interface for adding the senseglove sockets 2024-08-16 18:02:06 +02:00
Mamadou Babaei 557a4b2e01 temporarility change the way we calculate the wrist offset 2024-08-16 18:02:06 +02:00
Mamadou Babaei 64ce07c852 remove SGWristTrackerVisualizationComponent 2024-08-16 18:02:06 +02:00
Mamadou Babaei babfb21267 fix a few wrist tracker issues and introduce SGWristTrackerVisualizationComponent 2024-08-16 18:02:06 +02:00
Mamadou Babaei 84f4ae270c pass outer as the worldcontextobject to glovetracker::getinstance 2024-08-16 18:02:06 +02:00
Mamadou Babaei ebe3302854 make USGGloveTracker::GetInstance as flexible as possible 2024-08-16 18:02:06 +02:00
Mamadou Babaei be24277db3 simplify getworld implementation 2024-08-16 18:02:06 +02:00
Mamadou Babaei b63fde7277 migrate the static getworld to sgengineutils 2024-08-16 18:02:06 +02:00
Mamadou Babaei c2844d0f9a safer in-editor getworld without the polluting logs 2024-08-16 18:02:06 +02:00
Mamadou Babaei d255d61319 fix the you are not the main thread and the editor is currently in a play mode errors 2024-08-16 18:02:06 +02:00
Mamadou Babaei c3bde75b1a fix the MarkRenderStateDirty data race condition by gathering as much as data only on the game thread 2024-08-16 18:02:06 +02:00
Mamadou Babaei 276c1f98aa introduce bValidateIfDefaultClassesAreSGCompliant 2024-08-16 18:02:06 +02:00
Mamadou Babaei b499a720c2 fix the blueprint category naming to adhere to the rest of the settings system 2024-08-16 18:02:06 +02:00
Mamadou Babaei a0dd5c1de9 move hardware benchmarking settings to its own class 2024-08-16 18:02:06 +02:00
Mamadou Babaei 9dac4cb81c disable bFallbackToHandTrackingIfNoGloveDetected by default 2024-08-16 18:02:06 +02:00
Mamadou Babaei 437e427f38 fix a bug where sgpawn hand's finger collider interact with the world when the hand is not mesh visible 2024-08-16 18:02:05 +02:00
Mamadou Babaei 7efbf9265b add the USGVirtualHandComponent::OnHandVisibilityChanged() event 2024-08-16 18:02:05 +02:00
Mamadou Babaei ced8af2a98 try to disable collision alltogether when the hand mesh is not visible 2024-08-16 18:02:05 +02:00
Mamadou Babaei 7db4ff67ed update the changelog 2024-08-16 18:02:05 +02:00
Mamadou Babaei d9a1fbf3db improve the sgusersettings implementation by introducing custom enum item and more accuracy 2024-08-16 18:02:05 +02:00
Mamadou Babaei ce7a74ebac implement the game user settings system 2024-08-16 18:02:05 +02:00
Mamadou Babaei 04b780a3f6 minor formatting fix 2024-08-16 18:02:05 +02:00
Mamadou Babaei 654ca4b9d9 minor formatting fix 2024-08-16 18:02:05 +02:00
Mamadou Babaei 2e691c96c9 add a partial workaround for a bug when the virtual hand inside the game is not visible but still have collisions with other objects inside the scene 2024-08-16 18:02:05 +02:00
Mamadou Babaei 246c78ff2f add IsAMetaQuestDevice() and IsAHtcViveDevice() methods 2024-08-16 18:02:05 +02:00
Mamadou Babaei a355dc9668 fix vive pro detection issues by introducing additional device identifier 2024-08-16 18:02:05 +02:00
Mamadou Babaei 46ec0b816e removed the allbreaker virtual hand model as it's no longer compatible with the openxr integration 2024-08-16 18:02:05 +02:00
Mamadou Babaei 4e56d4b5ca fix android build issues 2024-08-16 18:02:05 +02:00
Mamadou Babaei e596063cc4 update the changelog 2024-08-16 18:02:05 +02:00
Mamadou Babaei 72b3eb24b7 remove minor ue 5.1 comments and hints 2024-08-16 18:02:05 +02:00
Mamadou Babaei c4afafb277 update the changelog 2024-08-16 18:02:05 +02:00
Mamadou Babaei 288daeb844 implement bHandTrackingVisualizationAllowed 2024-08-16 18:02:05 +02:00
Mamadou Babaei df06e26e12 improve the wrist tracking code when using motion controllers 2024-08-16 18:02:05 +02:00
Mamadou Babaei 11dc86e86e refactor the sgxrtracker internals to use transforms as pimpl methods args instead of a combination of fvectors/fquats 2024-08-16 18:02:05 +02:00
Mamadou Babaei 96d480b303 minor fixes, mostrly formatting 2024-08-16 18:02:05 +02:00
Mamadou Babaei 25066a04da remove unused pimpl method 2024-08-16 18:02:05 +02:00
Mamadou Babaei 6bb4535d75 remove dead code 2024-08-16 18:02:05 +02:00
Mamadou Babaei 4881c88dc3 even more optimal fxrmotioncontroller data calculations that considers mesh when outputting senseglove data 2024-08-16 18:02:05 +02:00
Mamadou Babaei 714307e92c document more unreleased changes 2024-08-16 18:02:04 +02:00
Mamadou Babaei 085d28dbfd fix the wrong palm bone names on the allbreaker virtual hand models 2024-08-16 18:02:04 +02:00
Mamadou Babaei 23dff3d8a9 somewhat unfinished refactored sg bone calculations 2024-08-16 18:02:04 +02:00
Mamadou Babaei 332b930e45 increase the default finger distal phalanges length 2024-08-16 18:02:04 +02:00
Mamadou Babaei 55257efde1 add the senseglove debug kismet module 2024-08-16 18:02:04 +02:00
Mamadou Babaei 72ed8df442 unfinished improvements based on the last commit 2024-08-16 18:02:04 +02:00
Mamadou Babaei 751b9118da attempt at calculating a hand model and feeding it to get hand pose 2024-08-16 18:02:04 +02:00
Mamadou Babaei 27caa547d9 refactor the way we calculate the mesh bone reference transforms to read from the settings system instead of the hardcoded values 2024-08-16 18:02:04 +02:00
Mamadou Babaei 27f92daeeb add the hard-coded hand defaulet reference bone transfomrs to the virtual hand settings 2024-08-16 18:02:04 +02:00
Mamadou Babaei 58b4e3438f openxr bugfixes and improvements + 1st attempt at calculating the fxrmotioncontrollerdata based off of the hand mesh 2024-08-16 18:02:04 +02:00
Mamadou Babaei b239747463 fix more UE 5.4 RunUAT build issues 2024-08-16 18:02:04 +02:00
Mamadou Babaei bfc1e60091 refactor the animation, wrist tracking, and hand interaction manipulation systems for FXRMotionControllerData compatibility 2024-08-16 18:02:04 +02:00
Mamadou Babaei 4e00a867cc update the readme 2024-08-16 18:02:04 +02:00
Mamadou Babaei cab391a854 implement the OpenXR-compatible hand tracking (XR_EXT_hand_tracking) support 2024-08-16 18:02:04 +02:00
Mamadou Babaei c2b3c8d153 rename sgheadmountdisplay to sgheadmounteddisplay 2024-08-16 18:02:04 +02:00
Mamadou Babaei ff9da15dcb add extra null checks 2024-08-16 18:02:04 +02:00
Mamadou Babaei 2e82ffb416 add vive xr elite hmd auto-detection checkes and other vive headset detection bug fixes and improvements 2024-08-16 18:02:03 +02:00
Mamadou Babaei 2eb6676e46 remove ASGVirtualHandActor 2024-08-16 18:02:03 +02:00
Mamadou Babaei 8c8dd9db20 make the sgsettings constructor private 2024-08-16 18:02:03 +02:00
Mamadou Babaei 8015b0dc5d bump senseglove libraries to v2.102.0-4a8bd81d and drop support for ue 5.1 and epic native toolchain v20 2024-08-16 18:02:03 +02:00
Mamadou Babaei 5b97f07fcb remove debug logs from FSGHeadMountDisplay::GetDeviceType() 2024-08-16 18:02:02 +02:00
Mamadou Babaei 0512d85652 check hmd auto-detection against various identifiers as the names returns from the engine is not reliable 2024-08-16 18:02:02 +02:00
Mamadou Babaei e08d980860 improve vive pro and vive focus 3 detection by utilizing optic resolution to distinguish them 2024-08-16 18:02:02 +02:00
Mamadou Babaei 97ee90052d implement hmd and wrist tracker hardware auto-detection fallback when it's not set explicitly 2024-08-16 18:02:02 +02:00
Mamadou Babaei 3389686e98 bump the plugin version to v2.0.8 2024-07-16 00:30:23 +02:00
Mamadou Babaei 56c111e160 fix a bug where the sgpawn right-hand grab colliders' default size is mistakenly set to the default value for the left-hand grab colliders at cdo initialization time 2024-07-16 00:30:23 +02:00
Mamadou Babaei 8975bef28f bump the plugin version to v2.0.7 2024-05-29 12:48:37 +02:00
Mamadou Babaei 9135bd0db8 make the allbreaker assets compatible with ue 5.1+ again 2024-05-29 12:48:37 +02:00
Mamadou Babaei 9f899dfaeb bump the plugin version to v2.0.6 2024-05-29 11:40:51 +02:00
Mamadou Babaei 18938e38b5 bump the plugin version to v2.0.5 2024-05-22 17:34:07 +02:00
Mamadou Babaei 7c5b31b47a fix the wrong palm bone names on the allbreaker virtual hand models 2024-05-22 17:34:06 +02:00
Mamadou Babaei 203ad37c30 bump the plugin version to v2.0.4 2024-05-17 11:41:22 +02:00
Mamadou Babaei c5caedc467 bump the plugin version to v2.0.3 2024-05-16 20:02:11 +02:00
Mamadou Babaei 128f1ca2f1 fix v2.0.2 UE 5.4 RunUAT build issues that mostly caused by missing headers 2024-05-15 04:44:01 +02:00
Mamadou Babaei 978a854b7d improve target platform detection when building SenseGloveConnectImpl and SenseGloveCoreImpl modules and also distinguish x64 builds from arm64 on windows 2024-05-15 04:44:00 +02:00
Mamadou Babaei c1bce97806 fix: asking CppCompileEnvironment for a single Architecture, but it has multiple Architectures (arm64, x64) 2024-05-15 04:44:00 +02:00
Mamadou Babaei b11071f4d3 bump the plugin version to v2.0.2 2024-04-25 12:56:51 +02:00
Mamadou Babaei ee1b1f25d0 bump the plugin version to v2.0.1 2024-04-15 15:09:55 +02:00
Mamadou Babaei bb2913ea20 do not call FSGHandLayer::ResetCalibration on every backend initialization 2024-04-15 15:09:54 +02:00
Mamadou Babaei 0acf1e60df only instantiate the connected glove once instead of recreating and destroying it every frame 2024-04-15 15:09:53 +02:00
Mamadou Babaei e8600ae93a bump senseglove libraries to v2.102.0-35d4de3f 2024-04-15 15:09:53 +02:00
Mamadou Babaei bdff50acb4 fix the wrong header file description sections for the header files 2024-04-15 15:09:51 +02:00
Mamadou Babaei 41a95456ac update the changelog with the unreleased changes 2024-04-15 15:09:51 +02:00
Mamadou Babaei f708ea39f3 update the outdated platform support matrix remarks 2024-03-23 17:24:55 +01:00
Mamadou Babaei b27ed8fb15 add ue 5.4 to the list of supported engines through azure devops 2024-03-23 17:24:55 +01:00
Mamadou Babaei dcf073270a bump the plugin version to v2.0.0 2024-03-22 21:36:07 +01:00
Mamadou Babaei e7b0ae2053 update the changelog 2024-03-22 21:36:07 +01:00
Mamadou Babaei cd8ba87d15 add missing modules to the directory structure 2024-03-22 21:36:06 +01:00
Mamadou Babaei 1e5ccc587d update the planned features status 2024-03-22 21:00:30 +01:00
Mamadou Babaei 9a5ff09b96 fix other build issues with non-unity builds 2024-03-22 21:00:30 +01:00
Mamadou Babaei 8ff26ff1ee add the missing string header that causes build issues in non-unity builds 2024-03-22 21:00:30 +01:00
Mamadou Babaei 9a5849f140 remove the platform dependant build hacks inside FSGArrayUtils::FromStdVector as msvc is not able to deduce TArray<T>::SizeType 2024-03-22 21:00:30 +01:00
Mamadou Babaei 722def4886 bump the senseglove libraries to v2.101.12-62b1be11 2024-03-22 21:00:29 +01:00
Mamadou Babaei 390299dcf6 fix android build issue inside FSGArrayUtils::FromStdVector introduced by 0cdc7e03ac 2024-03-22 21:00:29 +01:00
Mamadou Babaei 18cc652f8a Revert "try to init/uninit the backend module at the module start/shutdown"
This reverts commit c45bcaf618.
2024-03-22 21:00:29 +01:00
Mamadou Babaei 3ae67666e6 fix a build issue inside FSGArrayUtils::FromStdVector introduced by newer msvc updates due to stricter implicit uint64 to int32 conversions 2024-03-22 21:00:29 +01:00
Mamadou Babaei 489a7d4bbf bump the senseglove backend libraries to v2.101.11-2d6fe9ce 2024-03-22 21:00:28 +01:00
Mamadou Babaei 24d784f4df correct the module logs grammars 2024-03-22 21:00:28 +01:00
Mamadou Babaei c8967695de try to init/uninit the backend module at the module start/shutdown 2024-03-22 21:00:28 +01:00
Mamadou Babaei 8ab60555c5 allow the c++ compiler the opportunity to perform rvo/nrvo if applicable 2024-03-22 21:00:28 +01:00
Mamadou Babaei 5136d1eb1b bump senseglove libraries to v2.101.10-7e515114 2024-03-22 21:00:27 +01:00
Mamadou Babaei 231013f093 update the changelog with added quest 3 controllers support 2024-03-22 21:00:27 +01:00
Mamadou Babaei 17b2d0c3e2 integrate the virtual hand mesh from allbreaker 2024-03-22 21:00:27 +01:00
Mamadou Babaei 6433f5040a remove redundant headers 2024-03-22 21:00:27 +01:00
Mamadou Babaei de460e25e7 expose as little as dependencies as possible 2024-03-22 21:00:26 +01:00
Mamadou Babaei d7c5a874ef correct the hand mesh yaw rotation inside the sgpawn after the squat/sgvect3d changes 2024-03-22 21:00:26 +01:00
Mamadou Babaei d55d81b7be replace SupportedTargetPlatforms with PlatformAllowList 2024-03-22 21:00:26 +01:00
Mamadou Babaei 66e3a06bd6 clean up unsed unreal version headers 2024-03-22 21:00:26 +01:00
Mamadou Babaei 73ff476d8a declare the openxr plugin as a dependency 2024-03-22 21:00:26 +01:00
Mamadou Babaei c184d26092 utilize UXRDeviceVisualizationComponent to display meshes on UE 5.2 onwards 2024-03-22 21:00:26 +01:00
Mamadou Babaei 421fea1b2b fix the changelog errors 2024-03-22 21:00:25 +01:00
Mamadou Babaei ac3afafde1 remove a changelog that is not valid anymore 2024-03-22 21:00:25 +01:00
Mamadou Babaei 0c9e46d745 bump the senseglove libraries to v2.101.9-8abfc26d 2024-03-22 21:00:25 +01:00
Mamadou Babaei bd84887115 bump the plugin version to v1.9.8 2024-03-22 21:00:24 +01:00
Mamadou Babaei 7bd31da2f5 apply a temporary workaround in order to ameliorate the hand animation after sgquat, sgvect3d fixes 2024-03-22 21:00:24 +01:00
Mamadou Babaei db414dc169 make bones rotations a private field 2024-03-22 21:00:24 +01:00
Mamadou Babaei f3dd6f5751 update the changelog 2024-03-22 21:00:24 +01:00
Mamadou Babaei da09978e1b proper angle conversions for vectors 2024-03-22 21:00:24 +01:00
Mamadou Babaei 5bae2b3614 proper sgvect3d and squat conversions to fvector and fquat 2024-03-22 21:00:24 +01:00
Mamadou Babaei 8cbb441b9a apply senseglove/unreal angle conversions in the gloves' api 2024-03-22 21:00:24 +01:00
Mamadou Babaei 139b9e8351 fix a crash when calling one of the SGHandInterpolatorImpl constructors which happens due to unintialized pimpl object 2024-03-22 21:00:24 +01:00
Mamadou Babaei b3f18044c8 update the changelog 2024-03-22 21:00:24 +01:00
Mamadou Babaei a01b98c440 bump senseglove libraries to v2.101.8-a2a2075b which resolves the android writehaptics crash 2024-03-22 21:00:23 +01:00
Mamadou Babaei f7712f598d update the change log with unreleased changes 2024-03-22 21:00:23 +01:00
Mamadou Babaei d80a251bd9 bump senseglove libraries to v2.101.7-3580cd9f 2024-03-22 21:00:22 +01:00
Mamadou Babaei 6f7ce1b694 bump senseglove libraries to v2.101.5-f0aff76b 2024-03-22 21:00:21 +01:00
Mamadou Babaei 0c88dd25d3 bump senseglove libraries to v2.101.4-6c860c42 with android fixes and fix a android crash 2024-03-22 21:00:21 +01:00
Mamadou Babaei 815bf37c3f bump senseglove libraries to v2.101.3-e583f6de 2024-03-22 21:00:20 +01:00
Mamadou Babaei 52669d10c1 implement the api updates and bump the senseglove libraries to v2.101.2-2eb7439f 2024-03-22 21:00:20 +01:00
Mamadou Babaei d43c964779 force glove recalibration on backend initialize 2024-03-22 21:00:19 +01:00
Mamadou Babaei 9d34001d37 add as*glove/device casting methods that resolves the sgpawn vibrotactile issues 2024-03-22 21:00:19 +01:00
Mamadou Babaei a0ff8067b9 use device impl casts 2024-03-22 21:00:19 +01:00
Mamadou Babaei 3741e15a71 list nova 2 gloves in the get devices from the device list 2024-03-22 21:00:19 +01:00
Mamadou Babaei 10ca64dddb another attempt at improving the glove casts 2024-03-22 21:00:19 +01:00
Mamadou Babaei 86f54fdaa2 try an alternative approach for glove instances upcasting at the lower levels of the api 2024-03-22 21:00:19 +01:00
Mamadou Babaei 7783465395 try to add a solution for glove type-casting in higher levels of the api 2024-03-22 21:00:19 +01:00
Mamadou Babaei ea8dfa01aa fix the send custom waveform signature on the hand layer 2024-03-22 21:00:19 +01:00
Mamadou Babaei e7df4a9bd2 fix a bug inside the ESGHapticLocation enum conversions 2024-03-22 21:00:19 +01:00
Mamadou Babaei 3cc400b7f9 bump senseglove libraries for v2.101.1-edc1163a 2024-03-22 21:00:18 +01:00
Mamadou Babaei 72bb3f9af6 implement the nova2 api updates and bump the senseglove libraries to v2.101.0-3e1693fb 2024-03-22 21:00:17 +01:00
Mamadou Babaei a470fadc32 bump the plugin version to v1.9.8 2024-03-12 20:32:52 +01:00
Mamadou Babaei 0259a24ac3 make bones rotations a private field 2024-03-12 20:32:52 +01:00
Mamadou Babaei cec1bfc92d fix a crash inside the USGHandPose::FromHandAngles in higher levels of the api 2024-03-12 20:32:51 +01:00
Mamadou Babaei 872d77768b drop the prefix for internal typedefs 2024-03-12 20:32:51 +01:00
Mamadou Babaei a750097772 add some performance optimizations by utilizing MoveTemp in return statements 2024-03-12 20:32:50 +01:00
Mamadou Babaei d5af4e6083 fix a bug where the right hand mesh is always hidden inside the game no matter whether the right glove is connected or not 2024-03-12 20:32:50 +01:00
Mamadou Babaei 6b140f649a fix a wrong variable name 2024-03-12 20:32:49 +01:00
Mamadou Babaei 61aa363b50 only include the sgconnect header if the build platform is android 2024-03-12 20:32:49 +01:00
Mamadou Babaei 315dfdd63f bump the plugin version to v1.9.7 2024-02-18 20:30:13 +01:00
Mamadou Babaei 237b1faa33 apply vibrotactile and force-feedback fixes backported from next major release 2024-02-18 20:30:12 +01:00
Mamadou Babaei 353b129ccd bump the plugin version to v1.9.6 2024-02-14 14:56:29 +01:00
Mamadou Babaei 0129558f24 fix the NovaGlove class instantiation methods to initialize a NovaGloveImpl instead of a SenseGloveImpl 2024-02-14 14:56:29 +01:00
Mamadou Babaei 5fb43d0af8 bump the plugin version to v1.9.5 2024-02-09 10:53:41 +01:00
Mamadou Babaei a7fce44542 fix a potential segfault inside SGDeviceModel::ParseFirmware 2024-02-09 10:53:41 +01:00
Mamadou Babaei 3046f4a35b bump the plugin version to v1.9.4 2024-02-08 07:47:52 +01:00
Mamadou Babaei 51ace68000 fix the bluprint parse fucntion signature to accept OutGloveInfo by reference 2024-02-08 07:47:52 +01:00
Mamadou Babaei 1cf1a56611 fix changelog formatting 2024-02-08 07:47:52 +01:00
Mamadou Babaei e69f6b2e59 bump the plugin version to v1.9.3 2024-02-03 04:53:51 +01:00
Mamadou Babaei 64b5883e73 rephrase fixed changes 2024-02-03 04:53:50 +01:00
Mamadou Babaei 1ff50e4003 bump the copyright years 2024-02-03 04:53:50 +01:00
Mamadou Babaei 4fdb0906d9 minor changelog fixes 2024-02-03 04:53:50 +01:00
Mamadou Babaei 8633170da8 fix the wrong version numbers inside the paltform support matrix and the main .uplugin file 2024-02-03 04:53:50 +01:00
Mamadou Babaei db1879b678 apply a few critical fixes backported from the next major release 2024-02-03 04:53:50 +01:00
Mamadou Babaei 8c46ed4b15 a minor changelog fix 2024-02-03 04:53:50 +01:00
Mamadou Babaei a74debdbdd bump the plugin version to v1.9.2 2023-11-03 18:38:52 +01:00
Mamadou Babaei 61a568c3db fix a bug where released actor is going to be null whenever the OnActorReleased event fires 2023-11-03 18:38:52 +01:00
Mamadou Babaei 8589e01121 restructure the planned features completion status 2023-11-03 18:38:51 +01:00
Mamadou Babaei 33c0d4e326 update the list of planned features and their completion status 2023-11-03 18:38:51 +01:00
Mamadou Babaei 4579037bd7 update the list of planned features and their completion status 2023-11-03 18:38:50 +01:00
Mamadou Babaei d8d5bb0962 update the list of planned features and their completion status 2023-11-03 18:38:50 +01:00
Mamadou Babaei 3344c21da2 add a list of planned features and their completion status to the main readme file 2023-11-03 18:38:50 +01:00
Mamadou Babaei 9d5db235c4 bump the plugin version to v1.9.1 2023-10-11 17:03:25 +02:00
Mamadou Babaei 5d48aa73ce add the missing unreal header that defines ENGINE_*_VERSION macros in order to pass epic store builds for ue 5.3 2023-10-11 17:03:24 +02:00
Mamadou Babaei f21ef73f5d bump the plugin version to v1.9.0 2023-10-10 17:31:24 +02:00
Mamadou Babaei 4dec5caa14 change the ufunction specifier for sgpawn blueprint implementable events to blueprint native event in order to allow overrides from c++ as well 2023-10-10 17:31:23 +02:00
Mamadou Babaei 7a2fbae9bb add a missing release note fix for v1.8.0 to the changelog file 2023-10-10 17:31:23 +02:00
Mamadou Babaei b3f4351ff6 bump the plugin version to v1.8.0 2023-10-10 16:13:55 +02:00
Mamadou Babaei 7183f36033 This single commit inroduces the following changes:
- Introduced new SGPawn events: OnActorGrabbed, OnActorReleased, OnActorBeginTouch, and OnActorEndTouch.
- Exposed OnGrabStateUpdated, OnTouchStateUpdated, OnActorGrabbed, OnActorReleased, OnActorBeginTouch, and OnActorEndTouch events to Blueprint as BlueprintImplementableEvent.

- Fix a bug where the OnTouchStateUpdated event is mistakenly triggered instead of the OnGrabStateUpdated when the right thumb fingertip grab collider overlaps with a grabbable actor.
2023-10-10 16:13:54 +02:00
Mamadou Babaei 368f83cc0e bump the plugin version to v1.7.0 2023-09-14 18:53:30 +02:00
Mamadou Babaei b48b8f6d78 bump senseglove headers and libraries for linux and android to v2.12.0-19c9854 2023-09-14 18:53:30 +02:00
Mamadou Babaei 9d9db470f9 bump senseglove libraries for windows to v2.12.0-19c9854 2023-09-14 18:53:29 +02:00
Mamadou Babaei 6b165347fb move SGCoreImpl/SGPlatform to SGBuildHacks/SGPlatform and introduce SG_CPP20 and SG_CAPTURE_THIS 2023-09-14 18:53:29 +02:00
Mamadou Babaei 4f2530e8a2 update the changelog 2023-09-14 18:53:29 +02:00
Mamadou Babaei 936c27e404 update the changelog with unreleased changes 2023-09-14 18:53:29 +02:00
Mamadou Babaei 34b3992fb5 introduce senseglove backend and backend kismet modules in order to properly initialize the backend in order to avoid a bug where sgcoonect::init gets called every frame 2023-09-14 18:53:29 +02:00
Mamadou Babaei bd33e24ae2 update the changelog with unreleased changes 2023-09-14 18:53:29 +02:00
Mamadou Babaei 7c400de244 remove a duplicate log 2023-09-14 18:53:29 +02:00
Mamadou Babaei 30a0af3395 add sggameinstance for future use 2023-09-14 18:53:29 +02:00
Mamadou Babaei fea17e6e1b remove a duplicated slash in a header's path 2023-09-14 18:53:29 +02:00
Mamadou Babaei 6a542999f2 bump the plugin version to v1.6.1 2023-08-14 21:23:55 +02:00
Mamadou Babaei 4cebdf7d5d fix the platform support matrix 2023-08-14 21:23:54 +02:00
Mamadou Babaei b3339db7a5 add a missing header that causes build issues on ue 5.0 2023-08-14 21:23:54 +02:00
Mamadou Babaei bb7f0c7823 bump the plugin version to v1.6.0 2023-08-14 17:28:34 +02:00
Mamadou Babaei 0c884b6533 update the changelog 2023-08-14 17:28:34 +02:00
Mamadou Babaei e508b75b95 update the changelog 2023-08-14 17:28:33 +02:00
Mamadou Babaei daf1db8689 do not cache grabbed actors as overlapped actors 2023-08-14 17:28:33 +02:00
Mamadou Babaei 4003bc9cdb inline some pimpl methods in order to improve function call performance for regularly called methods 2023-08-14 17:28:32 +02:00
Mamadou Babaei 75d598a1d9 cache all overlapped actors with the real/virtual hands 2023-08-14 17:28:32 +02:00
Mamadou Babaei 248a87a949 initial working implementation of the separated virtual/real hand rendering 2023-08-14 17:28:31 +02:00
Mamadou Babaei 8a61e3da99 fix the wrong default gizmo colors when initialized using the default constructor. 2023-08-14 17:28:31 +02:00
Mamadou Babaei 7cefb87d98 fix ue 5.3 build issues 2023-08-14 17:28:30 +02:00
Mamadou Babaei 217cadf043 add support for the upcoming unreal engine 5.3 and native toolchain v22 libs to the build system 2023-08-14 17:28:30 +02:00
Mamadou Babaei e9a5deb2be bump senseglove libraries for windows to v2.11.0-b775a05 2023-08-14 17:28:29 +02:00
Mamadou Babaei 3622aef2a9 update the changelog 2023-08-14 17:28:28 +02:00
Mamadou Babaei d0c83530ff remove any mention of msvc 2017 and ue 4.27 third-party libs from the readme file 2023-08-14 17:28:28 +02:00
Mamadou Babaei 6dff3f5265 bump senseglove headers and libraries for linux and android to v2.11.0-b775a05 2023-08-14 17:28:27 +02:00
Mamadou Babaei 26c7c16fd8 initial attempt at separating the hand rendering from the real hand 2023-08-14 17:28:26 +02:00
Mamadou Babaei b9574734d3 alternative velocity calculation for released actors based on the hand's cached position history 2023-08-14 17:28:25 +02:00
Mamadou Babaei 5f53937a69 alternative velocity calculation for released actors based on a cached position history 2023-08-14 17:28:25 +02:00
Mamadou Babaei aded5730af apply the hand's velocity to the grabbed actor after release 2023-08-14 17:28:24 +02:00
Mamadou Babaei 1114ee0d7c bump the plugin version to v1.5.3 2023-07-19 18:23:27 +02:00
Mamadou Babaei 124349c345 bump senseglove libraries for windows to v2.10.1-3b0e7c9 2023-07-19 18:23:26 +02:00
Mamadou Babaei a80363df46 a minor changelog fix 2023-07-19 18:23:26 +02:00
Mamadou Babaei 0c8ac02d17 bump senseglove libraries for linux and android to v2.10.1-3b0e7c9 2023-07-19 18:23:24 +02:00
Mamadou Babaei c33bb3d7e4 bump the plugin version to v1.5.2 2023-07-19 01:20:32 +02:00
Mamadou Babaei 77f6197c07 fix a build issue with android shipping builds 2023-07-19 01:14:18 +02:00
Mamadou Babaei 3b02b7d706 whitespace fix 2023-07-19 01:14:18 +02:00
Mamadou Babaei 1362134890 remove redundant whitespaces 2023-07-19 01:14:17 +02:00
Mamadou Babaei 28ac14ea1c fix a grammatical error in the changelog 2023-07-19 01:14:17 +02:00
Mamadou Babaei 535d7d17ba bump the plugin version to v1.5.1 2023-07-13 19:49:56 +02:00
Mamadou Babaei 9fe117db1a fix grab/release bug for the right hand 2023-07-13 19:49:55 +02:00
Mamadou Babaei 7191db6822 fix a wrist tracker bug where hands are getting tracked in reverse 2023-07-13 19:49:55 +02:00
Mamadou Babaei da9c322080 do checks against the right hand which is cleaner to read 2023-07-13 19:49:55 +02:00
Mamadou Babaei 437218921f bump the plugin version to v1.5.0 2023-06-16 02:12:21 +02:00
Mamadou Babaei 9078990b67 update the changelog 2023-06-16 02:12:21 +02:00
Mamadou Babaei c124674a0e fix the motion source options crashes 2023-06-16 02:12:21 +02:00
Mamadou Babaei 6359ac1797 refactor the newly added motion source settings and off-load them from the wrist tracker to the settings system, though this causes crashes still 2023-06-16 02:12:21 +02:00
Mamadou Babaei 029314a953 bump senseglove libraries for windows to v.2.10.0-12133ac 2023-06-16 02:12:21 +02:00
Mamadou Babaei 160acf069c bump senseglove libraries for linux and android to v.2.10.0-12133ac 2023-06-16 02:12:20 +02:00
Mamadou Babaei ee856cb4fe update the changelog with the latest changes 2023-06-16 02:12:20 +02:00
Mamadou Babaei 398ddfdd13 remove not yet implemented from ViveTracker and ViveFocus3WristTracker enums' names 2023-06-16 02:12:20 +02:00
Mamadou Babaei bac886843e fix a bug where SteamVR trackers such as HTC VIVE and HTC VIVE Focus 3's wrist orientation and location were not being tracked. 2023-06-16 02:12:20 +02:00
Mamadou Babaei d0045980df bump senseglove libraries and headers for linux and android to v2.9.0-21c54c5 2023-06-16 02:12:19 +02:00
Mamadou Babaei 2ff5a62763 update the changelog to reflect the latest changes 2023-06-16 02:12:19 +02:00
Mamadou Babaei 4f03237857 bump senseglove libraries for windows to v2.9.0-21c54c5 2023-06-16 02:12:18 +02:00
Mamadou Babaei 5cf7d1ff55 add (not implemented yet) to the blueprint display name for positional tracking hardware that is not implemented yet 2023-06-16 02:12:18 +02:00
Mamadou Babaei 2e9c051c53 add support for vive focus 3 positional tracking hardwares 2023-06-16 02:12:18 +02:00
Mamadou Babaei 17d552d4bb add support for oculus quest pro positional tracking hardwares 2023-06-16 02:12:18 +02:00
Mamadou Babaei 1a2f4994a0 remove support for oculus touch, pico neo 2, and pico neo 3 positional tracking hardwares 2023-06-16 02:12:18 +02:00
Mamadou Babaei 63d855c907 fix ESGPositionalTrackingHardware enum display names and comments 2023-06-16 02:12:18 +02:00
Mamadou Babaei 9be53413ec update the changelog 2023-06-16 02:12:18 +02:00
Mamadou Babaei b2f589be8f fully refactor the top-level configurations in the settings system into ustructs 2023-06-16 02:12:18 +02:00
Mamadou Babaei 5ee916ce42 update the platform support matrix to reflect the latest support status 2023-06-16 02:12:18 +02:00
Mamadou Babaei 4156a6d649 bump senseglove libraries for windows v2.8.0-ff14904 2023-06-16 02:12:18 +02:00
Mamadou Babaei 83ff82b45f bump senseglove libraries for linux and android to v2.8.0-ff14904 2023-06-16 02:12:17 +02:00
Mamadou Babaei 9b7e806182 drop support for native toolchain v19, msvc v141 (2017), and thus ue 4.27 in the build system 2023-06-16 02:12:17 +02:00
Mamadou Babaei 31ec73031e bump the plugin version to v1.4.3 2023-06-01 23:31:28 +02:00
Mamadou Babaei 684ba846b9 update the changelog 2023-06-01 23:31:28 +02:00
Mamadou Babaei 2b94af22ad fix a critical Android crash that happens where the default development hand meshes are not found 2023-06-01 23:31:28 +02:00
Mamadou Babaei 3a91be1a84 add a complementary internal method to IsUsingUserMesh, IsUsingDefaultMesh for checking various hand meshes 2023-06-01 23:31:27 +02:00
Mamadou Babaei 048dc4dcc8 fix the changelog release formatting and drop the v prefix in the release titles 2023-06-01 23:31:27 +02:00
Mamadou Babaei da4b0871d4 bump the plugin version to v1.4.2 2023-06-01 21:46:56 +02:00
Mamadou Babaei 2096d64149 update the changelog 2023-06-01 21:46:55 +02:00
Mamadou Babaei fae199c90c fix the changelog typos and errors 2023-06-01 21:46:55 +02:00
Mamadou Babaei 2fa32be80f minor grammatical fix 2023-06-01 21:46:54 +02:00
Mamadou Babaei 50208929d1 update the changelog with unreleased changes 2023-06-01 21:46:54 +02:00
Mamadou Babaei fb8803fe59 fix an edit condition parsing failure that caused a bug in the settings
system where the virtual hand and the wrist tracker debug gizmos where
always drawn, regardless of chosen settings
2023-06-01 21:46:53 +02:00
Mamadou Babaei 06801dac06 fix error C2440: 'initializing': cannot convert from 'void' to 'bool' when engine versio is < 5.2 2023-06-01 21:46:53 +02:00
Mamadou Babaei 5055a6bbf6 fix typos in the changelog 2023-06-01 21:46:52 +02:00
Mamadou Babaei 27778eb8b9 fix a typo in the changelog 2023-06-01 21:46:52 +02:00
Mamadou Babaei 07e256be31 fix the changelog 2023-06-01 21:46:51 +02:00
Mamadou Babaei e4d22cd32e fix a typo in the changelog 2023-06-01 21:46:51 +02:00
Mamadou Babaei 97490ec109 minor fix in the changelog 2023-06-01 21:46:50 +02:00
Mamadou Babaei 1028f0736b bump the plugin version v1.4.1 2023-05-29 02:10:11 +02:00
Mamadou Babaei b5271b6067 log unreleased changes 2023-05-29 02:10:11 +02:00
Mamadou Babaei 5e95cfcb6a remove dead gradle code from the android module 2023-05-29 02:10:10 +02:00
Mamadou Babaei f12b2a26d8 supress a grade warning for non-arm64 archs when the build target is android 2023-05-29 02:10:10 +02:00
Mamadou Babaei 7adb4c25d9 bump the plugin version to v1.4.0 2023-05-19 19:02:41 +02:00
Mamadou Babaei 7fd05244b1 fix linux aarch64 build issues on ue 5.0 2023-05-19 18:36:45 +02:00
Mamadou Babaei 6a3bffaa70 remove SenseGloveCoreTypes from the directory structure 2023-05-19 18:36:44 +02:00
Mamadou Babaei b51629e929 implement an optional feature in order to automatically stop all haptics on the end play event 2023-05-19 18:15:44 +02:00
Mamadou Babaei 1b390c525d temporarily disable the debug gizmo for the virtual hand and the wrist tracker due to an esoteric bug in the settings system 2023-05-19 18:15:44 +02:00
Mamadou Babaei 710309e9be remove commented code 2023-05-19 18:15:43 +02:00
Mamadou Babaei 8f232e9c75 increase the default finger tips collider sizes 2023-05-19 18:15:43 +02:00
Mamadou Babaei dd56f8be8f get root component instead of iterating over the components in order to disable/enable the actor physics 2023-05-19 18:15:42 +02:00
Mamadou Babaei 2b1f430e27 fix a potential crash 2023-05-19 18:15:42 +02:00
Mamadou Babaei 121ec47ca6 stop all haptics on end play in order to make sure the glove won't get stuck in haptics feedbacks 2023-05-19 18:15:42 +02:00
Mamadou Babaei 0ab08bc9c4 set the default attachment rotation rule to keep relative 2023-05-19 18:15:41 +02:00
Mamadou Babaei 786cb5ed8c set the default attachment scale rule to snap to target 2023-05-19 18:15:41 +02:00
Mamadou Babaei 3e6252a5c2 do not affect collision when grab/release 2023-05-19 18:15:40 +02:00
Mamadou Babaei c67d2e7bf7 refactor and remove the need to cache the component in the grab/release workflow 2023-05-19 18:15:40 +02:00
Mamadou Babaei 01ae2b5920 refactor the grab/touch logic and data structure and also cache the component ready to be grabbed in order to affect its physics state 2023-05-19 18:15:39 +02:00
Mamadou Babaei 70fc1df7da try an alternative approach for the grab/release functionality by disabling/enabling physics simulation 2023-05-19 18:15:39 +02:00
Mamadou Babaei d1a1e0a9d8 add grab sucess/fail checks with error messages 2023-05-19 18:15:39 +02:00
Mamadou Babaei df529ceacb add ensure checks on the grab socket name 2023-05-19 18:15:38 +02:00
Mamadou Babaei fa02bdbdf9 move socket name to a temp var for easier debugging 2023-05-19 18:15:38 +02:00
Mamadou Babaei ac81d34f7f move attachment rules to a temp var for easier debugging 2023-05-19 18:15:37 +02:00
Mamadou Babaei d747cdc1e0 fix a release-detection logic error 2023-05-19 18:15:37 +02:00
Mamadou Babaei b41270d077 clean up and simplify the touch callback lambda 2023-05-19 18:15:36 +02:00
Mamadou Babaei 131cd66edc update the changelog 2023-05-19 18:15:36 +02:00
Mamadou Babaei f43ffd213c force off haptic commands when collision ends 2023-05-19 18:15:36 +02:00
Mamadou Babaei 3ef364ad86 only send force-feedback and buzz commands when they are not zero 2023-05-19 18:15:35 +02:00
Mamadou Babaei 1727693433 update the platform support matrix with the distribution channels and their remarks 2023-05-19 18:15:35 +02:00
Mamadou Babaei ed1d3d2a1e add a note about abi/api breaking changes 2023-05-19 18:15:34 +02:00
Mamadou Babaei 74552ab05e bump senseglove binaries for windows to v2.7.1-965f90c 2023-05-19 18:15:34 +02:00
Mamadou Babaei 4968c8b777 removed the redundant SenseGloveCoreTypes module which causes all kinds of packaging issues with certain versions of the engine. 2023-05-19 18:15:33 +02:00
Mamadou Babaei 18d3fb0e27 try to fix various build issues with the senseglove core types module 2023-05-19 18:15:32 +02:00
Mamadou Babaei 00ca818a7b fix linux aarch64 build issues and for older unreal engine versions 2023-05-19 18:15:32 +02:00
Mamadou Babaei ea6af167dc whitelist all modules for linuxarm64 target platform 2023-05-19 18:15:32 +02:00
Mamadou Babaei cbdd3fad95 fix linux aarch64 build issues and for ue 4.27 up to 5.2 2023-05-19 18:15:31 +02:00
Mamadou Babaei d98c1eea05 fix a build error where engine versions are < 5.2 2023-05-19 18:15:31 +02:00
Mamadou Babaei 6dfe66e548 add linux aarch64 platform support for unreal 5.2+ and bump senseglove libraries to v2.7.1-965f90c 2023-05-19 18:15:29 +02:00
Mamadou Babaei 2f9602c7f2 fix a circular dependency build issue 2023-05-19 18:15:28 +02:00
Mamadou Babaei 9cb87e43ae add a missing dependency that causes packaging issues 2023-05-19 18:15:28 +02:00
Mamadou Babaei bd4468669f capture by reference in the buzz timer callback lambda or otherwise crash 2023-05-19 18:15:27 +02:00
Mamadou Babaei 07ea8737ea fix a crash due to uninitialized pimpl object 2023-05-19 18:15:27 +02:00
Mamadou Babaei 3de2beab2b fix lambda crashes and ensure logic bugs 2023-05-19 18:15:26 +02:00
Mamadou Babaei 31ee97287d complete the implementation for the touch functionality and its feedbacks 2023-05-19 18:15:26 +02:00
Mamadou Babaei dc8ee14cbe add the initial implementation for the touch functionality and its feedbacks 2023-05-19 18:15:25 +02:00
Mamadou Babaei 63fe791aa5 expose the connected glove in the virtual hand's api 2023-05-19 18:15:25 +02:00
Mamadou Babaei fa4a636434 add static get component methods for quickly accessing grab/touch components 2023-05-19 18:15:25 +02:00
Mamadou Babaei a109d8740a remove the variable names from the grab/touch signatures 2023-05-19 18:15:24 +02:00
Mamadou Babaei 3afd376b50 add the grab/touch state update events 2023-05-19 18:15:24 +02:00
Mamadou Babaei ec085314c8 update the changelog 2023-05-19 18:15:23 +02:00
Mamadou Babaei c1ce27d157 fix a crash by removing wrong delegate binds 2023-05-19 18:15:23 +02:00
Mamadou Babaei 5103a455a3 add a buzz timeout uproperty 2023-05-19 18:15:22 +02:00
Mamadou Babaei 40c5532a6b merge all properties inside the grab component into one group 2023-05-19 18:15:22 +02:00
Mamadou Babaei 309c1fc2d1 simplify and merge separate buzz/force-feedback levels into one value on the touch component 2023-05-19 18:15:22 +02:00
Mamadou Babaei e810305001 Revert "move force-feedback properties from the touch component to the grab component"
This reverts commit 9faa9d2ca4.
2023-05-19 18:15:21 +02:00
Mamadou Babaei 6ae5439d94 move force-feedback properties from the touch component to the grab component 2023-05-19 18:15:21 +02:00
Mamadou Babaei 6cfaecfd23 cache which finger can grab or touch objects 2023-05-19 18:15:20 +02:00
Mamadou Babaei a2c67c4aac set up the overlap events for the grab/touch fingertip colliders 2023-05-19 18:15:20 +02:00
Mamadou Babaei 3d627b8b2c add the api for getting/setting touch properties 2023-05-19 18:15:19 +02:00
Mamadou Babaei b71d2fcf2f add the api for getting/setting grab properties 2023-05-19 18:15:19 +02:00
Mamadou Babaei eed3728410 add a grab socket uproperty, getters, and setters 2023-05-19 18:15:19 +02:00
Mamadou Babaei 2792d80fc8 whitespace fix 2023-05-19 18:15:18 +02:00
Mamadou Babaei 3165c0d59d differentiate the default grab/touch socket names 2023-05-19 18:15:18 +02:00
Mamadou Babaei 9a37047f4c integrate the touch component and colliders and rename the grab ones 2023-05-19 18:15:17 +02:00
Mamadou Babaei b05220a7a2 add a touch component intended to be used for force-feedback 2023-05-19 18:15:17 +02:00
Mamadou Babaei 2a9517ec92 add the api and setup the required components and uproperties in order to implement the basic grab functionality 2023-05-19 18:15:16 +02:00
Mamadou Babaei f3e88e224f document the unreleased changes 2023-05-19 18:15:16 +02:00
Mamadou Babaei 24ca77fa0e fix blueprint signatures and make all bp exposed functions static 2023-05-19 18:15:16 +02:00
Mamadou Babaei fc2a612198 formatting fix 2023-05-19 18:15:15 +02:00
Mamadou Babaei 5661803ce5 document a missing changelog item 2023-05-19 18:15:15 +02:00
Mamadou Babaei 29941da0eb Revert "temporarily revert changes that are not part of the v1.3.1 release"
This reverts commit 116935f54b.
2023-05-19 18:15:14 +02:00
Mamadou Babaei 1d1d9121fe bump the plugin version to v1.3.1 2023-04-28 02:12:44 +02:00
Mamadou Babaei c7adffbde9 temporarily revert changes that are not part of the v1.3.1 release 2023-04-28 02:12:43 +02:00
Mamadou Babaei c768e4a0ac fix runuat rocket build issues by adding the missing headers 2023-04-28 02:12:43 +02:00
Mamadou Babaei 059c31dcee document the senseglove debug module 2023-04-28 02:12:42 +02:00
Mamadou Babaei e5fa12160e document unreleased changes 2023-04-28 02:12:42 +02:00
Mamadou Babaei 35689c4e20 Revert "temporarily revert changes that are not part of the v1.3.0 release"
This reverts commit 6a0f2a00a1.
2023-04-28 02:12:41 +02:00
Mamadou Babaei 564a577031 bump the plugin version to v1.3.0 2023-04-28 01:20:53 +02:00
Mamadou Babaei a704487289 temporarily revert changes that are not part of the v1.3.0 release 2023-04-28 01:20:53 +02:00
Mamadou Babaei 8f80d84fd9 bump senseglove libraries for linux and android to v2.6.0-aac3d56 2023-04-28 01:20:52 +02:00
Mamadou Babaei 4548323e01 bump the senseglove libraries for windows/msvc to v2.6.0-aac3d56 2023-04-28 01:20:52 +02:00
Mamadou Babaei 83076bcc13 document recent changes 2023-04-28 01:20:52 +02:00
Mamadou Babaei 5f4bd52770 document the senseglove libraries bump in the changelog 2023-04-28 01:20:52 +02:00
Mamadou Babaei fd853d65c4 adjust senseglove/unreal coordinate system conversions according to changes in the recent sgcore release 2023-04-28 01:20:51 +02:00
Mamadou Babaei 7e99b4688a fix a gramatical error 2023-04-28 01:20:51 +02:00
Mamadou Babaei d880df91a8 add a debug virtual hand and some other fixes 2023-04-28 01:20:51 +02:00
Mamadou Babaei 1a4a7a1048 fix the hand right hand offset 2023-04-28 01:20:51 +02:00
Mamadou Babaei 5ce1af1b4f remove redundant headers 2023-04-28 01:20:51 +02:00
Mamadou Babaei 508fe522c6 fix debug gizmo default colors 2023-04-28 01:20:51 +02:00
Mamadou Babaei 9238cf77da refactor the debug gizmo draw method 2023-04-28 01:20:51 +02:00
Mamadou Babaei 306881fe69 update the changelog with unreleased changes 2023-04-28 01:20:51 +02:00
Mamadou Babaei 527809a04f refactor the wrist tracker's debug gzmo settings into a ustruct in order to be re-used 2023-04-28 01:20:51 +02:00
Mamadou Babaei cad5753327 fix gizmo drawing issue happens due to a null world object 2023-04-28 01:20:51 +02:00
Mamadou Babaei 941b6f67f2 add a new generic senseglove debug module 2023-04-28 01:20:51 +02:00
Mamadou Babaei 2819d1ee1c add the base implementation for the senseglove grab component 2023-04-28 01:20:51 +02:00
Mamadou Babaei 8937bf086e increase the default DebugWristTrackerGizmoLength value in the plugin's settings 2023-04-28 01:20:51 +02:00
Mamadou Babaei 70d578afaa increase the default DebugWristTrackerGizmoLength value on the wrist tracker 2023-04-28 01:20:51 +02:00
Mamadou Babaei e8843b4bed document unreleased changes 2023-04-28 01:20:51 +02:00
Mamadou Babaei a2f0dccfb1 fix the wrong hand offset calculations 2023-04-28 01:20:51 +02:00
Mamadou Babaei 5e84ad89c3 fix the wrong tracker origin calculations 2023-04-28 01:20:51 +02:00
Mamadou Babaei 288b18c827 fix the platform support matrix for unreal versions >= 5.0 2023-04-20 15:55:31 +02:00
Mamadou Babaei 5f80d8769f minor code improvements and clean up 2023-04-20 15:55:31 +02:00
Mamadou Babaei 956038d78f fix the directory structure 2023-04-11 21:05:40 +02:00
Mamadou Babaei 8af055008d remove the development virtual hand mesh from master and all the release branches 2023-04-11 20:58:27 +02:00
Mamadou Babaei a5dee6e191 set engine version to 5.2.0 2023-04-11 15:38:20 +02:00
Mamadou Babaei a0e30c8322 bump the plugin version to v1.2.1 2023-03-30 06:43:39 +02:00
Mamadou Babaei dd5d73de59 add the engine settings module into the private include paths for the senseglove settings module in order to solve run uat build issues 2023-03-30 06:23:05 +02:00
Mamadou Babaei 22c875cd84 remove the engine settings module from the senseglove module's private dependencies list 2023-03-30 06:16:14 +02:00
Mamadou Babaei 60cc9d4325 remove the launch and settings from the android module's private includes 2023-03-30 05:59:00 +02:00
Mamadou Babaei 573d3190c3 bump the plugin version to v1.2.0 2023-03-28 21:40:03 +02:00
Mamadou Babaei 7da08b6fe9 add the new dev/test hand model (this hand mesh is not meant to be published) 2023-03-28 18:30:30 +02:00
Mamadou Babaei fffcb1ffee alternative approach to constructor helpers in order to set the default hand mesh as it won't causes annoying ue pop-up cdo messages 2023-03-28 18:30:29 +02:00
Mamadou Babaei cf9f0078a4 remove the old virtual hand model mesh 2023-03-28 18:30:29 +02:00
Mamadou Babaei a0c469c641 fix the hand animation implementation and angle conversions to work with the standard ue5.1+ hand from epic 2023-03-28 18:30:28 +02:00
Mamadou Babaei 9f604b30f8 add missing paths headers that causes uat build issues 2023-03-28 11:47:30 +02:00
Mamadou Babaei de5518c0f2 add missing vershon headers and clean up unused headers 2023-03-28 11:47:29 +02:00
Mamadou Babaei 5a6187b586 fix uat errors C4458 when building the virtual hand component 2023-03-28 11:22:48 +02:00
5661 changed files with 63138 additions and 34516 deletions
+10
View File
@@ -38,3 +38,13 @@ Resources/**/* filter=lfs diff=lfs merge=lfs -text
# LFS: everything under Source/ThirdParty/
Source/ThirdParty/**/* filter=lfs diff=lfs merge=lfs -text
# LFS: everything under Handbook/dist/
Handbook/dist/**/* filter=lfs diff=lfs merge=lfs -text
# Except
.gitignore filter= diff= merge= text
.gitattributes filter= diff= merge= text
# LFS: sgum-packager Linux and Windows binaries
Packager/sgum-packager filter=lfs diff=lfs merge=lfs -text
Packager/sgum-packager.exe filter=lfs diff=lfs merge=lfs -text
+8
View File
@@ -125,3 +125,11 @@ DerivedDataCache/*
# Do not ignore anything inside the ThirdParty directory at all
!Source/ThirdParty/**/*
# The Handbook
Documentation/
Handbook/book/
# sgum-packager
# Do not ignore the sgum-packager Windows binary
!Packager/sgum-packager.exe
-390
View File
@@ -1,390 +0,0 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.9.4] - 2024-02-08
This is a bugfix release addressing mostly Blueprint API issues with ABI breaking changes inside the Blueprint layer, backported from the next major release of the plugin as documented below.
### Fixed
- Fix the Blueprint Parse function signature for the NovaGloveInfoKismetLibrary where the OutGloveInfo passed by the caller was never actually assigned as it was not getting passed by reference.
- Changelog formatting.
## [1.9.3] - 2024-02-03
This is a hotfix release addressing a few critical issues that might result in crashes or malfunctions for users of the low-level SenseGlove API, backported from the next major release of the plugin as documented below.
### Fixed
- Fix a potential memory corruption inside one of the SGBasicHandModel constructors where the StartPositions parameter gets passed as the StartRotations parameter to lower levels of the API.
- Fix a potential memory corruption inside one of the SGSenseGloveInfo constructors where the StartPositions parameter gets passed as the Functions parameter to lower levels of the API.
- Fix a potential memory corruption where inside the SGHapticGloveCalibrationSequence::GetCurrentInstruction method, the return statement of the function is getting assigned to the const parameter NextStepKey, thus the return statement of the function will always be empty as well.
- Fix a potential memory corruption where inside one of the overloads of the SGSenseGloveImpl::GetGlovePose method, the out parameter of the method is getting passed as the SensorData parameter to the lower levels of the API.
- Fix multiple Equals methods for a few classes such as SGInterpolationSet, SGNovaGloveHandProfile, SGNovaGloveInfo, SGSenseGloveHandProfile, SenseGloveInfo, SenseGlovePose, where the Equal method compares the current instance against itself instead of the other instance passed to as the parameter to the method.
- Removed a redundant code statement inside the SGNovaGloveImpl::GetSubFirmwareVersion method.
- Some minor const correctness fixes.
- Some other minor code fixes and improvements.
- Fix the wrong version numbers inside the paltform support matrix and the main .uplugin file.
- Minor changelog fixes.
- Bumped the copyright years.
## [1.9.2] - 2023-11-03
### Added
- Added a list of planned features and their completion status to the main README file.
### Fixed
- A bug where the released actor is going to be NULL whenever the OnActorReleased event fires.
## [1.9.1] - 2023-10-11
### Fixed
- Add the missing Unreal Engine C++ header to files that rely on the ENGINE\_\*\_VERSION macros in order to fix the Epic Store build failures on UE 5.3.
## [1.9.0] - 2023-10-10
### Changed
- The BlueprintImplementableEvent UFUNCTION specifier for the OnGrabStateUpdated, OnTouchStateUpdated, OnActorGrabbed, OnActorReleased, OnActorBeginTouch, and OnActorEndTouch events have been changed to BlueprintNativeEvent in order to allow them to be implemented from the child C++ classes as well. This won't break any existing Blueprint code that relies on the previous BlueprintImplementableEvent signature.
### Fixed
- Add a missing release note entry for the v1.8.0 release to the changelog file.
## [1.8.0] - 2023-10-10
### Added
- Introduced new SGPawn events: OnActorGrabbed, OnActorReleased, OnActorBeginTouch, and OnActorEndTouch.
- Exposed OnGrabStateUpdated, OnTouchStateUpdated, OnActorGrabbed, OnActorReleased, OnActorBeginTouch, and OnActorEndTouch events to Blueprint as BlueprintImplementableEvent.
### Fixed
- Fix a bug where the OnTouchStateUpdated event is mistakenly triggered instead of the OnGrabStateUpdated when the right thumb fingertip grab collider overlaps with a grabbable actor.
- Fix the DECLARE_EVENT macro signature for OnGrabStateUpdated and OnTouchStateUpdated events.
## [1.7.0] - 2023-09-14
### Added
- Introduce SGGameInstance, a customized SenseGlove game instance for future use.
- Added the new SenseGloveBackend and SenseGloveBackendKismet modules.
- Added SG_CPP20 C++ macro for C++20 detection, which is now default from UE 5.3 onwards.
- Added SG_CAPTURE_THIS C++ macro as a workaround for error C4855: implicit capture of 'this' via '[=]' is deprecated in /std:c++20 in order to build the same lambda captures without extra #ifdefs on all supported engine versions.
### Changed
- SenseGlove libraries have been updated to v2.12.0-19c9854.
- SGCoreImpl/SGPlatform has been moved to SGBuildHacks/SGPlatform.
### Fixed
- Proper initialization of the SenseGlove backend in order to fix a bug in certain situations where SGConnect::Init() gets called every frame.
- Some other minor fixes and improvements.
## [1.6.1] - 2023-08-14
### Fixed
- Fix Unreal Engine 5.0 build issues.
- Minor documentation fixes.
## [1.6.0] - 2023-08-14
### Added
- Added support for the upcoming Unreal Engine 5.3.
- Now, the hand's velocity is applied to grabbed actors after being released from the hand.
- Introduce the real hands to the SenseGlove module (SGPawn) API.
- Added separation of the virtual and real hand rendering.
### Fixed
- Fix the wrong default debug virtual hand gizmo colors when initialized using the default constructor.
- Some minor performance fixes and improvements.
### Changed
- SenseGlove libraries have been updated to v2.11.0-b775a05.
## [1.5.3] - 2023-07-19
This is a hotfix release mostly addressing Android Bluetooth performance issues.
### Fixed
- Minor changelog fixes.
### Changed
- SenseGlove libraries have been updated to v2.10.1-3b0e7c9.
## [1.5.2] - 2023-07-19
This is a hotfix release mostly addressing Android-related issues.
### Fixed
- Fix a build issue with Android shipping builds due to sgconnect.jar not getting copied automatically in the AFSProject which is compiled for shipping builds when AndroidFileServer (AFS) is enabled.
- Minor changelog fixes and some source code formatting fixes.
## [1.5.1] - 2023-07-13
This is a hotfix release addressing a few critical issues introduced by the recent changes.
### Fixed
- Fix a wrist tracker bug where left and right hands' wrist trackers are mistakenly tracking the opposite hand's motion source.
- Fix a bug where the right hand is not able to do grab or release.
## [1.5.0] - 2023-06-16
This release breaks ABI/API compatibility with the previous versions in some areas as documented below.
### Added
- Added HTC VIVE Focus 3 positional tracking hardware enum.
- Added support for the Meta Quest Pro, HTC VIVE, and HTC VIVE Focus 3 positional tracking hardware.
- Added two options to the wrist tracker settings (to the global plugin settings and the overrides in the wrist tracker component) in order to be able to specify a custom motion source for the left and right hands, so that it allows SteamVR-based trackers such as HTC VIVE or HTC VIVE Focus 3 to operate with the SGPawn.
### Fixed
- Fix a bug where SteamVR trackers such as HTC VIVE and HTC VIVE Focus 3's wrist orientation and location were not being tracked.
### Changed
- Fully refactored the top-level configurations in the settings system into USTRUCTs.
- SenseGlove libraries have been updated to v2.10.0-12133ac.
### Removed
- Dropped support for the Epic Native Toolchain v19, MSVC v141 (Visual Studio 2017), and thus Unreal Engine 4.27 as it has been marked as deprecated since v1.4.x.
- Removed any kind of support for Oculus Touch (Oculus Rift S and Oculus Quest 1) positional tracking hardware, thus the enum as well.
- Removed any kind of support for Pico Neo 2 positional tracking hardware, thus the enum as well.
- Removed any kind of support for Pico Neo 3 positional tracking hardware, thus the enum as well.
## [1.4.3] - 2023-06-01
This is a hotfix release addressing a critical Android crash.
### Fixed
- Fix a critical Android crash that happens where the default development hand meshes are not found, which means almost always since we don't ship any default virtual hand mesh at the moment.
- Minor changelog release formatting fix in order to stay consistent.
## [1.4.2] - 2023-06-01
This is a hotfix release addressing a few critical issues.
### Fixed
- Fix build issues with certain compilers when the Unreal Engine version is older than 5.2.
- Reintroduced the Virtual Hand and the Wrist Tracker debug gizmos which have temporarily been disabled due to a bug in the settings system.
- Some minor changelog fixes.
## [1.4.1] - 2023-05-29
This is a bugfix release with a focus on Android build issues.
### Fixed
- Fix an Android Gradle build issue that happens when the game's package name won't start with com.senseglove.*.
- Suppress a grade warning for non-arm64 architectures when the build target is Android.
### Removed
- Remove dead Gradle code from the Android module.
## [1.4.0] - 2023-05-19
This release breaks ABI/API compatibility with the previous versions.
### Added
- Added support for the stable release of Unreal Engine 5.2 (the preview release has been supported since v1.2.0).
- Added Linux AArch64 platform support.
- Added a new Grab component that can turn any actor into a grabbable object.
- Added a new Touch component that enables haptic feedback such as Buzz and Force-Feedback commands.
- Added an optional feature in order to automatically stop all haptics on the EndPlay event, wherever the virtual hand component is used. By default, it's enabled.
### Fixed
- Fix Blueprint signatures for USGVirtualHandComponentKismetLibrary and make all the Blueprint exposed functions static.
### Changed
- SenseGlove libraries have been updated to v2.7.1-965f90c with support for Linux AArch64.
- The Virtual Hand and the Wrist Tracker debug gizmos (the intended use is only for SenseGlove developers for really low-level stuff; thus won't affect the users of the plugin at all) have been disabled and will be ignored due to an esoteric bug in the settings systems which has been scheduled to be fixed in the future releases.
### Removed
- Removed the redundant SenseGloveCoreTypes module which causes all kinds of packaging issues with certain versions of the engine.
### Deprecated
- This is the last release to support Unreal Engine 4.27 and please keep in mind that the current release is not obtainable through the Unreal Engine Marketplace. The latest published version on the Marketplace for 4.27 is v1.3.1. Per Epic's Marketplace policy regarding Code Plugins, we are only able to distribute or update the SenseGlove plugin for the last 3 stable versions of Unreal Engine. As a result, we won't be able to publish updates or bug fixes for the older versions of the Engine except on rare occasions and only through our official repository on Microsoft Azure DevOps.
## [1.3.1] - 2023-04-28
### Fixed
- Fix RunUAT build issues caused by missing headers.
- Minor documentation fixes.
## [1.3.0] - 2023-04-28
This release breaks ABI/API compatibility with the previous versions in addition to breaking coordinates systems conversions between Unreal Engine and the SenseGlove libraries.
### Added
- A new generic SenseGlove Debug module.
- A debug virtual hand.
### Fixed
- Fix the wrist tracker miscalculations for the Quest 2 controllers (other headsets might need fixing as well, in that case, future releases will address that).
- Minor code improvement and fixes.
- Minor documentation fixes.
### Changed
- Breaking API/ABI changes in the Settings and the main SenseGlove module due to some settings refactoring.
- Breaking changes in the SenseGlove/Unreal coordinates systems conversions due to underlying changes in the SenseGlove Core Libraries.
- SenseGlove libraries have been updated to v2.6.0-aac3d56.
## [1.2.1] - 2023-03-30
### Fixed
- Fix RunUAT build issues with Android.
## [1.2.0] - 2023-03-28
This release breaks ABI/API compatibility with the previous versions.
### Added
- Android / Oculus on-device glove calibration.
- Introduced the animated Virtual Hand Model (as a set of virtual hand and wrist tracker components and an actor) with in-editor animation availability.
- Introduced SGPawn, SGPlayerController, SGGameModeBase, etc classes.
- Added an internal SenseGloveCoreTypes module in order to share common SenseGloveCore types between various modules.
- Segregated Android binaries for NDK r21e (UE 4.27 and 5.0) and r25b (UE 5.1, 5.2).
- Fully functional and stable Linux development support.
- Fully functional and stable Unreal Engine 5.2 preview support has been added.
- Added a Plugin's settings manager and two new modules SenseGloveSettings and SenseGloveSettingsKismet.
### Changed
- SenseGlove libraries have been updated to the Linux-aware version: v2.5.0-8069342.
- API has changed to use degrees instead of radians.
- SGCoordinates utility class name has been changed to SGAngles and now the plugin API uses degrees in contrast of SenseGlove libraries by default.
- Migrate common nested array types into the SenseGloveTypes module from the SenseGloveCore module.
### Removed
- Removed a few thousand lines of archaic pre-public-release dead code.
- Dropped Android NDK r21b binaries used by the older engine versions.
- Purged the dead code for dropped engine versions by v1.1.1 (4.22, 4.23, 4.24, 4.25, and 4.26) that carried over to the current version.
- Removed redundant SGConnectImpl/SGPlatform.
- Removed redundant SGTypes/SGConnectTypes.
### Known Issues
- Wrist Tracker's offsets are a bit off (e.g. on Quest 2), scheduled to be fixed in the next patch release.
## [1.1.1] - 2023-02-07
### Added
- Initial support for the upcoming Unreal Engine 5.2.
- Add support for Android armeabi-v7a with neon, x86-64, and x86 builds in addition to arm64-v8a.
### Fixed
- Fix various Android build issues.
- Some minor fixes and improvements.
### Changed
- Bump SenseGlove libraries to v2.1.2-95ec6e7.
## [1.1.0] - 2023-02-03
### Added
- Whitelist Android as a target platform.
- Introduce Android support.
- Add third-party library SGConnect for Android v1.1.0.
### Fixed
- Fix Android build issues caused by the log module.
### Changed
- SGConnect and SGCore libraries have been updated to v2.1.1-0569c74.
### Removed
- Removed the enum utils class due to ANY_PACKAGE deprecation warnings in Unreal Engine 5.1.
- Support for older versions of the Engine (namely, 4.22, 4.23, 4.24, 4.25, and 4.26) has been dropped.
## [1.0.4] - 2022-12-02
This is a minor release focusing mostly on adherence to the Unreal Engine Marketplace Guidelines based on the feedback from Epic Games.
### Added
- Added support for MSVC 2017
### Changed
- Updated SenseGlove libraries (SGCore/SGConnect) to v2.0.4.
## [1.0.3] - 2022-11-29
This is a minor release focusing on adherence to the Unreal Engine Marketplace Guidelines based on the feedback from Epic Games.
### Changed
- Adjust Config/FilterPlugin.ini in order to conform to Epic's Market Place Guidelines.
## [1.0.2] - 2022-11-27
This is a minor release focusing on adherence to the Unreal Engine Marketplace Guidelines based on the feedback from Epic Games.
### Added
- Added the newly acquired Unreal Engine Market Place Offer ID to the .uplugin file.
- List the dotfiles inside the FilterPlugin.ini file as well.
- Add the copyright notice to the source files missing it.
- Add the SenseGlove SDK license to the third-party license file.
### Fixed
- Fix the readme typos and errors.
- Minor fixes in the changelog for previous releases.
## [1.0.1] - 2022-11-25
### Changed
- Exposed SenseGloveTypes as a public dependency in SenseGloveConnect and SenseGloveCore modules, so that the C++ users of the API don't need to explicitly add it as a dependency.
- Cleaned up the redundant headers/modules dependencies from SGCore headers.
### Fixed
- Fix RunUAT build issues prior to Epic Store submission.
## [1.0.0] - 2022-11-24
### Added
- Initial public release of the SenseGlove haptic API for Unreal Engine with support for Microsoft Windows and GNU/Linux.
+3 -1
View File
@@ -1,3 +1,5 @@
[FilterPlugin]
/CHANGELOG.md
/Config/FilterPlugin.ini
/Documentation/the-senseglove-unreal-engine-handbook.epub
/Documentation/the-senseglove-unreal-engine-handbook.pdf
/Documentation/the-senseglove-unreal-engine-handbook.zip
Binary file not shown.
+34
View File
@@ -0,0 +1,34 @@
#
# author: Mamadou Babaei <mamadou@senseglove.com>
#
# (The MIT License)
#
# Copyright (c) 2020 - 2025 SenseGlove
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# pmake might add -J (private)
FLAGS=${.MAKEFLAGS:C/\-J ([0-9]+,?)+//W}
all: .DEFAULT
.DEFAULT:
@which gmake > /dev/null 2>&1 || \
(echo "BSD Make is not supported; The build requires GNU Make." && exit 1)
@gmake ${.FLAGS} ${.TARGETS}
+695
View File
@@ -0,0 +1,695 @@
#
# author: Mamadou Babaei <mamadou@senseglove.com>
#
# (The MIT License)
#
# Copyright (c) 2020 - 2025 SenseGlove
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
################################################################################
# Generic Settings
################################################################################
SG_PROJECT_NAME := The SenseGlove Unreal Engine Handbook
SG_PROJECT_GIT_REPOSITORY := https://dev.azure.com/SenseGlove/SenseGlove-Unreal/_git/SenseGlove-Unreal
SG_HANDBOOK_ESCAPED_NAME := $(shell echo $(SG_PROJECT_NAME) | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
SG_HANDBOOK_DIR := $(CURDIR)
SG_HANDBOOK_SRC_DIR := $(SG_HANDBOOK_DIR)/src
SG_HANDBOOK_TOML_FILE := $(realpath $(SG_HANDBOOK_DIR)/book.toml)
SG_HANDBOOK_CONFIG_HOME_DIR := SenseGlove/ue-handbook
SG_HANDBOOK_DEPLOY_CONFIG_FILENAME := deploy.conf
SG_HANDBOOK_DEPLOY_TEMP_DIR_NAME := unreal-docs-senseglove-com-deploy-XXXXXXXXXX
SG_HANDBOOK_FAVICON_FILE := $(SG_HANDBOOK_SRC_DIR)/favicon.svg
SG_DOT_GIT_DIR := $(realpath $(SG_HANDBOOK_DIR)/../.git)
SG_DOT_GIT_SHALLOW_FILE := $(SG_DOT_GIT_DIR)/shallow
SG_PLUGIN_DIR := $(realpath $(SG_HANDBOOK_DIR)/..)
SG_PLUGIN_RESOURCES_DIR := $(SG_PLUGIN_DIR)/Resources
SG_PLUGIN_FILE := $(SG_PLUGIN_DIR)/SenseGlove.uplugin
SG_DOCUMENTATION_URL := https://unreal.docs.senseglove.com
SG_DOCUMENTATION_DIR := $(SG_PLUGIN_DIR)/Documentation
SG_DOCUMENTATION_HTML_DIR_NAME := html
SG_DOCUMENTATION_HTML_DIR := $(SG_DOCUMENTATION_DIR)/$(SG_DOCUMENTATION_HTML_DIR_NAME)
SG_DOCUMENTATION_PDF_DIR := $(SG_DOCUMENTATION_DIR)/pdf-outline
SG_DOCUMENTATION_PDF_FILE := $(SG_DOCUMENTATION_PDF_DIR)/output.pdf
SG_DOCUMENTATION_EPUB_DIR := $(SG_DOCUMENTATION_DIR)/epub
SG_DOCUMENTATION_EPUB_FILE := $(SG_DOCUMENTATION_EPUB_DIR)/$(SG_PROJECT_NAME).epub
SG_DOCUMENTATION_PACK_DIR_NAME := pack
SG_DOCUMENTATION_PACK_DIR := $(SG_DOCUMENTATION_DIR)/$(SG_DOCUMENTATION_PACK_DIR_NAME)
SG_HANDBOOK_PACKED_HTML_DIR := $(SG_DOCUMENTATION_PACK_DIR)/$(SG_HANDBOOK_ESCAPED_NAME)
SG_HANDBOOK_PACKED_HTML_FILE := $(SG_DOCUMENTATION_PACK_DIR)/$(SG_HANDBOOK_ESCAPED_NAME).zip
SG_HANDBOOK_PACKED_PDF_FILE := $(SG_DOCUMENTATION_PACK_DIR)/$(SG_HANDBOOK_ESCAPED_NAME).pdf
SG_HANDBOOK_PACKED_EPUB_FILE := $(SG_DOCUMENTATION_PACK_DIR)/$(SG_HANDBOOK_ESCAPED_NAME).epub
SG_BROWSER_BINARY_PATH_LINUX := /opt/brave.com/brave/brave
SG_BROWSER_BINARY_PATH_WINDOWS := C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe
SG_RSYNC_BIN_PATH_WINDOWS := C:\Program Files\cwrsync\bin
SG_RSYNC_BINARY_PATH_WINDOWS := $(SG_RSYNC_BIN_PATH_WINDOWS)\rsync.exe
SG_RSYNC_SSH_BINARY_PATH_WINDOWS := $(SG_RSYNC_BIN_PATH_WINDOWS)\ssh.exe
################################################################################
# Platform Detection
################################################################################
SG_BUILD_ARCH_AMD64 := amd64
SG_BUILD_PLATFORM_LINUX := linux
SG_BUILD_PLATFORM_WINDOWS := windows
ifeq ($(OS),Windows_NT)
SG_BUILD_PLATFORM := $(SG_BUILD_PLATFORM_WINDOWS)
# Running a 32-bit (x86) Command Prompt sets PROCESSOR_ARCHITECTURE to x86,
# and instead defines PROCESSOR_ARCHITEW6432 for 64-bit Windows detection.
ifeq ($(PROCESSOR_ARCHITEW6432),AMD64)
SG_BUILD_ARCH := $(SG_BUILD_ARCH_AMD64)
else # ($(PROCESSOR_ARCHITEW6432),AMD64)
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
SG_BUILD_ARCH := $(SG_BUILD_ARCH_AMD64)
endif # ($(PROCESSOR_ARCHITECTURE),AMD64)
endif # ($(PROCESSOR_ARCHITEW6432),AMD64)
else # ($(OS),Windows_NT)
SG_PLATFORM_UNAME := $(shell uname -s)
ifeq ($(SG_PLATFORM_UNAME),Linux)
SG_BUILD_PLATFORM := $(SG_BUILD_PLATFORM_LINUX)
SG_PLATFORM_UNAME_ARCH := $(shell uname -m)
endif # ($(SG_PLATFORM_UNAME),Linux)
ifeq ($(SG_PLATFORM_UNAME_ARCH),x86_64)
SG_BUILD_ARCH := $(SG_BUILD_ARCH_AMD64)
endif # ($(SG_PLATFORM_UNAME_ARCH),x86_64)
endif # ($(OS),Windows_NT)
################################################################################
# Target Settings - mdbook
################################################################################
SG_MDBOOK_HOST := "localhost"
SG_MDBOOK_PORT := "8000"
SG_MDBOOK_SRC_DIR := "${SG_HANDBOOK_DIR}/src"
SG_MDBOOK_DEST_DIR := "${SG_DOCUMENTATION_DIR}"
SG_MDBOOK_WATCHER := "poll"
SG_PLUGIN_CHANGELOG_FILE := $(SG_PLUGIN_DIR)/CHANGELOG.md
SG_PLUGIN_DIRECTORY_STRUCTURE_FILE := $(SG_PLUGIN_DIR)/DIRECTORY_STRUCTURE.md
SG_PLUGIN_LICENSE_FILE := $(SG_PLUGIN_DIR)/LICENSE.md
SG_PLUGIN_LICENSE_THIRD_PARTY_FILE := $(SG_PLUGIN_DIR)/LICENSE_THIRD_PARTY.md
SG_PLUGIN_PLANNED_FEATURES_COMPLETION_STATUS_FILE := $(SG_PLUGIN_DIR)/PLANNED_FEATURES_COMPLETION_STATUS.md
SG_PLUGIN_PLATFORM_SUPPORT_MATRIX_FILE := $(SG_PLUGIN_DIR)/PLATFORM_SUPPORT_MATRIX.md
################################################################################
# Version and Build Information
################################################################################
SG_GIT_TREE_STATE_CLEAN := clean
SG_GIT_TREE_STATE_DIRTY := dirty
SG_GIT_NO := no
SG_GIT_YES := yes
SG_RELEASE_BRANCH_PATTERN := ^[0-9]+\.[0-9]+$$
SG_GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
SG_GIT_TAG := $(shell git describe --tags --abbrev=0 2>/dev/null)
SG_GIT_COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null)
SG_GIT_COMMIT_NUMS_SINCE_TAG := $(shell git rev-list --count HEAD ^`git describe --tags --abbrev=0 2>/dev/null` 2>/dev/null)
SG_GIT_TREE_STATE := $(shell test -n "`git status --porcelain 2>/dev/null`" && echo "$(SG_GIT_TREE_STATE_DIRTY)" || echo "$(SG_GIT_TREE_STATE_CLEAN)")
SG_GIT_IS_SHALLOW_CLONE := $(shell [ -d $(SG_DOT_GIT_DIR) ] && [ -f $(SG_DOT_GIT_SHALLOW_FILE) ] && echo "$(SG_GIT_YES)" || echo "$(SG_GIT_NO)")
SG_GIT_LATEST_REMOTE_TAG := $(shell git -c versionsort.suffix=- ls-remote --exit-code --refs --sort=version:refname --tags $(SG_PROJECT_GIT_REPOSITORY) '*.*.*' | tail -n 1 | sed 's/.*refs\/tags\///' 2>/dev/null)
SG_PLUGIN_VERSION := $(shell grep -o '"VersionName": "[^"]*"' ${SG_PLUGIN_FILE} | awk -F'"' '{print "v" $$4}')
ifeq ($(strip $(SG_GIT_COMMIT_NUMS_SINCE_TAG)),)
SG_GIT_COMMIT_NUMS_SINCE_TAG := 0
endif # ($(strip $(SG_GIT_COMMIT_NUMS_SINCE_TAG)),)
ifneq ($(strip $(SG_GIT_TAG)),)
SG_GIT_VERSION := $(SG_GIT_TAG)
endif # ($(strip $(SG_GIT_TAG)),)
ifeq ($(strip $(SG_GIT_VERSION)),)
ifeq ($(strip $(SG_GIT_IS_SHALLOW_CLONE)),$(SG_GIT_YES))
ifneq ($(strip $(SG_GIT_LATEST_REMOTE_TAG)),)
SG_GIT_VERSION := $(SG_GIT_LATEST_REMOTE_TAG)
endif # ($(strip $(SG_GIT_LATEST_REMOTE_TAG)),)
endif # ($(strip $(SG_GIT_IS_SHALLOW_CLONE)),$(SG_GIT_YES))
endif # ($(strip $(SG_GIT_VERSION)),)
SG_GIT_VERSION_MAJOR := $(shell echo $(SG_GIT_VERSION) | cut -d '.' -f 1 | tr -d -c 0-9)
ifeq ($(SG_GIT_VERSION_MAJOR),)
SG_GIT_VERSION_MAJOR := 0
endif # ($(SG_GIT_VERSION_MAJOR),)
SG_GIT_VERSION_MINOR := $(shell echo $(SG_GIT_VERSION) | cut -d '.' -f 2 | tr -d -c 0-9)
ifeq ($(SG_GIT_VERSION_MINOR),)
SG_GIT_VERSION_MINOR := 0
endif # ($(SG_GIT_VERSION_MINOR),)
SG_GIT_VERSION_PATCH := $(shell echo $(SG_GIT_VERSION) | cut -d '.' -f 3 | tr -d -c 0-9)
ifeq ($(SG_GIT_VERSION_PATCH),)
SG_GIT_VERSION_PATCH := 0
endif # ($(SG_GIT_VERSION_PATCH),)
SG_PLUGIN_VERSION_MAJOR := $(shell echo $(SG_PLUGIN_VERSION) | cut -d '.' -f 1 | tr -d -c 0-9)
ifeq ($(SG_PLUGIN_VERSION_MAJOR),)
SG_PLUGIN_VERSION_MAJOR := 0
endif
SG_PLUGIN_VERSION_MINOR := $(shell echo $(SG_PLUGIN_VERSION) | cut -d '.' -f 2 | tr -d -c 0-9)
ifeq ($(SG_PLUGIN_VERSION_MINOR),)
SG_PLUGIN_VERSION_MINOR := 0
endif # ($(SG_PLUGIN_VERSION_MINOR),)
SG_PLUGIN_VERSION_PATCH := $(shell echo $(SG_PLUGIN_VERSION) | cut -d '.' -f 3 | tr -d -c 0-9)
ifeq ($(SG_PLUGIN_VERSION_PATCH),)
SG_PLUGIN_VERSION_PATCH := 0
endif # ($(SG_PLUGIN_VERSION_PATCH),)
SG_BUILD_HOST := $(shell hostname)
SG_BUILD_TIME := $(shell date '+%a %b %d, %Y %H:%M %Z %z')
ifeq ($(strip $(SG_GIT_BRANCH)),dev)
ifeq ($(strip $(SG_GIT_TAG)),)
SG_HANDBOOK_REVISION := next
endif # ($(strip $(SG_GIT_TAG)),)
endif # ($(strip $(SG_GIT_BRANCH)),dev)
SG_IS_GIT_BRANCH_HEAD_OR_MASTER := $(or $(filter HEAD,$(strip $(SG_GIT_BRANCH))),$(filter master,$(strip $(SG_GIT_BRANCH))))
ifneq ($(SG_IS_GIT_BRANCH_HEAD_OR_MASTER),)
ifeq ($(strip $(SG_GIT_COMMIT_NUMS_SINCE_TAG)),0)
ifeq ($(strip $(SG_GIT_TREE_STATE)),$(SG_GIT_TREE_STATE_CLEAN))
ifeq ($(strip $(SG_GIT_VERSION)),$(strip $(SG_PLUGIN_VERSION)))
SG_HANDBOOK_REVISION := $(SG_PLUGIN_VERSION_MAJOR).$(SG_PLUGIN_VERSION_MINOR)
endif # ($(strip $(SG_GIT_VERSION)),$(strip $(SG_PLUGIN_VERSION)))
endif # ($(strip $(SG_GIT_TREE_STATE)),$(SG_GIT_TREE_STATE_CLEAN))
endif # ($(strip $(SG_GIT_COMMIT_NUMS_SINCE_TAG)),0)
endif # ($(SG_IS_GIT_BRANCH_HEAD_OR_MASTER),)
ifeq ($(strip $(SG_GIT_IS_SHALLOW_CLONE)),$(SG_GIT_YES))
SG_IS_GIT_BRANCH_RELEASE := $(shell echo $(SG_GIT_BRANCH) | grep -E '$(SG_RELEASE_BRANCH_PATTERN)' || echo "")
ifneq ($(SG_IS_GIT_BRANCH_RELEASE),)
ifeq ($(strip $(SG_GIT_VERSION)),$(strip $(SG_PLUGIN_VERSION)))
SG_HANDBOOK_REVISION := $(SG_PLUGIN_VERSION_MAJOR).$(SG_PLUGIN_VERSION_MINOR)
endif # ($(strip $(SG_GIT_VERSION)),$(strip $(SG_PLUGIN_VERSION)))
endif # ($(SG_IS_GIT_BRANCH_RELEASE),)
endif # ($(strip $(SG_GIT_IS_SHALLOW_CLONE)),$(SG_GIT_YES))
ifeq ($(strip $(SG_HANDBOOK_REVISION)),)
SG_HANDBOOK_REVISION := mismatched
endif # ($(strip $(SG_HANDBOOK_REVISION)),)
ifneq ($(strip $(SG_HANDBOOK_REVISION)),mismatched)
SG_MDBOOK_HTML_SITE_URL := $(SG_HANDBOOK_REVISION)
SG_HANDBOOK_REVISION_URL := $(SG_DOCUMENTATION_URL)/$(SG_HANDBOOK_REVISION)
SG_HANDBOOK_RELEASE_NAME := $(shell echo $(SG_PROJECT_NAME)-$(SG_HANDBOOK_REVISION) | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
SG_HANDBOOK_PDF_URL := $(SG_HANDBOOK_REVISION_URL)/$(SG_HANDBOOK_RELEASE_NAME).pdf
SG_HANDBOOK_EPUB_URL := $(SG_HANDBOOK_REVISION_URL)/$(SG_HANDBOOK_RELEASE_NAME).epub
endif # ($(strip $(SG_HANDBOOK_REVISION)),mismatched)
################################################################################
# mdbook-pdf Configuration
################################################################################
ifneq ($(strip $(SG_HANDBOOK_REVISION)),mismatched)
SG_MDBOOK_HTML_SITE_URL := /$(SG_HANDBOOK_REVISION)/
endif # ($(strip $(SG_HANDBOOK_REVISION)),mismatched)
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
SG_MDBOOK_PDF_BROWSER_BINARY_PATH := $(SG_BROWSER_BINARY_PATH_LINUX)
else ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_WINDOWS))
SG_MDBOOK_PDF_BROWSER_BINARY_PATH := $(SG_BROWSER_BINARY_PATH_WINDOWS)
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
$(error The target operating system is not supported!)
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
SG_LINUX_PYTHON_VENV_DIR := $(shell mktemp -d)/sg-ue-handbook-venv
SG_LINUX_PYTHON_VENV_BIN_DIR := $(SG_LINUX_PYTHON_VENV_DIR)/bin
export PATH := $(SG_LINUX_PYTHON_VENV_BIN_DIR):$(PATH)
export PWD := $(SG_LINUX_PYTHON_VENV_BIN_DIR)
export VIRTUAL_ENV := $(SG_LINUX_PYTHON_VENV_DIR)
else ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_WINDOWS))
SG_DIST_DIR := $(SG_HANDBOOK_DIR)/dist
SG_WINPYTHON_DIR := $(SG_DIST_DIR)/winpython
SG_WINPYTHON_BIN_DIR := $(SG_WINPYTHON_DIR)//python-3.12.4.amd64
SG_WINPYTHON_BIN_SCRIPTS_DIR := $(SG_WINPYTHON_BIN_DIR)/Scripts
SG_WINPYTHON_SCRIPTS_DIR := $(SG_WINPYTHON_DIR)/scripts
export PATH := $(SG_WINPYTHON_SCRIPTS_DIR);$(PATH)
export PATH := $(SG_WINPYTHON_BIN_SCRIPTS_DIR);$(PATH)
export PATH := $(SG_WINPYTHON_BIN_DIR);$(PATH)
export PATH := $(SG_RSYNC_BIN_PATH_WINDOWS);$(PATH)
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
$(error The target operating system is not supported!)
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
################################################################################
# Deployment Configuration
################################################################################
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
SG_HANDBOOK_DEPLOY_CONFIG_FILE := $(shell echo ~/.config/$(SG_HANDBOOK_CONFIG_HOME_DIR)/$(SG_HANDBOOK_DEPLOY_CONFIG_FILENAME))
else ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_WINDOWS))
SG_HANDBOOK_DEPLOY_CONFIG_FILE := $(shell cygpath -u $(LOCALAPPDATA)/$(SG_HANDBOOK_CONFIG_HOME_DIR)/$(SG_HANDBOOK_DEPLOY_CONFIG_FILENAME))
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
$(error The target operating system is not supported!)
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
################################################################################
# Deployment Temporary Directory Setup
################################################################################
$(info Setting up a deployment temporary directory '$(SG_HANDBOOK_DEPLOY_TEMP_DIR_NAME)')
SG_HANDBOOK_DEPLOY_TEMP_DIR := $(shell mktemp -d -t $(SG_HANDBOOK_DEPLOY_TEMP_DIR_NAME))
$(info Temporary directory has been set up at '$(SG_HANDBOOK_DEPLOY_TEMP_DIR)')
SG_HANDBOOK_DEPLOY_GENERATED_PDF_FILE := $(SG_HANDBOOK_DEPLOY_TEMP_DIR)/$(SG_HANDBOOK_RELEASE_NAME).pdf
SG_HANDBOOK_DEPLOY_GENERATED_EPUB_FILE := $(SG_HANDBOOK_DEPLOY_TEMP_DIR)/$(SG_HANDBOOK_RELEASE_NAME).epub
SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE := $(SG_HANDBOOK_DEPLOY_TEMP_DIR)/revisions.txt
SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE := $(SG_HANDBOOK_DEPLOY_TEMP_DIR)/index.html
################################################################################
# Env Configuration Functions
################################################################################
define load_env
$(eval ENV_FILE := $(1))
@echo "Loading configuration file '$(ENV_FILE)'..."
$(eval include $(ENV_FILE))
$(eval export)
endef
################################################################################
# Make Targets - All
################################################################################
.PHONY: all
all: help
################################################################################
# Make Targets - Misc
################################################################################
.PHONY: help
help:
@echo ""
@echo "Available make targets:"
@echo ""
@echo " - make build"
@echo " - make clean"
@echo " - make deploy"
@echo " - make help"
@echo " - make info"
@echo " - make pack"
@echo " - make serve"
@echo ""
.PHONY: info
info:
@echo ""
@echo "$(SG_PROJECT_NAME) build information:"
@echo ""
@echo " - Handbook Revision : $(SG_HANDBOOK_REVISION)"
@echo " - Handbook Revision URL : $(SG_HANDBOOK_REVISION_URL)"
@echo " - Handbook PDF URL : $(SG_HANDBOOK_PDF_URL)"
@echo " - Handbook ePub URL : $(SG_HANDBOOK_EPUB_URL)"
@echo " - Git Branch : $(SG_GIT_BRANCH)"
@echo " - Git Tag : $(SG_GIT_TAG)"
@echo " - Git Commit : $(SG_GIT_COMMIT)"
@echo " - Git Commits Since Tag : $(SG_GIT_COMMIT_NUMS_SINCE_TAG)"
@echo " - Git Tree State : $(SG_GIT_TREE_STATE)"
@echo " - Git Is Shallow Clone : $(SG_GIT_IS_SHALLOW_CLONE)"
@echo " - Git Latest Remote Tag : $(SG_GIT_LATEST_REMOTE_TAG)"
@echo " - Git Version : $(SG_GIT_VERSION)"
@echo " - Git Version Major : $(SG_GIT_VERSION_MAJOR)"
@echo " - Git Version Minor : $(SG_GIT_VERSION_MINOR)"
@echo " - Git Version Patch : $(SG_GIT_VERSION_PATCH)"
@echo " - Plugin Version : $(SG_PLUGIN_VERSION)"
@echo " - Plugin Version Major : $(SG_PLUGIN_VERSION_MAJOR)"
@echo " - Plugin Version Minor : $(SG_PLUGIN_VERSION_MINOR)"
@echo " - Plugin Version Patch : $(SG_PLUGIN_VERSION_PATCH)"
@echo " - Build Host : $(SG_BUILD_HOST)"
@echo " - Build Time : $(SG_BUILD_TIME)"
@echo ""
.PHONY: clean
clean:
@echo "Cleaning up $(SG_PROJECT_NAME)..."
@rm -rf "$(SG_MDBOOK_DEST_DIR)"
@echo "$(SG_PROJECT_NAME) has been cleaned up successfully!"
.PHONY: install-build-deps
install-build-deps:
@echo "Installing build dependencies if they have not already been installed..."
@cargo install mdbook --vers "^0.4" --locked
@cargo install xq --vers "^0.4" --locked
@cargo install mdbook-alerts --vers "^0.7" --locked
@cargo install mdbook-pdf --vers "^0.1" --locked
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@echo "Installing mdbook-pdf-outline..."
@python -m venv $(VIRTUAL_ENV) \
&& . $(SG_LINUX_PYTHON_VENV_BIN_DIR)/activate \
&& pip install mdbook-pdf-outline 2>/dev/null
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@cargo install --git https://github.com/Michael-F-Bryan/mdbook-epub --rev d1536bbbdc1ca00320522ad73a967e15057ef573 --locked
################################################################################
# Make Targets - mdBook
################################################################################
.PHONY: prepare
prepare:
@echo "Preparing the handbook $(SG_HANDBOOK_DIR)..."
prepare: prepare-src
prepare: prepare-dest
.PHONY: prepare-dest
prepare-dest:
@echo "Preparing the handbook target dir $(SG_MDBOOK_DEST_DIR)..."
.PHONY: prepare-src
prepare-src:
@echo "Preparing the handbook source dir $(SG_MDBOOK_SRC_DIR)..."
.PHONY: verify-handbook-revision
verify-handbook-revision:
ifeq ($(SG_HANDBOOK_REVISION), next)
@echo "Building an unstable handbook for the next release..."
else # ($(SG_HANDBOOK_REVISION), next)
ifeq ($(SG_HANDBOOK_REVISION), mismatched)
@echo ""
@echo "Failed to verify the handbook build due to some discrepancies. Please verify the following:"
@echo ""
@echo "If you're building a release handbook:"
@echo " - You are either on a release tag, e.g. v2.1.0, or on the master branch."
@echo " - No commit has been made since the targeted tag."
@echo " - The Git tree state is clean."
@echo " - The Git version and plugin version match each other."
@echo ""
@echo "If you're building an unstable handbook for the next release:"
@echo " - You're building from the dev branch."
@echo " - The Git version value evaluates to empty."
@echo ""
@echo "If you're packaging the handbook:"
@echo " - You're on a release branch."
@echo " - You're shallow cloning."
@echo " - The remorte Git repository contains releae tags."
@echo ""
@exit 1
else # ($(SG_HANDBOOK_REVISION), mismatched)
@echo "Building a release handbook: $(SG_HANDBOOK_REVISION)..."
endif # ($(SG_HANDBOOK_REVISION), mismatched)
endif # ($(SG_HANDBOOK_REVISION), next)
.PHONY: serve
serve: info
serve: install-build-deps
serve: prepare
serve: _mdbook_serve
.PHONY: build
build: info
build: install-build-deps
build: prepare
build: verify-handbook-revision
build: _mdbook_build
.PHONY: pack
pack: info
pack: install-build-deps
pack: prepare
pack: verify-handbook-revision
pack: _mdbook_build
pack: _pack
.PHONY: deploy
deploy: info
deploy: install-build-deps
deploy: clean
deploy: prepare
deploy: verify-handbook-revision
deploy: _mdbook_build
deploy: _deploy
.PHONY: _mdbook_serve
_mdbook_serve:
@echo "Serving $(SG_HANDBOOK_DIR)..."
@env SG_PROJECT_NAME='$(SG_PROJECT_NAME)' \
SG_HANDBOOK_REVISION='$(SG_HANDBOOK_REVISION)' \
SG_HANDBOOK_REVISION_URL='$(SG_HANDBOOK_REVISION_URL)' \
SG_HANDBOOK_PDF_URL='$(SG_HANDBOOK_PDF_URL)' \
SG_HANDBOOK_EPUB_URL='$(SG_HANDBOOK_EPUB_URL)' \
SG_GIT_BRANCH='$(SG_GIT_BRANCH)' \
SG_GIT_TAG='$(SG_GIT_TAG)' \
SG_GIT_COMMIT='$(SG_GIT_COMMIT)' \
SG_GIT_COMMIT_NUMS_SINCE_TAG='$(SG_GIT_COMMIT_NUMS_SINCE_TAG)' \
SG_GIT_TREE_STATE='$(SG_GIT_TREE_STATE)' \
SG_GIT_IS_SHALLOW_CLONE='$(SG_GIT_IS_SHALLOW_CLONE)' \
SG_GIT_LATEST_REMOTE_TAG='$(SG_GIT_LATEST_REMOTE_TAG)' \
SG_GIT_VERSION='$(SG_GIT_VERSION)' \
SG_GIT_VERSION_MAJOR='$(SG_GIT_VERSION_MAJOR)' \
SG_GIT_VERSION_MINOR='$(SG_GIT_VERSION_MINOR)' \
SG_GIT_VERSION_PATCH='$(SG_GIT_VERSION_PATCH)' \
SG_PLUGIN_VERSION='$(SG_PLUGIN_VERSION)' \
SG_PLUGIN_VERSION_MAJOR='$(SG_PLUGIN_VERSION_MAJOR)' \
SG_PLUGIN_VERSION_MINOR='$(SG_PLUGIN_VERSION_MINOR)' \
SG_PLUGIN_VERSION_PATCH='$(SG_PLUGIN_VERSION_PATCH)' \
SG_BUILD_HOST='$(SG_BUILD_HOST)' \
SG_BUILD_TIME='$(SG_BUILD_TIME)' \
MDBOOK_output__html__site_url='$(SG_MDBOOK_HTML_SITE_URL)' \
MDBOOK_output__pdf__browser_binary_path='$(SG_MDBOOK_PDF_BROWSER_BINARY_PATH)' \
mdbook serve \
-n $(SG_MDBOOK_HOST) \
-p $(SG_MDBOOK_PORT) \
--watcher $(SG_MDBOOK_WATCHER) \
--dest-dir $(SG_MDBOOK_DEST_DIR)
.PHONY: _mdbook_build
_mdbook_build:
@echo "Building $(SG_HANDBOOK_DIR)..."
@env SG_PROJECT_NAME='$(SG_PROJECT_NAME)' \
SG_HANDBOOK_REVISION='$(SG_HANDBOOK_REVISION)' \
SG_HANDBOOK_REVISION_URL='$(SG_HANDBOOK_REVISION_URL)' \
SG_HANDBOOK_PDF_URL='$(SG_HANDBOOK_PDF_URL)' \
SG_HANDBOOK_EPUB_URL='$(SG_HANDBOOK_EPUB_URL)' \
SG_GIT_BRANCH='$(SG_GIT_BRANCH)' \
SG_GIT_TAG='$(SG_GIT_TAG)' \
SG_GIT_COMMIT='$(SG_GIT_COMMIT)' \
SG_GIT_COMMIT_NUMS_SINCE_TAG='$(SG_GIT_COMMIT_NUMS_SINCE_TAG)' \
SG_GIT_TREE_STATE='$(SG_GIT_TREE_STATE)' \
SG_GIT_IS_SHALLOW_CLONE='$(SG_GIT_IS_SHALLOW_CLONE)' \
SG_GIT_LATEST_REMOTE_TAG='$(SG_GIT_LATEST_REMOTE_TAG)' \
SG_GIT_VERSION='$(SG_GIT_VERSION)' \
SG_GIT_VERSION_MAJOR='$(SG_GIT_VERSION_MAJOR)' \
SG_GIT_VERSION_MINOR='$(SG_GIT_VERSION_MINOR)' \
SG_GIT_VERSION_PATCH='$(SG_GIT_VERSION_PATCH)' \
SG_PLUGIN_VERSION='$(SG_PLUGIN_VERSION)' \
SG_PLUGIN_VERSION_MAJOR='$(SG_PLUGIN_VERSION_MAJOR)' \
SG_PLUGIN_VERSION_MINOR='$(SG_PLUGIN_VERSION_MINOR)' \
SG_PLUGIN_VERSION_PATCH='$(SG_PLUGIN_VERSION_PATCH)' \
SG_BUILD_HOST='$(SG_BUILD_HOST)' \
SG_BUILD_TIME='$(SG_BUILD_TIME)' \
MDBOOK_output__html__site_url='$(SG_MDBOOK_HTML_SITE_URL)' \
MDBOOK_output__pdf__browser_binary_path='$(SG_MDBOOK_PDF_BROWSER_BINARY_PATH)' \
mdbook build \
--dest-dir $(SG_MDBOOK_DEST_DIR)
.PHONY: _pack
_pack:
@echo "Packing '$(SG_HANDBOOK_DIR)'..."
@echo "Cleaning up the pack directory '$(SG_DOCUMENTATION_PACK_DIR)'..."
@rm -rf "$(SG_DOCUMENTATION_PACK_DIR)"
@echo "Creating the pack directory '$(SG_DOCUMENTATION_PACK_DIR)'..."
@mkdir -p "$(SG_DOCUMENTATION_PACK_DIR)"
@echo "Moving '$(SG_DOCUMENTATION_HTML_DIR)' to '$(SG_HANDBOOK_PACKED_HTML_DIR)'..."
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@mv "$(SG_DOCUMENTATION_HTML_DIR)" "$(SG_HANDBOOK_PACKED_HTML_DIR)"
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@powershell -Command "Move-Item '$(SG_DOCUMENTATION_HTML_DIR)' '$(SG_HANDBOOK_PACKED_HTML_DIR)'"
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@echo "Compressing '$(SG_HANDBOOK_PACKED_HTML_DIR)' to '$(SG_HANDBOOK_PACKED_HTML_FILE)'..."
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@cd "$(SG_DOCUMENTATION_PACK_DIR)" \
&& zip $(SG_HANDBOOK_PACKED_HTML_FILE) -r $(SG_HANDBOOK_ESCAPED_NAME)
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@cd "$(SG_DOCUMENTATION_PACK_DIR)" \
&& powershell Compress-Archive $(SG_HANDBOOK_ESCAPED_NAME) $(SG_HANDBOOK_PACKED_HTML_FILE)
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@echo "Moving '$(SG_DOCUMENTATION_PDF_FILE)' to '$(SG_HANDBOOK_PACKED_PDF_FILE)'..."
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@mv "$(SG_DOCUMENTATION_PDF_FILE)" "$(SG_HANDBOOK_PACKED_PDF_FILE)"
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@powershell -Command "Move-Item '$(SG_DOCUMENTATION_PDF_FILE)' '$(SG_HANDBOOK_PACKED_PDF_FILE)'"
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@echo "Moving '$(SG_DOCUMENTATION_EPUB_FILE)' to '$(SG_HANDBOOK_PACKED_EPUB_FILE)'..."
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@mv "$(SG_DOCUMENTATION_EPUB_FILE)" "$(SG_HANDBOOK_PACKED_EPUB_FILE)"
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@powershell -Command "Move-Item '$(SG_DOCUMENTATION_EPUB_FILE)' '$(SG_HANDBOOK_PACKED_EPUB_FILE)'"
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
.PHONY: _deploy
_deploy:
@echo "Deploying '$(SG_HANDBOOK_DIR)'..."
@echo "Loading the Handbook deployment configuration file..."
@$(call load_env, $(SG_HANDBOOK_DEPLOY_CONFIG_FILE))
@echo "Deploying '$(SG_HANDBOOK_DIR)' to '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)'..."
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@rsync \
-avze "ssh -p $(SG_HANDBOOK_SSH_PORT)" \
--perms \
--chmod=u+rwx,g+rx,o+rx,g-w,o-wx \
--delete $(SG_DOCUMENTATION_HTML_DIR)/ \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@cd "$(SG_DOCUMENTATION_DIR)" \
&& "$(SG_RSYNC_BINARY_PATH_WINDOWS)" \
-avze "\"$(SG_RSYNC_SSH_BINARY_PATH_WINDOWS)\" -p $(SG_HANDBOOK_SSH_PORT)" \
--perms \
--chmod=u+rwx,g+rx,o+rx,g-w,o-wx \
--delete $(SG_DOCUMENTATION_HTML_DIR_NAME)/ \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@echo "Copying '$(SG_DOCUMENTATION_PDF_FILE)' to '$(SG_HANDBOOK_DEPLOY_GENERATED_PDF_FILE)'..."
@cp -v "$(SG_DOCUMENTATION_PDF_FILE)" "$(SG_HANDBOOK_DEPLOY_GENERATED_PDF_FILE)"
@echo "Uploading '$(SG_HANDBOOK_DEPLOY_GENERATED_PDF_FILE)' to '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)'..."
@scp \
-P $(SG_HANDBOOK_SSH_PORT) \
"$(SG_HANDBOOK_DEPLOY_GENERATED_PDF_FILE)" \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)
@echo "Copying '$(SG_DOCUMENTATION_EPUB_FILE)' to '$(SG_HANDBOOK_DEPLOY_GENERATED_EPUB_FILE)'..."
@cp -v "$(SG_DOCUMENTATION_EPUB_FILE)" "$(SG_HANDBOOK_DEPLOY_GENERATED_EPUB_FILE)"
@echo "Uploading '$(SG_HANDBOOK_DEPLOY_GENERATED_EPUB_FILE)' to '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)'..."
@scp \
-P $(SG_HANDBOOK_SSH_PORT) \
"$(SG_HANDBOOK_DEPLOY_GENERATED_EPUB_FILE)" \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)
@echo "Retrieving the list of deployed handbook revisions from '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_PORT)/$(SG_HANDBOOK_SSH_REMOTE_DIR)'..."
@ssh \
-p $(SG_HANDBOOK_SSH_PORT) $(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST) \
"mkdir -p $(SG_HANDBOOK_SSH_REMOTE_DIR)"
@ssh \
-p $(SG_HANDBOOK_SSH_PORT) $(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST) \
"find $(SG_HANDBOOK_SSH_REMOTE_DIR) -maxdepth 1 -type d ! -path $(SG_HANDBOOK_SSH_REMOTE_DIR) -exec basename {} \; | sort -r" \
> $(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE)
@{ \
grep -i 'next' $(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE); \
grep -vi 'next' $(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE) \
| sort -r; \
} > "$(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE).tmp"
@mv "$(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE).tmp" "$(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE)"
@echo "Revisions list saved to '$(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE)'!"
@echo "Current revisions:"
@sed 's/^/ - /' "$(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE)"
@echo "Generating '$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)'..."
@echo "<html>" > "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<head>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<title>Welcome to $(SG_PROJECT_NAME)</title>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<link rel='icon' href='favicon.svg'>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<link rel='shortcut icon' href='favicon.svg'>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<style>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "body {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "font-family: Arial, sans-serif;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "background-color: #003070;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "color: #fff;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "margin: 0;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "padding: 0;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".container {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "padding: 2.0em;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".logo-container {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "text-align: center;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".logo-container img {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "max-width: 100%;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "height: auto;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".title-container {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "text-align: center;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".revisions-container {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "display: table;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "width: 300px;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "margin: 0 auto;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "padding: 20px;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".row {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "display: table-row;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".cell {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "display: table-cell;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "background-color: #004890;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "border-radius: 5px;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "margin: 10px;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "padding: 20px;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "text-align: center;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "transition: transform 0.2s;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".cell:hover {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "transform: scale(1.05);" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".cell a {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "display: block;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "height: 100%;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "width: 100%;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "text-decoration: none;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "color: #fff;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "font-weight: bold;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</style>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</head>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<body>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<div class='container'>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<div class='logo-container'>" >> $(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)
@echo "<img src="favicon.svg" alt='SenseGlove' />" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</div>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<div class='title-container'>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<h1>Welcome to the SenseGlove Unreal Engine Handbook</h1>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<h3>Please choose a revision to continue!</h3>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<h5>* Please note that the next revision is the documentation for the unstable next release of the plugin and subject to change!</h5>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</div>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<div class='revisions-container'>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@while read dir; \
do \
echo "<div class='row'><div class='cell'><a href=\"$$dir\">$$dir</a></div></div>"; \
done < $(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE) >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</div>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</div>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</body>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</html>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "Uploading '$(SG_HANDBOOK_FAVICON_FILE)' to '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)'"
@scp \
-P $(SG_HANDBOOK_SSH_PORT) \
"$(SG_HANDBOOK_FAVICON_FILE)" \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)
@echo "Uploading '$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)' to '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)'"
@scp \
-P $(SG_HANDBOOK_SSH_PORT) \
"$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)" \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)
+91
View File
@@ -0,0 +1,91 @@
# The SenseGlove Unreal Engine Handbook
## Prerequisites
- Brave Browser (for PDF generation; in case you have Brave installed in a non-conventional path, or you'd like to use a different Chromium-based browser you need to adjust the path inside the GNUmakefile).
- cygpath (Windows only) provided by [Git for Windows](https://gitforwindows.org/).
- GNU Make.
- Git.
- PowerShell (Windows only) required only by the `pack` make target.
- Python3 along with venv and pip. For Windows, a version of [WinPython](https://winpython.github.io/) is already shipped with this repo, so it's not an external requirement.
- Rsync and OpenSSH ([cwRsync](https://itefix.net/cwrsync) provides these for Windows) required only by the `deploy` make target.
- The Rust Toolchain and the Cargo package manager.
- Other common Unix utilities such as `awk`, `cp`, `cut`, `date`, `find`, `grep`, `hostname`, `mkdir`, `mktemp`, `mv`, `scp`, `sed`, `ssh`, `sort`, `tr`, and `uname` provided by most distors. On Windows these are mostly provided by [Git for Windows](https://gitforwindows.org/).
- `zip` command (Linux only) required only by the `pack` make target.
### Microsoft Windows Prerequisites Installation Notes
- Download and install [Git for Windows](https://gitforwindows.org/).
- Download and install [the Rust Toolchain](https://rustup.rs/).
- Download [a without-guile binary build of GNU Make for Windows from ezwinports](https://sourceforge.net/projects/ezwinports/files/), e.g. <code>make-4.4.1-without-guile-w32-bin.zip</code>.
- <code>make-\*-without-guile-w32-bin.zip/*</code> contents should be extracted and copied to your <code>Git\\mingw64\\</code>, e.g. <code>C:\\Program Files\\Git\\mingw64\\</code>, merging the folders, WITHOUT overwriting/replacing any existing files.
- After Git Bash installation, the changes to environment variables require a reboot. In order for these changes to take effect reboot the system, then proceed to the build section.
- Download and install [cwRsync](https://itefix.net/cwrsync) which is only required for the `deploy` make target. In case you won't intend to use that, this could be skipped.
## How to preview, build, and deploy?
In order to generate the handbook, on either GNU/Linux and Microsoft Windows everything is done through running the <code>make</code> command. Simply entering the <code>make</code> or <code>make help</code> inside your desired terminal will show you all the available make targets:
```sh
$ make help
Available make targets:
- make build
- make clean
- make deploy
- make help
- make info
- make pack
- make serve
```
### make info
This target prints the build and version information.
### make clean
This target cleans up the output directory for the generated handbook, which is the <code>/Documentation</code> folder.
### make serve
This tatget could be used for viewing or live-previwing the handbook while editing simultaneously editing it. Simply run this tatget and leave your terminal open and inside your web browser of choice head to <code>http://localhost:8000/</code>. You can modify the handbook source code inside any text editor and upon saving your web browser will refresh in realtime once a change is detected.
### make build
This tatget builds the final handbook and outputs it to the <code>/Documentation</code> folder.
If you're building a release handbook, please make sure:
- You are either on a release tag, e.g. v2.1.0, or on the master branch.
- No commit has been made since the targeted tag.
- The Git tree state is clean.
- The Git version and plugin version match each other.
If you're building an unstable handbook for the next release, please make sure:
- You're building from the dev branch.
- The Git version value evaluates to empty.
### make deploy
This tatget is used to build and upload the final draft of the handbook. This tatget first runs the <code>clean</code> target and then the <code>build</code> target; and only then attempts to upload the content. Thus, any rule that applies to the <code>build</code> target, will apply to this target as well.
_Noete_: Building on Windows requires sourcing the deployment configuration file, otherwise the deployment will fail; e.g.:
```sh
$ source /c/Users/mamadou/AppData/Local/SenseGlove/ue-handbook/deploy.conf && make deploy
```
Also, on Windows you probably need to adjust the follwoing variables at the top of the `GNUmakefile`:
```make
SG_RSYNC_BIN_PATH_WINDOWS := C:\Program Files\cwrsync\bin
SG_RSYNC_BINARY_PATH_WINDOWS := $(SG_RSYNC_BIN_PATH_WINDOWS)\rsync.exe
SG_RSYNC_SSH_BINARY_PATH_WINDOWS := $(SG_RSYNC_BIN_PATH_WINDOWS)\ssh.exe
```
### make pack
This target is meant to be used by the `sgum-packager` utility located in the [Packager](../Packager) folder in order to deploy the documentation in various formats along with the plugin to [Fab](https://www.fab.com/).
+106
View File
@@ -0,0 +1,106 @@
#!/usr/bin/env sh
#
# author: Mamadou Babaei <mamadou@senseglove.com>
#
# (The MIT License)
#
# Copyright (c) 2020 - 2025 SenseGlove
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
if [ "$1" = "supports" ]
then
exit 0
fi
readonly JSON_INPUT=$(cat)
readonly CONTEXT=$(echo "${JSON_INPUT}" | xq '.[0]')
readonly BOOK=$(echo "${JSON_INPUT}" | xq '.[1]')
escape_string() {
printf '%s' "$1" | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g'
}
SG_PROJECT_NAME_ESCAPED=$(escape_string "${SG_PROJECT_NAME}")
SG_HANDBOOK_REVISION_ESCAPED=$(escape_string "${SG_HANDBOOK_REVISION}")
SG_HANDBOOK_REVISION_URL_ESCAPED=$(escape_string "${SG_HANDBOOK_REVISION_URL}")
SG_HANDBOOK_EPUB_URL_ESCAPED=$(escape_string "${SG_HANDBOOK_EPUB_URL}")
SG_HANDBOOK_PDF_URL_ESCAPED=$(escape_string "${SG_HANDBOOK_PDF_URL}")
SG_GIT_BRANCH_ESCAPED=$(escape_string "${SG_GIT_BRANCH}")
SG_GIT_TAG_ESCAPED=$(escape_string "${SG_GIT_TAG}")
SG_GIT_COMMIT_ESCAPED=$(escape_string "${SG_GIT_COMMIT}")
SG_GIT_COMMIT_NUMS_SINCE_TAG_ESCAPED=$(escape_string "${SG_GIT_COMMIT_NUMS_SINCE_TAG}")
SG_GIT_TREE_STATE_ESCAPED=$(escape_string "${SG_GIT_TREE_STATE}")
SG_GIT_IS_SHALLOW_CLONE_ESCAPED=$(escape_string "${SG_GIT_IS_SHALLOW_CLONE}")
SG_GIT_LATEST_REMOTE_TAG_ESCAPED=$(escape_string "${SG_GIT_LATEST_REMOTE_TAG}")
SG_GIT_VERSION_ESCAPED=$(escape_string "${SG_GIT_VERSION}")
SG_GIT_VERSION_MAJOR_ESCAPED=$(escape_string "${SG_GIT_VERSION_MAJOR}")
SG_GIT_VERSION_MINOR_ESCAPED=$(escape_string "${SG_GIT_VERSION_MINOR}")
SG_GIT_VERSION_PATCH_ESCAPED=$(escape_string "${SG_GIT_VERSION_PATCH}")
SG_PLUGIN_VERSION_ESCAPED=$(escape_string "${SG_PLUGIN_VERSION}")
SG_PLUGIN_VERSION_MAJOR_ESCAPED=$(escape_string "${SG_PLUGIN_VERSION_MAJOR}")
SG_PLUGIN_VERSION_MINOR_ESCAPED=$(escape_string "${SG_PLUGIN_VERSION_MINOR}")
SG_PLUGIN_VERSION_PATCH_ESCAPED=$(escape_string "${SG_PLUGIN_VERSION_PATCH}")
SG_BUILD_HOST_ESCAPED=$(escape_string "${SG_BUILD_HOST}")
SG_BUILD_TIME_ESCAPED=$(escape_string "${SG_BUILD_TIME}")
PARSED_BOOK=$(echo "${BOOK}" | xq "
.sections[] |= (
if has(\"Chapter\") then
.Chapter.content |=
walk(if type == \"string\" then
. | gsub(\"{{ #sg-project-name }}\"; \"${SG_PROJECT_NAME_ESCAPED}\") |
gsub(\"{{ #sg-handbook-revision }}\"; \"${SG_HANDBOOK_REVISION_ESCAPED}\") |
gsub(\"{{ #sg-handbook-revision-url }}\"; \"${SG_HANDBOOK_REVISION_URL_ESCAPED}\") |
gsub(\"{{ #sg-handbook-epub-url }}\"; \"${SG_HANDBOOK_EPUB_URL_ESCAPED}\") |
gsub(\"{{ #sg-handbook-pdf-url }}\"; \"${SG_HANDBOOK_PDF_URL_ESCAPED}\") |
gsub(\"{{ #sg-git-branch }}\"; \"${SG_GIT_BRANCH_ESCAPED}\") |
gsub(\"{{ #sg-git-tag }}\"; \"${SG_GIT_TAG_ESCAPED}\") |
gsub(\"{{ #sg-git-commit }}\"; \"${SG_GIT_COMMIT_ESCAPED}\") |
gsub(\"{{ #sg-git-commit-nums-since-tag }}\"; \"${SG_GIT_COMMIT_NUMS_SINCE_TAG_ESCAPED}\") |
gsub(\"{{ #sg-git-tree-state }}\"; \"${SG_GIT_TREE_STATE_ESCAPED}\") |
gsub(\"{{ #sg-git-is-shallow-clone }}\"; \"${SG_GIT_IS_SHALLOW_CLONE_ESCAPED}\") |
gsub(\"{{ #sg-git-latest-remote-tag }}\"; \"${SG_GIT_LATEST_REMOTE_TAG_ESCAPED}\") |
gsub(\"{{ #sg-git-version }}\"; \"${SG_GIT_VERSION_ESCAPED}\") |
gsub(\"{{ #sg-git-version-major }}\"; \"${SG_GIT_VERSION_MAJOR_ESCAPED}\") |
gsub(\"{{ #sg-git-version-minor }}\"; \"${SG_GIT_VERSION_MINOR_ESCAPED}\") |
gsub(\"{{ #sg-git-version-patch }}\"; \"${SG_GIT_VERSION_PATCH_ESCAPED}\") |
gsub(\"{{ #sg-plugin-version }}\"; \"${SG_PLUGIN_VERSION_ESCAPED}\") |
gsub(\"{{ #sg-plugin-version-major }}\"; \"${SG_PLUGIN_VERSION_MAJOR_ESCAPED}\") |
gsub(\"{{ #sg-plugin-version-minor }}\"; \"${SG_PLUGIN_VERSION_MINOR_ESCAPED}\") |
gsub(\"{{ #sg-plugin-version-patch }}\"; \"${SG_PLUGIN_VERSION_PATCH_ESCAPED}\") |
gsub(\"{{ #sg-build-host }}\"; \"${SG_BUILD_HOST_ESCAPED}\") |
gsub(\"{{ #sg-build-time }}\"; \"${SG_BUILD_TIME_ESCAPED}\")
else
.
end)
else
.
end
)")
# For debugging purpose only!
#echo "CONTEXT: ${CONTEXT}" >&2
#echo "BOOK: ${BOOK}" >&2
#echo "PARSED_BOOK: ${PARSED_BOOK}" >&2
echo "${PARSED_BOOK}" | xq '.'
+115
View File
@@ -0,0 +1,115 @@
#
# author: Mamadou Babaei <mamadou@senseglove.com>
#
# (The MIT License)
#
# Copyright (c) 2020 - 2025 SenseGlove
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
[book]
authors = ["Mamadou Babaei"]
description = "Welcome to the SenseGlove Unreal Engine documentation!"
language = "en"
multilingual = false
src = "src"
text-direction = "ltr"
title = "The SenseGlove Unreal Engine Handbook"
[build]
build-dir = "book"
create-missing = false
extra-watch-dirs = ["assets"]
use-default-preprocessors = true
[preprocessor.index]
[preprocessor.links]
[preprocessor.alerts]
[preprocessor.senseglove]
after = [ "index", "links" ]
command = "sh ./bin/sg-preprocessor.sh"
[output.epub]
no-section-label = false
curly-quotes = true
epub-version = 3
footnote-backrefs = true
[output.html]
additional-css = ["styles/custom.css"]
additional-js = []
cname = "unreal.docs.senseglove.com"
copy-fonts = true
default-theme = "navy"
git-repository-url = "https://dev.azure.com/SenseGlove/_git/SenseGlove-Unreal"
git-repository-icon = "fa-git"
input-404 = "404.md"
mathjax-support = false
no-section-label = false
preferred-dark-theme = "navy"
smart-punctuation = false
theme = ""
[output.html.fold]
enable = false
level = 0
[output.html.print]
enable = true
page-break = true
[output.html.search]
boost-hierarchy = 1
boost-paragraph = 1
boost-title = 2
copy-js = true
enable = true
expand = true
heading-split-level = 3
limit-results = 128
teaser-word-count = 64
use-boolean-and = true
[output.pdf]
trying-times = 1
timeout = 300
# https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF
landscape = false
display-header-footer = true
print-background = false
scale = 1.0
paper-width = 8
paper-height = 10
margin-top = 0.5
margin-bottom = 0.5
margin-left = 0.5
margin-right = 0.5
page-ranges = ""
ignore-invalid-page-ranges = false
header-template = "<h3 style='font-size:8px; margin-left: 48%' class='title'></h3>"
footer-template = "<p style='font-size:10px; margin-left: 48%'><span class='pageNumber'></span> / <span class='totalPages'></span></p>"
prefer-css-page-size = true
[output.pdf-outline]
optional = true
like-wkhtmltopdf = true
+6
View File
@@ -0,0 +1,6 @@
# Reset all rules from parent .gitignore files!
!*/
!**/*
# Recursively ignore all __pycache__ folders!
__pycache__/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More