Skip to content

Commit 93fd906

Browse files
authored
Merge pull request #27 from frenchdog/feature/BIFROST-10390/update_for_bifrost2_11_release
BIFROST-10390 Update for Bifrost 2.11.0.0
2 parents c1a6fea + 4dadc10 commit 93fd906

File tree

336 files changed

+55803
-3437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+55803
-3437
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#
2+
# Ignore trailing whitespace check
3+
#
4+
*.md -whitespace

CHANGELOG.md

+49-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
## [1.3.0] - 2024-07-29 (Bifrost 2.11)
2+
3+
### Build
4+
- BIFROST-10233 - Update Bifrost Hydra to support USD 24.05
5+
6+
7+
### Feature
8+
- BIFROST-10457 - Add _get_prim_attribute_connections_ operator
9+
- BIFROST-9995 - Add USD Skeleton graphs to the Bifrost Graph Browser
10+
- BIFROST-10104 - Add new USD icons
11+
- BIFROST-10105 - BifrostUSDExamples updates
12+
13+
Create prim type from Maya USD attribute "USD_typeName"
14+
If the Maya attribute "USD_typeName" is present on the DAG node, it will be used to set the prim type in the imported selection.
15+
- BIFROST-10105 - Create variants from Maya selection
16+
17+
Add "Create New Stage with Variants from Maya Selection" menu in Bifrost USD > Create.
18+
Add "Import Maya Variants to Stage" menu in Bifrost USD > Modify.
19+
- BIFROST-10016 - Expose applied_schema_names on the "define prim" nodes
20+
- BIFROST-10356 - New PointInstancer nodes and menu
21+
22+
New nodes:
23+
- _delete_point_instances_
24+
- _get_usd_point_instancer_attributes_
25+
- _replace_point_instancer_proto_
26+
- _set_point_instances_invisible_
27+
- _usd_point_instancer_scope_
28+
29+
New menus:
30+
- Bifrost USD > Modify > Hide Selected PointInstances
31+
- Bifrost USD > Modify > Add Point Instancer Scope
32+
33+
Move _define_usd_point_instancer_ into _USD::PointInstancer_ namespace.
34+
35+
- Add _create_mesh_from_usd_geom_subset_ compound (Experimental)
36+
37+
38+
### Bugfix
39+
- EMSUSD-1195 - Disable UFE observer if Maya API version is less than 2025.2 to avoid crash in the BifrostUsdExamples plugin.
40+
41+
142
## [1.2.3] - 2024-04-17 (Bifrost 2.10)
243

344
### Build
@@ -48,6 +89,7 @@
4889
- BIFROST-9056 - Collapse ports grouping on the _define_usd_prim_attribute_ compound.
4990
- BIFROST-9334 - Remove compound duplicate in _save_usd_stage.json_ file.
5091

92+
5193
## [1.2.2] - 2024-03-27 (Bifrost 2.9)
5294

5395
### Build
@@ -73,6 +115,7 @@
73115
- BIFROST-9334 - Fix save_usd_stage compound errors when current edit target is not the root layer
74116
- Update the _save_usd_stage_ compound. It is now setting the target layer to the root layer before saving and then restore the current target (using the new get_edit_layer operator).
75117

118+
76119
## [1.2.1] - 2023-11-15 (Bifrost 2.8)
77120

78121
### Build
@@ -184,9 +227,9 @@
184227
- BIFROST-8426 - Inconsistent UI in define_usd_prim
185228

186229
- BIFROST-8273 - fix sublayers not saved if relative_path is on
187-
- Use the layer's save file path (m_filePath) instead of the sdfLayerIdentifier in the recursive call to Layer::exportToFile().
188-
- Add new more complete unit test for export_layer_to_file() that covers multiple cases for relative and absolute paths to sublayers.
189-
- removed call to changeDir() that has side effect and is not required anymore for unit tests.
230+
- Use the layer's save file path (m_filePath) instead of the sdfLayerIdentifier in the recursive call to Layer::exportToFile().
231+
- Add new more complete unit test for export_layer_to_file() that covers multiple cases for relative and absolute paths to sublayers.
232+
- removed call to changeDir() that has side effect and is not required anymore for unit tests.
190233

191234

192235
## [1.1.0] - 2023-03-29 (Bifrost 2.7)
@@ -204,12 +247,12 @@
204247
### Feature
205248

206249
- BIFROST-7955 - Add applied schema nodes
207-
- add_applied_schema: This node adds the applied API schema name to the apiSchema metadata of the prim
208-
- remove_applied_schema: This node removes the applied API schema name from the apiSchema metadata of the prim
250+
- add_applied_schema: This node adds the applied API schema name to the apiSchema metadata of the prim
251+
- remove_applied_schema: This node removes the applied API schema name from the apiSchema metadata of the prim
209252

210253

211254
### Bugfix
212255

213256
## [1.0.0] - 2022-12-12 (Bifrost 2.6)
214257

215-
- Initial release
258+
- Initial release

CMakeLists.txt

+1-5
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,12 @@ set(BIFUSD_PRODUCT_NAME "\"Bifrost USD pack\"")
7070
#==============================================================================
7171
# This target and property needs to be forward declared before utils.cmake.
7272
# because bifusd_header_parser refers to them. More deps/properties are added
73-
# to the target later.
73+
# to the target later, including in setup.cmake.
7474
#
7575
if( NOT TARGET ${BIFUSD_PACKAGE_NAME}_config_info)
7676
add_custom_target(${BIFUSD_PACKAGE_NAME}_config_info)
7777
endif()
7878

