Skip to content

Commit

Permalink
SceneIndexFilter and HydraSchema
Browse files Browse the repository at this point in the history
Ephiphyte Library & EpiphyteAPI Applied API

API Adapter

Signed-off-by: SEB SCHMIDT <[email protected]>
  • Loading branch information
SebSchmidtWetaFx committed Aug 5, 2024
1 parent aad3a75 commit 44c50ad
Show file tree
Hide file tree
Showing 32 changed files with 2,009 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,22 @@ Huge thanks to Pixar's USD team for providing a highly extensible platform!
- [hdTri](./src/hdTri): A hydra renderer plugin which images a triangle (in the most direct sense).
- [usdviewTri](./src/usdviewTri): An usdview plugin providing a menu command to define child Triangle prim(s) under selected paths.


[*] We deliberatly split the Hydra 1 & 2 Triangle Prim Adapters into two plugins/sources to outline the differences


### USD In Production Examples

The example code presented as part of the USD in Production talk at [SIGGRAPH 2024](https://s2024.conference-program.org/presentation/?id=gensub_436&sess=sess163). These examples use Hydra 2 exclusively.
Disable these examples using `-DBUILD_SIGG2024=off`

- [usdEpiphyte](./src/usdEpiphyte): a API Schema adapter to describe a relationship between a child primitive and its parent-primitive and the location (pointId) on it
- [usdEpiphyteImaging](./src/usdEpiphyteImaging): a API Schema adapter for the API Schema
- [hdEpiphyte](./src/hdEpiphyte): a Hydra Schema & Scene Index Filter




There are many other USD plugins available online - check out [USD Working Group: Projects & Resources](https://wiki.aswf.io/display/WGUSD/USD+Projects+and+Resources) for more!

## Dependencies
Expand Down Expand Up @@ -79,6 +93,7 @@ CMake options for configuring this project:
| `ENABLE_PYTHON_SUPPORT` | Enable python support. Must match python support of USD installation. | `ON` |
| `BUILD_TESTING` | Enable automated testing. | `ON` |
| `BUILD_HYDRA2` | Enable building Hydra2 plugins, will disable Hydra1 plugin building. | `OFF` |
| `BUILD_SIGG2024` | Enable building SIGGRAPH 2024 USD In Production Course Examples. | `ON` |

## Running

Expand Down
1 change: 1 addition & 0 deletions cmake/Options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
option(ENABLE_PYTHON_SUPPORT "Enable support for python." ON)
option(BUILD_TESTING "Build & execute tests as part of build" ON)
option(BUILD_HYDRA2 "Build Hydra2 Plugins, disables Hydra1 plugins" OFF)
option(BUILD_SIGG2024 "Build Siggraph 2024 USD in Production Example Code" ON)
7 changes: 6 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@ set(ORGANIZATION "usdpluginexamples")

# Build & install libraries.
add_subdirectory(usdTri)
add_subdirectory(usdEpiphyte)
add_subdirectory(usdviewTri)

# Build & install plugins.
if (BUILD_HYDRA2)
add_subdirectory(usdTriImagingHd2)
else()
add_subdirectory(usdEpiphyteImaging)
add_subdirectory(hdEpiphyte)
else()
add_subdirectory(usdTriImaging)
endif()

add_subdirectory(usdTriImaging)
add_subdirectory(usdTriFileFormat)
add_subdirectory(hdTri)


# Install top-level plugInfo for including per-library plugInfo(s).
install(
FILES plugInfo.json
Expand Down
29 changes: 29 additions & 0 deletions src/hdEpiphyte/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
usd_library(hdEpiphyte

PUBLIC_HEADERS_INSTALL_PREFIX
${ORGANIZATION}

PYTHON_INSTALL_PREFIX
${ORGANIZATION}

LIBRARIES
js
plug
tf
sdf
vt
gf
usdImaging
hd

PUBLIC_CLASSES
hdEpiphyteSchema


CPPFILES
sceneIndexPlugin.cpp
epiphyteSceneIndex.cpp

RESOURCE_FILES
plugInfo.json
)
Loading

0 comments on commit 44c50ad

Please sign in to comment.