-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from raph080/to-hdxTaskController
To hdx task controller and hydra 2.0
- Loading branch information
Showing
36 changed files
with
2,470 additions
and
1,307 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# Building | ||
|
||
## Tested platforms | ||
|
||
ImGUi Hydra has been developed on MacOS Sonora 14.5 (Macbook Air 2022 - M2). | ||
|
||
## Dependencies | ||
|
||
Required: | ||
* gcc compiler | ||
* [cmake v3.27](https://cmake.org/) or newer | ||
* [OpenUSD v24.08](https://github.com/PixarAnimationStudios/OpenUSD) or newer | ||
|
||
Embedded: | ||
* [glew](https://github.com/Perlmint/glew-cmake) | ||
* [glfw v3.4](https://github.com/glfw/glfw) | ||
* [imgui v1.90.9](https://github.com/ocornut/imgui) | ||
* [ImGuizmo v1.83](https://github.com/CedricGuillemet/ImGuizmo) | ||
* [ImGuiFileDialog v0.6.7](https://github.com/aiekick/ImGuiFileDialog) | ||
* [ImGuiColorTextEdit](https://github.com/BalazsJako/ImGuiColorTextEdit) | ||
|
||
## Getting Started | ||
|
||
### Install dependencies | ||
|
||
Make sure gcc and cmake are installed | ||
|
||
```bash | ||
gcc --version | ||
cmake --version | ||
``` | ||
If some version and info are printed after running the previous commands, gcc and cmake are installed. If you get `command not found` error, please be sure to install them first. | ||
|
||
### Download OpenUSD | ||
|
||
The easy way to get a pre-built version of USD is to download the one from the [Nvidia website](https://developer.nvidia.com/usd). | ||
|
||
To build USD manually, go to the [OpenUSD release page](https://github.com/PixarAnimationStudios/OpenUSD/releases), download the last release available and build it (build info in the OpenUSD [README.md](https://github.com/PixarAnimationStudios/OpenUSD/blob/release/README.md)). | ||
|
||
Don't forget to add the --embree flag to the build command if you wish to have access to the Embree renderer from ImGui Hydra Editor. | ||
![embree enabled in ImGui Hydra Editor](resources/storm_embree.png) | ||
|
||
```bash | ||
python3 USD/build_scripts/build_usd.py --embree /path/to/install | ||
``` | ||
|
||
### Clone ImGuiHydraEditor | ||
|
||
Clone the git project using the following command: | ||
|
||
```bash | ||
git clone --recurse-submodules https://github.com/raph080/ImGuiHydraEditor.git | ||
``` | ||
|
||
The recursive flag will automatically include the following projects: glew, glfw, imgui, ImGuiColorTextEdit, ImGuiFileDialog, ImGuizmo | ||
|
||
### Build ImGuiHydraEditor | ||
|
||
Within the cloned ImGuiHydraEditor, create a build folder and run cmake from this newly created folder by specifying the root path to OpenUSD build: | ||
|
||
```bash | ||
mkdir build | ||
cd build | ||
cmake -Dpxr_DIR=/path/to/OpenUSD/build/folder -DCMAKE_INSTALL_PREFIX=/path/to/install/folder .. | ||
make | ||
make install | ||
``` | ||
|
||
### Run ImGuiHydraEditor | ||
|
||
if everything went well, 3 new folders are created in your `/path/to/install/folder`: `bin`, `include` and `lib`. | ||
|
||
You can then run the ImGuiHydraEditor application as follow: | ||
|
||
Linux: | ||
```bash | ||
export LD_LIBRARY_PATH=/path/to/OpenUSD/build/folder/lib:/path/to/OpenUSD/build/folder/lib64:$LD_LIBRARY_PATH | ||
./ImGuiHydraEditor | ||
``` | ||
|
||
MacOS: | ||
```bash | ||
export DYLD_LIBRARY_PATH=/path/to/OpenUSD/build/folder/lib:$DYLD_LIBRARY_PATH | ||
./ImGuiHydraEditor | ||
``` | ||
|
||
You can optionally load a USD file directly using the following command: | ||
```bash | ||
./ImGuiHydraEditor /input/file.usd | ||
``` |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.