-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BIFROST-9303 - version 1.2.1 changes matching Bifrost 2.8.0.0
- Loading branch information
Showing
149 changed files
with
56,405 additions
and
13,218 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 @@ | ||
#- | ||
#***************************************************************************** | ||
# Copyright 2023 Autodesk, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
#***************************************************************************** | ||
#+ | ||
|
||
if(IS_BIFUSD_STANDALONE) | ||
include(${BIFROST_LOCATION}/sdk_preview/cmake/setup.cmake) | ||
endif() | ||
find_package(BifrostPreview REQUIRED SDK) | ||
|
||
add_subdirectory(src) | ||
add_subdirectory(test) |
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,48 @@ | ||
|
||
## Bifrost Hydra (Experimental) | ||
Requires a version of the Bifrost SDK that is not released yet. | ||
Register a new Hydra Generative Procedural plugin capable of running a Bifrost Graph that will output | ||
Bifrost geometries to the Hydra Scene Index without using any scene delegate. | ||
In your Hydra based application (usdview for example), the following variables are needed: | ||
``` | ||
export BIFROST_LOCATION=<bifrost path> | ||
export BIFROST_LIB_CONFIG_FILES=<install directory path>/bifrost_hydra_translation.json | ||
export HD_ENABLE_SCENE_INDEX_EMULATION=1 | ||
export USDIMAGINGGL_ENGINE_ENABLE_SCENE_INDEX=1 | ||
export HDGP_INCLUDE_DEFAULT_RESOLVER=1 | ||
``` | ||
|
||
Here is a USD file example showing how to setup the Generative Procedural for Bifrost. | ||
``` | ||
#usda 1.0 | ||
( | ||
def Xform "Mia" | ||
{ | ||
def "Head" ( | ||
prepend references = @mia_young.usd@</head> | ||
) | ||
{ | ||
} | ||
def GenerativeProcedural "BifrostGraph" ( | ||
prepend apiSchemas = ["HydraGenerativeProceduralAPI"] | ||
) | ||
{ | ||
# The Generative Procedural Plugin name | ||
token primvars:hdGp:proceduralType = "BifrostGraph" | ||
# The full name of the Bifrost compound or graph to execute in Hydra | ||
token primvars:bifrost:graph = "Groom::create_clumpy_hairs" | ||
# The inputs parameters must use the same names as the Bifrost | ||
# compound input ports with an additional "primvars:" prefix | ||
prepend rel primvars:mesh = </Mia/Head/scalp> | ||
float primvars:hair_count = 9000000 | ||
float primvars:curl_frequency = 6.5 | ||
# The output of the Bifrost compound you want to render in Hydra | ||
string primvars:bifrost:output = "hairs" | ||
} | ||
} | ||
``` | ||
There are several USD files in `test/BifrostHydra/resources` following such setup. |
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,78 @@ | ||
#- | ||
#***************************************************************************** | ||
# Copyright 2023 Autodesk, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
#***************************************************************************** | ||
#+ | ||
|
||
set(hd_Engine_headers | ||
Container.h | ||
Engine.h | ||
JobTranslationData.h | ||
Parameters.h | ||
Requirement.h | ||
Runtime.h | ||
ValueTranslationData.h | ||
) | ||
|
||
bifusd_install_headers( | ||
hdEngineHeadersInstall | ||
SOURCE ${CMAKE_CURRENT_SOURCE_DIR} | ||
FILES ${hd_Engine_headers} | ||
DESTINATION "BifrostHydra/Engine" | ||
) | ||
|
||
set(public_libs | ||
Amino::SDK::Preview | ||
BifrostGraph::Executor::Preview | ||
hdEngineHeadersInstall | ||
) | ||
|
||
set(private_libs | ||
Amino::Core | ||
Bifrost::Object | ||
hd | ||
BifrostHdTranslators | ||
) | ||
|
||
set(src_files | ||
Container.cpp | ||
Engine.cpp | ||
JobTranslationData.cpp | ||
Parameters.cpp | ||
Requirement.cpp | ||
Runtime.cpp | ||
ValueTranslationData.cpp | ||
) | ||
|
||
bifusd_set_extra_rpaths(extra_rpaths) | ||
|
||
bifusd_create_shared_lib( | ||
BifrostHdEngine "BIFROST_HD_ENGINE_BUILD_DLL" # TODO: add export file | ||
PUBLIC_INSTALL | ||
PUBLIC_DEFINITIONS $<${BIFUSD_IS_MSC}: BOOST_LIB_TOOLSET="vc141"> | ||
PRIVATE_DEFINITIONS $<${BIFUSD_IS_DEBUG}: TBB_USE_DEBUG BOOST_DEBUG_PYTHON BOOST_LINKING_PYTHON> | ||
|
||
PRIVATE_OPTIONS $<${BIFUSD_IS_MSC}:/wd4251 /wd4273> | ||
$<${BIFUSD_IS_GCC}: -Wno-deprecated -Wno-unused-macros> | ||
$<${BIFUSD_IS_CLANG}: -Wno-deprecated -Wno-unused-macros> | ||
|
||
SRC_FILES ${src_files} | ||
PUBLIC_LINK_LIBS ${public_libs} | ||
PRIVATE_LINK_LIBS ${private_libs} | ||
EXTRA_RPATH ${extra_rpaths} | ||
) | ||
|
||
add_subdirectory(translation) | ||
add_subdirectory(config) |
Oops, something went wrong.