Skip to content

Commit

Permalink
Add cesium mdl search paths for cesium.omniverse.dev.kit
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Jul 11, 2023
1 parent b5c82c0 commit 9f3f5a1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 20 deletions.
12 changes: 11 additions & 1 deletion apps/cesium.omniverse.dev.kit
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ app = true
[dependencies]
# Include basic configuration (that brings most of basic extensions)
"omni.app.dev" = {}
"omni.kit.window.material_graph" = {}
"cesium.omniverse" = {}
"cesium.powertools" = {}
#"omni.example.ui" = {}
Expand All @@ -17,6 +18,15 @@ app.useFabricSceneDelegate = true
app.usdrt.scene_delegate.enableProxyCubes = false
app.usdrt.scene_delegate.geometryStreaming.enabled = false
app.fastShutdown = true
# Both searchPaths settings must be set in order for material graph to find cesium mdl exports
renderer.mdl.searchPaths.custom = "${app}/../exts/cesium.omniverse/mdl"
materialConfig.searchPaths.custom = ["${app}/../exts/cesium.omniverse/mdl"]
materialConfig.materialGraph.userAllowList = ["cesium.mdl"]

[settings.app.exts]
folders.'++' = ["${app}/../exts"] # Make extensions from this repo available.
folders.'++' = [
"${app}", # Find other applications in this folder
"${app}/exts", # Find extensions in this folder
"${app}/../exts", # Find cesium.omniverse and cesium.usd.schemas
"${app}/../extern/nvidia/app/extscache" # Find omni.kit.window.material_graph
]
6 changes: 0 additions & 6 deletions apps/cesium.omniverse.dev.python.debug.kit
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,3 @@ app = true

[settings]
app.window.title = "Cesium For Omniverse Python Debugging App"

[settings.app.exts]
folders.'++' = [
"${app}",
"${app}/../exts"
]
6 changes: 0 additions & 6 deletions apps/cesium.omniverse.dev.trace.kit
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,3 @@ app = true
[settings]
app.window.title = "Cesium For Omniverse Performance Tracing App"
app.fastShutdown = false

[settings.app.exts]
folders.'++' = [
"${app}",
"${app}/../exts"
]
7 changes: 0 additions & 7 deletions apps/cesium.performance.kit
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,3 @@ app = true

[settings]
app.window.title = "Cesium For Omniverse Performance Testing App"

[settings.app.exts]
folders.'++' = [
"${app}",
"${app}/exts",
"${app}/../exts"
]
8 changes: 8 additions & 0 deletions extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ if(exit_code AND NOT exit_code EQUAL 0)
endif()
# cmake-format: on

# Add a symlink to USD Composer (create) so that we can use its extensions (e.g. omni.kit.window.material_graph) in our internal applications
# Don't check for errors because we can still proceed with the build
if(UNIX)
execute_process(COMMAND bash "${PROJECT_SOURCE_DIR}/extern/nvidia/link_app.sh --app create")
elseif(WIN32)
execute_process(COMMAND cmd /C "${PROJECT_SOURCE_DIR}/extern/nvidia/link_app.bat --app create")
endif()

if(WIN32)
set(NVIDIA_PLATFORM_NAME "windows-x86_64")
elseif(UNIX AND NOT APPLE)
Expand Down

0 comments on commit 9f3f5a1

Please sign in to comment.