Skip to content

Commit

Permalink
Update to kit-kernel@106
Browse files Browse the repository at this point in the history
  • Loading branch information
jshrake-nvidia committed Jul 8, 2024
1 parent 37f7185 commit 397c1db
Show file tree
Hide file tree
Showing 11 changed files with 211 additions and 88 deletions.
2 changes: 1 addition & 1 deletion apps/cesium.omniverse.dev.kit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ app = true

[dependencies]
# Include basic configuration (that brings most of basic extensions)
"omni.app.dev" = {}
"omni.app.base" = {}
"omni.kit.window.material_graph" = {optional = true}
"cesium.omniverse" = {}
"cesium.powertools" = {}
Expand Down
116 changes: 116 additions & 0 deletions apps/omni.app.base.kit
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# This app is a copy of omni.app.dev.kit, minus any extensions that are no longer published.

[package]
title = "Kit Dev App"
description = "Default app kit runs. Minimal USD viewer."
version = "1.0.0"
keywords = ["app"]
support_level = "Sample"

[dependencies]
# The Main UI App. Bring everything needed for UI application.
"omni.kit.uiapp" = {}

# USD file open/close
"omni.kit.window.file" = {}

# Basic Menus
"omni.kit.menu.utils" = {}
"omni.kit.menu.file" = {}
"omni.kit.menu.edit" = {}
"omni.kit.menu.create" = {}
"omni.kit.menu.common" = {}
"omni.kit.menu.aov" = {}
"omni.kit.context_menu" = {}
"omni.kit.selection" = {}

# Stage Templates
"omni.kit.stage_templates" = {}

# Some Editing Windows
"omni.kit.window.title" = {}
"omni.kit.widget.live" = {}
"omni.kit.widget.cache_indicator" = {}
"omni.kit.window.stage" = {}
"omni.kit.window.toolbar" = {}
"omni.kit.widget.filebrowser" = {}
"omni.kit.window.filepicker" = {}
"omni.kit.window.content_browser" = {}
"omni.kit.collaboration.channel_manager" = {}
"omni.kit.collaboration.viewport.camera" = {}
"omni.kit.collaboration.selection_outline" = {}
"omni.kit.collaboration.stage_columns" = {}
"omni.kit.stage_column.active" = {}

# Tools
"omni.kit.tool.collect" = {}

# Viewport and Renderer
"omni.kit.viewport.bundle" = {}
"omni.kit.viewport.rtx" = {}
"omni.kit.viewport.pxr" = {}
"omni.kit.viewport.iray" = {}
"omni.resourcemonitor" = {}

# MDL
"omni.mdl" = {}
"omni.mdl.neuraylib" = {}

# RTX Tests
# "omni.rtx.tests" = {}
# "omni.kit.renderer.capture" = {}

# Status Bar
"omni.kit.window.status_bar" = {}

# Graphics Stats
"omni.stats" = {}

# Render Settings 2.0
"omni.rtx.settings.core" = {}

# Dev & Utils Windows
"omni.kit.window.about" = {}
"omni.kit.window.privacy" = {}
"omni.kit.window.stats" = { order = 1000 }
"omni.kit.window.script_editor" = {}
"omni.kit.window.console" = {}
"omni.kit.window.preferences" = { order = 1000 } # so the menu is in the correct place
"omni.kit.window.tests" = {}

# Extensions Manager UI
"omni.kit.window.extensions" = {}

# Property Widgets and Window
"omni.kit.window.property" = {}
"omni.kit.property.bundle" = {}

# Misc
"omni.kit.primitive.mesh" = {}
"omni.kit.telemetry" = {}

[settings.app.settings]
persistent = true

[settings]
exts."omni.kit.window.file".useNewFilePicker = true
exts."omni.kit.renderer.core".imgui.enableMips = true
app.content.emptyStageOnStart = true

app.extensions.enabledDeprecated = []

renderer.enabled='rtx,iray,pxr'
renderer.active='rtx'

