Skip to content

Commit baee84e

Browse files
committed
Update: Documents
1 parent c8c22e4 commit baee84e

File tree

3 files changed

+68
-56
lines changed

3 files changed

+68
-56
lines changed

README.md

Lines changed: 14 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,29 @@
1-
# UE4 Plugin: kd-tree
1+
# Unreal Engine Plugin: kd-tree
22

33
This is a UE4 plugin to provide utility functions for building kd-tree as
44
Blueprint Function Library.
55

6-
## Supported Environment
7-
8-
This plugin is tested on the below environment.
9-
10-
* UE4 Version: 4.22
11-
* OS: Windows/Mac
12-
13-
## Installation
14-
15-
### 1. Download source code
16-
17-
Download whole project's source code from
18-
[GitHub](https://github.com/nutti/UE4-Kdtree/archive/master.zip) and unzip it.
19-
20-
### 2. Move the plugin
21-
22-
Move the plugin folder (`Kdtree` directory) into the "Plugins" directory in
23-
your UE4 project folder.
6+
## Features
247

25-
### 3. (re-) Generate project files
8+
* Build kd-tree.
9+
* Radius search by using kd-tree.
10+
* Support synchronous and asynchronous versions.
2611

27-
Generate project files (for example with RMouseButton on the \*.uproject) for
28-
Visual Studio (Windows) or XCode (Mac).
29-
30-
### 4. Build
31-
32-
Build the project.
33-
34-
### 5. Launch UE4 editor and enable the plugin
35-
36-
Launch .uproject file and enable the plugin via *Settings* > *Plugins* >
37-
*Project* > *Other* > *kd-tree*.
38-
39-
## Features / Tutorials
40-
41-
### Build kdtree and radius search
12+
## Supported Environment
4213

43-
1. `Build Kdtree` builds a kd-tree (`Kdtree` object in Blueprint) from `Vector`
44-
objects.
45-
* `Dump Kdtree to Console` outputs the internal information of `Kdtree`
46-
object to the console for debugging.
47-
* `Validate Kdtree` checks the `Kdtree` object and halts the game play if
48-
there is a incorrect in it.
49-
2. `Collect from Kdtree` collects `Vector` objects in the sphere (center
50-
location is `Center`, radius is `Radius`). `Collect from Kdtree` also
51-
returns indicies of list that is input argument of `Build Kdtree`.
52-
3. If you don't use `Kdtree` any more, you can destroy `Kdtree` object and free
53-
memories by `Clear Kdtree`.
14+
This plugin supports on the below environment.
5415

55-
![kdtree](docs/images/kdtree.png)
16+
* Unreal Engine Version: 4.22-4.27, 5.0-
17+
* Development Platforms: Windows, macOS, Linux
18+
* Target Build Platforms: All platforms
5619

57-
### Build kdtree and radius search (Async version)
20+
## Installation
5821

59-
Async version is also provided by this plugin.
22+
See [the installation document](docs/installation.md).
6023

61-
1. `Build Kdtree Async` is an asynchronous version of `Build Kdtree`.
62-
* All synchronous versions (`Collect from Kdtree`, `Dump Kdtree to Console`,
63-
`Validate Kdtree` and `Clear Kdtree`) can be applicatable to `Kdtree`
64-
object after `Build Kdtree Async` is completed.
65-
2. `Collect from Kdtree Async` is an asynchronous version of
66-
`Collect from Kdtree`.
24+
## Tutorial
6725

68-
![kdtree_async](docs/images/kdtree_async.png)
26+
See [the tutorial](docs/tutorial.md).
6927

7028
## Change Log
7129

docs/installation.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Installation
2+
3+
## 1. Download source code
4+
5+
Download whole project's source code from
6+
[GitHub](https://github.com/nutti/UEPlugin-Kdtree/archive/refs/heads/master.zip)
7+
and unzip it.
8+
9+
## 2. Move the plugin
10+
11+
Move the plugin folder (`Kdtree` directory) into the "Plugins" directory in
12+
your UE4 project folder.
13+
14+
## 3. (re-) Generate project files
15+
16+
Generate project files (for example with right mouse click on the \*.uproject)
17+
for Visual Studio (Windows) or XCode (Mac).
18+
19+
## 4. Build
20+
21+
Build the project in Visual Studio.
22+
23+
### 5. Launch UE4 editor and enable the plugin
24+
25+
Launch .uproject file and enable the plugin via *Settings* > *Plugins* >
26+
*Project* > *Other* > *kd-tree*.

docs/tutorial.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Tutorial
2+
3+
## Build kd-tree and do radius search
4+
5+
![kdtree](images/kdtree.png)
6+
7+
1. `Build Kdtree` builds a kd-tree (`Kdtree` object in Blueprint) from `Vector`
8+
objects.
9+
* `Dump Kdtree to Console` outputs the internal information of `Kdtree`
10+
object to the console for debugging.
11+
* `Validate Kdtree` checks the `Kdtree` object and halts the game play if
12+
there is a incorrect in it.
13+
2. `Collect from Kdtree` collects `Vector` objects in the sphere (center
14+
location is `Center`, radius is `Radius`). `Collect from Kdtree` also
15+
returns indicies of list that is input argument of `Build Kdtree`.
16+
3. If you don't use `Kdtree` any more, you can destroy `Kdtree` object and free
17+
memories by `Clear Kdtree`.
18+
19+
## Use asynchronous version
20+
21+
![kdtree_async](images/kdtree_async.png)
22+
23+
1. `Build Kdtree Async` is an asynchronous version of `Build Kdtree`.
24+
* All synchronous versions (`Collect from Kdtree`, `Dump Kdtree to Console`,
25+
`Validate Kdtree` and `Clear Kdtree`) can be applicatable to `Kdtree`
26+
object after `Build Kdtree Async` is completed.
27+
2. `Collect from Kdtree Async` is an asynchronous version of
28+
`Collect from Kdtree`.

0 commit comments

Comments
 (0)