79-
# Add property to collect the list of generated json files.
80-
set_target_properties(${BIFUSD_PACKAGE_NAME}_config_info PROPERTIES
81-
BIFROST_USD_PACK_ALL_JSON_FILES "")
82-
8379
#==============================================================================
8480
# General setup
8581
# This defines functions and macros that used later on; in particular

SECURITY.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Security
2+
3+
### Reporting Security Issues
4+
The bifrost-usd team and community take security bugs in bifrost-usd seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
5+
6+
### Reporting a Security Vulnerability to Autodesk
7+
This vulnerability disclosure policy applies to any vulnerabilities you are considering reporting to Autodesk.
8+
We recommend reading this vulnerability disclosure policy fully before you report a vulnerability and always acting in compliance with it.
9+
We value those who take the time and effort to report security vulnerabilities according to this policy. However, we do not offer monetary rewards for vulnerability disclosures.
10+
If you believe you have found a security vulnerability relating to the Autodesk's systems or products, please submit a vulnerability report to [Autodesk HackerOne](https://hackerone.com/autodesk) program or [email protected]. Otherwise, submit a report an incident at [Autodesk Trust Center](https://www.autodesk.com/trust/security).
11+
In your report please include details of:
12+
- The software package, website, IP or page where the vulnerability can be observed.
13+
- A brief description of the type of vulnerability, for example; "XSS vulnerability".
14+
- Steps to reproduce. These should be a benign, non-destructive, proof of concept. This helps to ensure that the report can be triaged quickly and accurately. It also reduces the likelihood of duplicate reports, or malicious exploitation of some vulnerabilities, such as sub-domain takeovers.
15+
16+
The bifrost-usd team team will send a response indicating the next steps in handling your report. After the initial reply to your report, the security team will keep you informed of the progress towards a fix and full announcement, and may ask for additional information or guidance.
17+
18+
### Responsible Disclosure
19+
We appreciate the responsible disclosure of security vulnerabilities. Please allow us a reasonable amount of time to address the issue before making it public.
20+
21+
### Supported Versions
22+
**Version**|**Supported**
23+
:-----:|:-----:
24+
1.0.x|:white\_check\_mark:
25+
0.9.x|:x:
26+
27+
### Learning More About Security
28+
To learn more about Autodesk Security, please see the [Autodesk Trust Center](https://www.autodesk.com/trust/security).
29+
30+
### Receiving Security Information From Autodesk
31+
Technical security information about our products and services is distributed through several channels.
32+
- Autodesk distributes information to customers about security vulnerabilities via https://autodesk.com and [Autodesk Trust Center](https://www.autodesk.com/trust/security).
33+
- Autodesk may issue release notes and security bulletins detailing security vulnerabilities, workarounds, remediations and any indicators of compromise to aid incident response teams.

bifrost_hydra/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
## Bifrost Hydra (Experimental)
3-
Requires a version of the Bifrost SDK that is not released yet.
3+
Require the [Bifrost Executor SDK](https://help.autodesk.com/view/BIFROST/ENU/?guid=Bifrost_DevHelp_BifrostExecutorSDK_html) introduced in Bifrost 2.10.
44
Register a new Hydra Generative Procedural plugin capable of running a Bifrost Graph that will output
55
Bifrost geometries to the Hydra Scene Index without using any scene delegate.
66
In your Hydra based application (usdview for example), the following variables are needed:

bifrost_hydra/src/BifrostHdEngine/ValueTranslationData.h

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
#include <Amino/Core/Any.h>
2525

26+
#include <string>
27+
2628
namespace BifrostHd {
2729

2830
class JobTranslationData;

bifrost_hydra/src/BifrostHdTranslators/GeometryFn.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <pxr/imaging/hd/retainedDataSource.h>
3333
#include <pxr/imaging/hd/tokens.h>
3434
#include <pxr/imaging/hd/xformSchema.h>
35+
#include <pxr/pxr.h>
3536

3637
#include <iostream>
3738

@@ -338,11 +339,20 @@ HdContainerDataSourceHandle GetInstancerInstanceCategoriesDataSource() {
338339

339340
HdContainerDataSourceHandle NewPointInstancerPrimvarsDataSource(
340341
const Bifrost::Object& object) {
342+
343+
#if (PXR_VERSION >= 2405)
341344
return HdRetainedContainerDataSource::New(
345+
HdInstancerTokens->instanceRotations, BuildInstancerRotateDataSource(object),
346+
HdInstancerTokens->instanceScales, BuildInstancerScaleDataSource(object),
347+
HdInstancerTokens->instanceTranslations,
348+
BuildInstancerTranslateDataSource(object));
349+
#else
350+
return HdRetainedContainerDataSource::New(
342351
HdInstancerTokens->rotate, BuildInstancerRotateDataSource(object),
343352
HdInstancerTokens->scale, BuildInstancerScaleDataSource(object),
344353
HdInstancerTokens->translate,
345354
BuildInstancerTranslateDataSource(object));
355+
#endif
346356
}
347357

348358
HdContainerDataSourceHandle BuildPointInstancerTopologyDataSource(

bifrost_hydra/test/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ set(test_files
5858
set(lib_config_files
5959
${BIFUSD_EXTRA_CONFIG_FILES}
6060
${BIFUSD_OUTPUT_ROOT_DIR}/bifrost_hydra_translation.json
61+
${BIFUSD_OUTPUT_ROOT_DIR}/usd_pack_config.json # TODO: remove when BIFROST-9995 is done.
6162
${PROJECT_SOURCE_DIR}/bifrost_hydra/test/test_bif_geo_compounds_config.json
6263
)
6364

0 commit comments

Comments
 (0)