-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
67 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Installation | ||
|
||
## 1. Download source code | ||
|
||
Download whole project's source code from | ||
[GitHub](https://github.com/nutti/UE4-Kdtree/archive/master.zip) and unzip it. | ||
|
||
## 2. Move the plugin | ||
|
||
Move the plugin folder (`Kdtree` directory) into the "Plugins" directory in | ||
your UE4 project folder. | ||
|
||
## 3. (re-) Generate project files | ||
|
||
Generate project files (for example with right mouse click on the \*.uproject) | ||
for Visual Studio (Windows) or XCode (Mac). | ||
|
||
## 4. Build | ||
|
||
Build the project in Visual Studio. | ||
|
||
### 5. Launch UE4 editor and enable the plugin | ||
|
||
Launch .uproject file and enable the plugin via *Settings* > *Plugins* > | ||
*Project* > *Other* > *kd-tree*. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Tutorial | ||
|
||
## Build kd-tree and do radius search | ||
|
||
![kdtree](docs/images/kdtree.png) | ||
|
||
1. `Build Kdtree` builds a kd-tree (`Kdtree` object in Blueprint) from `Vector` | ||
objects. | ||
* `Dump Kdtree to Console` outputs the internal information of `Kdtree` | ||
object to the console for debugging. | ||
* `Validate Kdtree` checks the `Kdtree` object and halts the game play if | ||
there is a incorrect in it. | ||
2. `Collect from Kdtree` collects `Vector` objects in the sphere (center | ||
location is `Center`, radius is `Radius`). `Collect from Kdtree` also | ||
returns indicies of list that is input argument of `Build Kdtree`. | ||
3. If you don't use `Kdtree` any more, you can destroy `Kdtree` object and free | ||
memories by `Clear Kdtree`. | ||
|
||
## Use asynchronous version | ||
|
||
![kdtree_async](docs/images/kdtree_async.png) | ||
|
||
1. `Build Kdtree Async` is an asynchronous version of `Build Kdtree`. | ||
* All synchronous versions (`Collect from Kdtree`, `Dump Kdtree to Console`, | ||
`Validate Kdtree` and `Clear Kdtree`) can be applicatable to `Kdtree` | ||
object after `Build Kdtree Async` is completed. | ||
2. `Collect from Kdtree Async` is an asynchronous version of | ||
`Collect from Kdtree`. |