# Fast shutdown by default
app.fastShutdown = true

exts."omni.kit.viewport.window".startup.dockTabInvisible=true

[settings.app.window]
saveSizeOnExit = true
title = "Kit Dev App"
width = 1920
height = 1080
x = -1
y = -1
33 changes: 12 additions & 21 deletions extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ endif()
set(NVIDIA_BUILD_DIR "${PROJECT_SOURCE_DIR}/extern/nvidia/_build")
set(NVIDIA_USD_ROOT "${NVIDIA_BUILD_DIR}/target-deps/usd")
set(PYTHON_ROOT "${NVIDIA_BUILD_DIR}/target-deps/python")
set(USDRT_ROOT "${NVIDIA_BUILD_DIR}/target-deps/usdrt")
set(CARB_ROOT "${NVIDIA_BUILD_DIR}/target-deps/carb_sdk_plugins")
set(KIT_SDK_ROOT "${NVIDIA_BUILD_DIR}/target-deps/kit-sdk")
set(KIT_OMNI_UI_ROOT "${NVIDIA_BUILD_DIR}/target-deps/omni-ui")
set(KIT_IMGUI_ROOT "${NVIDIA_BUILD_DIR}/target-deps/omni-kit-renderer-imgui")
set(PYBIND11_ROOT "${NVIDIA_BUILD_DIR}/target-deps/pybind11")
set(CUDA_ROOT "${NVIDIA_BUILD_DIR}/target-deps/cuda")

Expand Down Expand Up @@ -215,20 +216,10 @@ else()
endif()

# cmake-format: off
add_prebuilt_project(
RELEASE_INCLUDE_DIR
"${USDRT_ROOT}/include/usdrt_only"
DEBUG_INCLUDE_DIR
"${USDRT_ROOT}/include/usdrt_only"
RELEASE_LIBRARY_DIR
"${USDRT_ROOT}/_build/${NVIDIA_PLATFORM_NAME}/${NVIDIA_RELEASE_FOLDER_NAME}/usdrt_only"
DEBUG_LIBRARY_DIR
"${USDRT_ROOT}/_build/${NVIDIA_PLATFORM_NAME}/${NVIDIA_DEBUG_FOLDER_NAME}/usdrt_only"
RELEASE_LIBRARIES
omni.fabric.plugin
DEBUG_LIBRARIES
omni.fabric.plugin
TARGET_NAMES
add_prebuilt_project_header_only(
INCLUDE_DIR
"${KIT_SDK_ROOT}/dev/fabric/include"
TARGET_NAME
fabric
)
# cmake-format: on
Expand Down Expand Up @@ -373,9 +364,9 @@ add_prebuilt_project(
DEBUG_INCLUDE_DIR
"${KIT_SDK_ROOT}/dev/include"
RELEASE_LIBRARY_DIR
"${KIT_SDK_ROOT}/exts/omni.ui/bin"
"${KIT_OMNI_UI_ROOT}/bin"
DEBUG_LIBRARY_DIR
"${KIT_SDK_ROOT}/exts/omni.ui/bin"
"${KIT_OMNI_UI_ROOT}/bin"
RELEASE_LIBRARIES
omni.ui
DEBUG_LIBRARIES
Expand All @@ -387,8 +378,8 @@ add_prebuilt_project(

if(WIN32)
set(NVIDIA_ADDITIONAL_LIBRARIES
"${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/kit-sdk/exts/omni.kit.renderer.imgui/bin/imgui.dll"
"${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/kit-sdk/exts/omni.kit.renderer.imgui/bin/deps/freetype.dll"
"${KIT_IMGUI_ROOT}/bin/imgui.dll"
"${KIT_IMGUI_ROOT}/bin/deps/freetype.dll"
)

set_property(GLOBAL PROPERTY NVIDIA_ADDITIONAL_LIBRARIES_PROPERTY "${NVIDIA_ADDITIONAL_LIBRARIES}")
Expand All @@ -398,11 +389,11 @@ else()
"$<TARGET_FILE_DIR:usd>"
"$<TARGET_FILE_DIR:carb>"
# This is where freetype is located on Linux
"${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/kit-sdk/exts/omni.kit.renderer.imgui/bin/deps")
"${KIT_IMGUI_ROOT}/bin/deps")

set(NVIDIA_ADDITIONAL_LINK_DIRECTORIES
# This is where freetype is located on Linux. Needed by imgui which doesn't set its rpath properly
"${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/kit-sdk/exts/omni.kit.renderer.imgui/bin/deps")
"${KIT_IMGUI_ROOT}/bin/deps")

