Skip to content

Commit 8f6cf9c

Browse files
ayoub-belarbipreist-nvidia
authored andcommitted
Blast SDK 5.0.1 - PhysX SDK 5.2.1 (33015808)
1 parent 93b6c25 commit 8f6cf9c

File tree

703 files changed

+27161
-31034
lines changed

Some content is hidden

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

703 files changed

+27161
-31034
lines changed

blast/VERSION.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.0
1+
5.0.1

blast/deps/repo-deps.packman.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<project toolsVersion="5.0">
22
<dependency name="repo_man" linkPath="../_repo/deps/repo_man">
3-
<package name="repo_man" version="0.4.10" />
3+
<package name="repo_man" version="1.37.0" />
44
</dependency>
55
<dependency name="repo_build" linkPath="../_repo/deps/repo_build" tags="non-redist">
6-
<package name="repo_build" version="0.25.1" />
6+
<package name="repo_build" version="0.44.4" />
77
</dependency>
88
</project>

blast/docs/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [5.0.1] - 22-June-2023
4+
5+
### Bugfixes
6+
- Use proper constructors for NvTransform and NvVec3 to avoid using garbage data
7+
8+
39
## [5.0.0] - 23-Jan-2023
410

511
### Changes

blast/repo.bat

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

3-
call "%~dp0tools\packman\python.bat" %~dp0tools\repoman\repoman.py %*
3+
call "%~dp0tools\packman\python.bat" "%~dp0tools\repoman\repoman.py" %*
44
if %errorlevel% neq 0 ( goto Error )
55

66
:Success

blast/repo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -e
55
SCRIPT_DIR=$(dirname ${BASH_SOURCE})
66
cd "$SCRIPT_DIR"
77

8-
exec "tools/packman/python.sh" tools/repoman/repoman.py $@
8+
exec "tools/packman/python.sh" tools/repoman/repoman.py "$@"