set_property(GLOBAL PROPERTY NVIDIA_ADDITIONAL_SEARCH_PATHS_PROPERTY "${NVIDIA_ADDITIONAL_SEARCH_PATHS}")
set_property(GLOBAL PROPERTY NVIDIA_ADDITIONAL_LINK_DIRECTORIES_PROPERTY "${NVIDIA_ADDITIONAL_LINK_DIRECTORIES}")
Expand Down
24 changes: 22 additions & 2 deletions extern/nvidia/debug-deps/kit-sdk.packman.user.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
<project toolsVersion="5.6">
<dependency name="kit_sdk_debug" linkPath="../_build/target-deps/kit-sdk-debug/">
<package name="kit-sdk" version="105.1.2+release.135279.09b309e7.tc.${platform}.debug"/>
<dependency name="kit-kernel-debug" linkPath="../_build/target-deps/kit-sdk-debug/">
<package name="kit-kernel" version="106.0.0+release.118399.fcefe91f.gl.${platform}.debug"/>
</dependency>
<!-- build-time dependencies -->
<!-- the versions MUST correspond to the versions pulled in by kit-kernel during extension precaching-->
<!-- you can find the versions by running the dev kit app ./extern/nvidia/_build/target-deps/kit-sdk/kit apps/cesium.omniverse.dev.kit -->
<!-- which will download the extensions on the first run and log the versions to stdout -->
<!--
[23.471s] Pulling extension: `omni.ui-2.23.11` from the registry.
[omni.kit.registry.nucleus] [tid: 128747226389376] downloading: 'http://d4i3qtqj3r0z5.cloudfront.net/omni.ui-7c6502313c182ec0.zip' -> '/tmp/tmpn5jlkygu/omni.ui-2.23.11+fcefe91f.lx64.r.cp310.zip'...
[23.286s] Pulling extension: `omni.kit.renderer.imgui-1.0.1` from the registry.
[omni.kit.registry.nucleus] [tid: 128747226389376] downloading: 'http://d4i3qtqj3r0z5.cloudfront.net/omni.kit.renderer.imgui-6d3c178f53bf4534.zip' -> '/tmp/tmpp3l_d2ae/omni.kit.renderer.imgui-1.0.1+fcefe91f.lx64.r.cp310.zip'...
[23.471s] Extension: `omni.kit.renderer.imgui-1.0.1` was installed.
-->
<dependency name="omni-ui" linkPath="../_build/target-deps/omni-ui/">
<package name="omni.ui" version="7c6502313c182ec0" platforms="linux-x86_64"/>
<package name="omni.ui" version="d84e7b34ee8e4433" platforms="windows-x86_64"/>
</dependency>
<dependency name="omni-kit-renderer-imgui" linkPath="../_build/target-deps/omni-kit-renderer-imgui/">
<package name="omni.kit.renderer.imgui" version="6d3c178f53bf4534" platforms="linux-x86_64" />
<package name="omni.kit.renderer.imgui" version="9c4244a14d3bef05" platforms="windows-x86_64" />
</dependency>
</project>
24 changes: 22 additions & 2 deletions extern/nvidia/deps/kit-sdk.packman.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
<project toolsVersion="5.6">
<dependency name="kit_sdk" linkPath="../_build/target-deps/kit-sdk/">
<package name="kit-sdk" version="105.1.2+release.135279.09b309e7.tc.${platform}.release"/>
<dependency name="kit-kernel" linkPath="../_build/target-deps/kit-sdk/">
<package name="kit-kernel" version="106.0.0+release.118399.fcefe91f.gl.${platform}.release"/>
</dependency>
<!-- build-time dependencies -->
<!-- the versions MUST correspond to the versions pulled in by kit-kernel during extension precaching-->
<!-- you can find the versions by running the dev kit app ./extern/nvidia/_build/target-deps/kit-sdk/kit apps/cesium.omniverse.dev.kit -->
<!-- which will download the extensions on the first run and log the versions to stdout -->
<!--
[23.471s] Pulling extension: `omni.ui-2.23.11` from the registry.
[omni.kit.registry.nucleus] [tid: 128747226389376] downloading: 'http://d4i3qtqj3r0z5.cloudfront.net/omni.ui-7c6502313c182ec0.zip' -> '/tmp/tmpn5jlkygu/omni.ui-2.23.11+fcefe91f.lx64.r.cp310.zip'...
[23.286s] Pulling extension: `omni.kit.renderer.imgui-1.0.1` from the registry.
[omni.kit.registry.nucleus] [tid: 128747226389376] downloading: 'http://d4i3qtqj3r0z5.cloudfront.net/omni.kit.renderer.imgui-6d3c178f53bf4534.zip' -> '/tmp/tmpp3l_d2ae/omni.kit.renderer.imgui-1.0.1+fcefe91f.lx64.r.cp310.zip'...
[23.471s] Extension: `omni.kit.renderer.imgui-1.0.1` was installed.
-->
<dependency name="omni-ui" linkPath="../_build/target-deps/omni-ui/">
<package name="omni.ui" version="7c6502313c182ec0" platforms="linux-x86_64"/>
<package name="omni.ui" version="d84e7b34ee8e4433" platforms="windows-x86_64"/>
</dependency>
<dependency name="omni-kit-renderer-imgui" linkPath="../_build/target-deps/omni-kit-renderer-imgui/">
<package name="omni.kit.renderer.imgui" version="6d3c178f53bf4534" platforms="linux-x86_64" />
<package name="omni.kit.renderer.imgui" version="9c4244a14d3bef05" platforms="windows-x86_64" />
</dependency>
</project>
2 changes: 0 additions & 2 deletions extern/nvidia/deps/target-deps.packman.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
<import path="../_build/target-deps/kit-sdk/dev/all-deps.packman.xml">
<filter include="python"/>
<filter include="nv_usd_py310_release"/>
<filter include="usdrt"/>
<filter include="carb_sdk_plugins"/>
<filter include="pybind11"/>
<filter include="cuda"/>
</import>
<!-- Override the link paths to point to the correct locations. -->
<dependency name="python" linkPath="../_build/target-deps/python"/>
<dependency name="nv_usd_py310_release" linkPath="../_build/target-deps/usd/release"/>
<dependency name="usdrt" linkPath="../_build/target-deps/usdrt"/>
<dependency name="carb_sdk_plugins" linkPath="../_build/target-deps/carb_sdk_plugins"/>
<dependency name="pybind11" linkPath="../_build/target-deps/pybind11/pybind11"/>
<dependency name="cuda" linkPath="../_build/target-deps/cuda/cuda"/>
Expand Down
5 changes: 4 additions & 1 deletion extern/nvidia/tools/packman/config.packman.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<config remotes="cloudfront">
<config remotes="cloudfront cloudfront-extensions">
<remote2 name="cloudfront">
<transport actions="download" protocol="https" packageLocation="d4i3qtqj3r0z5.cloudfront.net/${name}@${version}" />
</remote2>
<remote2 name="cloudfront-extensions">
<transport actions="download" protocol="https" packageLocation="d4i3qtqj3r0z5.cloudfront.net/${name}-${version}" />
</remote2>
</config>
13 changes: 5 additions & 8 deletions src/core/include/cesium/omniverse/UsdTokens.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,12 @@ __pragma(warning(push)) __pragma(warning(disable : 4003))
(subdivisionScheme) \
(vertex) \
(vertexId) \
(_cesium_gltfLocalToEcefTransform) \
(_cesium_tilesetId) \
(_deletedPrims) \
(_materialSource) \
(_paramColorSpace) \
(_sdrMetadata) \
(_worldExtent) \
(_worldOrientation) \
(_worldPosition) \
(_worldScale) \
(_worldVisibility) \
((info_implementationSource, "info:implementationSource")) \
((info_mdl_sourceAsset, "info:mdl:sourceAsset")) \
Expand Down Expand Up @@ -152,6 +148,8 @@ __pragma(warning(push)) __pragma(warning(disable : 4003))
((xformOp_rotateZYX, "xformOp:rotateZYX")) \
((xformOp_scale, "xformOp:scale")) \
((xformOp_translate, "xformOp:translate")) \
((_localMatrix, "omni:fabric:localMatrix")) \
((_worldMatrix, "omni:fabric:worldMatrix")) \
((_auto, "auto"))

#ifdef CESIUM_OMNI_CLANG
Expand Down Expand Up @@ -274,15 +272,14 @@ const omni::fabric::Type primvars_st(omni::fabric::BaseDataType::eFloat, 2, 1, o
const omni::fabric::Type primvars_vertexId(omni::fabric::BaseDataType::eFloat, 1, 1, omni::fabric::AttributeRole::eNone);
const omni::fabric::Type Shader(omni::fabric::BaseDataType::eTag, 1, 0, omni::fabric::AttributeRole::ePrimTypeName);
const omni::fabric::Type subdivisionScheme(omni::fabric::BaseDataType::eToken, 1, 0, omni::fabric::AttributeRole::eNone);
const omni::fabric::Type _cesium_gltfLocalToEcefTransform(omni::fabric::BaseDataType::eDouble, 16, 0, omni::fabric::AttributeRole::eMatrix);
const omni::fabric::Type _cesium_tilesetId(omni::fabric::BaseDataType::eInt64, 1, 0, omni::fabric::AttributeRole::eNone);
const omni::fabric::Type _materialSource(omni::fabric::BaseDataType::eRelationship, 1, 0, omni::fabric::AttributeRole::eNone);
const omni::fabric::Type _paramColorSpace(omni::fabric::BaseDataType::eToken, 1, 1, omni::fabric::AttributeRole::eNone);
const omni::fabric::Type _sdrMetadata(omni::fabric::BaseDataType::eToken, 1, 1, omni::fabric::AttributeRole::eNone);
const omni::fabric::Type _worldExtent(omni::fabric::BaseDataType::eDouble, 6, 0, omni::fabric::AttributeRole::eNone);
const omni::fabric::Type _worldOrientation(omni::fabric::BaseDataType::eFloat, 4, 0, omni::fabric::AttributeRole::eQuaternion);
const omni::fabric::Type _worldPosition(omni::fabric::BaseDataType::eDouble, 3, 0, omni::fabric::AttributeRole::eNone);
const omni::fabric::Type _worldScale(omni::fabric::BaseDataType::eFloat, 3, 0, omni::fabric::AttributeRole::eVector);
const omni::fabric::Type _worldVisibility(omni::fabric::BaseDataType::eBool, 1, 0, omni::fabric::AttributeRole::eNone);
const omni::fabric::Type _localMatrix(omni::fabric::BaseDataType::eDouble, 16, 0, omni::fabric::AttributeRole::eMatrix);
const omni::fabric::Type _worldMatrix(omni::fabric::BaseDataType::eDouble, 16, 0, omni::fabric::AttributeRole::eMatrix);

}
// clang-format on
Loading

0 comments on commit 397c1db

Please sign in to comment.