blast/source/sdk/extensions/authoring/NvBlastExtAuthoringBondGeneratorImpl.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ float BlastBondGeneratorImpl::processWithMidplanes(TriangleProcessor* trProcesso
303303
const float maxSeparation = maxRelSeparation * std::sqrt(std::max(aBounds.getExtents().magnitudeSquared(), bBounds.getExtents().magnitudeSquared()));
304304

305305
Separation separation;
306-
if (!importerHullsInProximityApexFree(hull1p.size(), hull1p.data(), aBounds, NvTransform(),
306+
if (!importerHullsInProximityApexFree(hull1p.size(), hull1p.data(), aBounds, NvTransform(NvIdentity),
307307
NvVec3(1, 1, 1), hull2p.size(), hull2p.data(), bBounds,
308-
NvTransform(), NvVec3(1, 1, 1), 2.0f * maxSeparation, &separation))
308+
NvTransform(NvIdentity), NvVec3(1, 1, 1), 2.0f * maxSeparation, &separation))
309309
{
310310
return 0.0f;
311311
}
@@ -917,15 +917,15 @@ int32_t BlastBondGeneratorImpl::createBondForcedInternal(const std::vector<NvVec
917917

918918
TriangleProcessor trProcessor;
919919
Separation separation;
920-
importerHullsInProximityApexFree(hull0.size(), hull0.data(), bound0, NvTransform(), NvVec3(1, 1, 1),
921-
hull1.size(), hull1.data(), bound1, NvTransform(), NvVec3(1, 1, 1),
920+
importerHullsInProximityApexFree(hull0.size(), hull0.data(), bound0, NvTransform(NvIdentity), NvVec3(1, 1, 1),
921+
hull1.size(), hull1.data(), bound1, NvTransform(NvIdentity), NvVec3(1, 1, 1),
922922
0.000, &separation);
923923

924924
if (std::isnan(separation.plane.d))
925925
{
926926
importerHullsInProximityApexFree(
927927
hull0.size(), hull0.data(), bound0, NvTransform(NvVec3(0.000001f, 0.000001f, 0.000001f)), NvVec3(1, 1, 1),
928-
hull1.size(), hull1.data(), bound1, NvTransform(), NvVec3(1, 1, 1), 0.000, &separation);
928+
hull1.size(), hull1.data(), bound1, NvTransform(NvIdentity), NvVec3(1, 1, 1), 0.000, &separation);
929929
if (std::isnan(separation.plane.d))
930930
{
931931
return 1;

blast/source/sdk/extensions/authoring/NvBlastExtAuthoringCollisionBuilderImpl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ void trimCollisionGeometry(ConvexMeshBuilder& cmb, uint32_t chunksCount, Collisi
7373
continue;
7474
}
7575
if (importerHullsInProximityApexFree(in[hull]->pointsCount, toNvShared(in[hull]->points), hullsBounds[hull],
76-
NvTransform(), NvVec3(1, 1, 1), in[hull2]->pointsCount,
77-
toNvShared(in[hull2]->points), hullsBounds[hull2], NvTransform(),
76+
NvTransform(NvIdentity), NvVec3(1, 1, 1), in[hull2]->pointsCount,
77+
toNvShared(in[hull2]->points), hullsBounds[hull2], NvTransform(NvIdentity),
7878
NvVec3(1, 1, 1), 0.0, &params) == false)
7979
{
8080
continue;

blast/source/sdk/extensions/stress/NvBlastExtStressSolver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ void ExtStressSolverImpl::setAllNodesInfoFromLL(float density)
12511251
if (chunkIndex0 >= chunkCount)
12521252
{
12531253
// chunkIndex is invalid means it is static node (represents world)
1254-
m_graphProcessor->setNodeInfo(node0, 0.0f, 0.0f, NvVec3());
1254+
m_graphProcessor->setNodeInfo(node0, 0.0f, 0.0f, NvVec3(NvZero));
12551255
}
12561256
else
12571257
{

blast/tools/packman/bootstrap/configure.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
:: See the License for the specific language governing permissions and
1313
:: limitations under the License.
1414

15-
set PM_PACKMAN_VERSION=6.46
15+
set PM_PACKMAN_VERSION=6.56
1616

1717
:: Specify where packman command is rooted
1818
set PM_INSTALL_PATH=%~dp0..
@@ -138,7 +138,7 @@ if %errorlevel% neq 0 (
138138
del "%TARGET%"
139139

140140
:ENSURE_7ZA
141-
set PM_7Za_VERSION=16.02.4
141+
set PM_7Za_VERSION=22.01-1
142142
set PM_7Za_PATH=%PM_PACKAGES_ROOT%\7za\%PM_7ZA_VERSION%
143143
if exist "%PM_7Za_PATH%" goto END
144144
set PM_7Za_PATH=%PM_PACKAGES_ROOT%\chk\7za\%PM_7ZA_VERSION%

blast/tools/packman/bootstrap/install_package.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,11 @@ def install_package(package_path, install_path):
144144

145145

146146
if __name__ == "__main__":
147-
install_package(sys.argv[1], sys.argv[2])
147+
executable_paths = os.getenv("PATH")
148+
paths_list = executable_paths.split(os.path.pathsep) if executable_paths else []
149+
target_path_np = os.path.normpath(sys.argv[2])
150+
target_path_np_nc = os.path.normcase(target_path_np)
151+
for exec_path in paths_list:
152+
if os.path.normcase(os.path.normpath(exec_path)) == target_path_np_nc:
153+
raise RuntimeError(f"packman will not install to executable path '{exec_path}'")
154+
install_package(sys.argv[1], target_path_np)

blast/tools/packman/packman

+8-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ else
2222
PM_CURL_SILENT="-s -S"
2323
PM_WGET_QUIET="--quiet"
2424
fi
25-
PM_PACKMAN_VERSION=6.46
25+
PM_PACKMAN_VERSION=6.56
2626

2727
# This is necessary for newer macOS
2828
if [ `uname` == 'Darwin' ]; then
@@ -42,9 +42,13 @@ export PM_INSTALL_PATH="$(get_abs_filename "$(dirname "${BASH_SOURCE}")")"
4242
if [ -z "${PM_PACKAGES_ROOT:-}" ]; then
4343
# Set variable temporarily in this process so that the following execution will work
4444
if [ `uname` == 'Darwin' ]; then
45-
export PM_PACKAGES_ROOT="/Library/Caches/packman"
45+
export PM_PACKAGES_ROOT="${HOME}/Library/Application Support/packman-cache"
4646
else
47-
export PM_PACKAGES_ROOT="/var/tmp/packman"
47+
if [ -z "${XDG_CACHE_HOME:-}" ]; then
48+
export PM_PACKAGES_ROOT="${HOME}/.cache/packman"
49+
else
50+
export PM_PACKAGES_ROOT="${XDG_CACHE_HOME}/packman"
51+
fi
4852
fi
4953
fi
5054

@@ -151,7 +155,7 @@ if [ ! -f "$PM_MODULE" ]; then
151155
fi
152156

153157
# Ensure 7za package exists:
154-
PM_7za_VERSION=16.02.4
158+
PM_7za_VERSION=22.01-1
155159
export PM_7za_PATH="$PM_PACKAGES_ROOT/7za/$PM_7za_VERSION"
156160
if [ ! -d "$PM_7za_PATH" ]; then
157161
export PM_7za_PATH="$PM_PACKAGES_ROOT/chk/7za/$PM_7za_VERSION"

blast/tools/packman/packmanconf.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,15 @@ def get_packages_root(conf_dir: str) -> str:
5555
root = os.path.join(drive, "packman-repo")
5656
elif platform_name == "Darwin":
5757
# macOS
58-
root = "/Library/Caches/packman"
58+
root = os.path.join(
59+
os.path.expanduser("~"), "/Library/Application Support/packman-cache"
60+
)
5961
elif platform_name == "Linux":
60-
root = "/var/tmp/packman"
62+
try:
63+
cache_root = os.environ["XDG_HOME_CACHE"]
64+
except KeyError:
65+
cache_root = os.path.join(os.path.expanduser("~"), ".cache")
66+
return os.path.join(cache_root, "packman")
6167
else:
6268
raise RuntimeError(f"Unsupported platform '{platform_name}'")
6369
# make sure the path exists:

0 commit comments

Comments
 (0)