Skip to content

Commit

Permalink
Blast SDK 5.0.1 - PhysX SDK 5.2.1 (33015808)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoub-belarbi authored and preist-nvidia committed Jun 29, 2023
1 parent 93b6c25 commit 8f6cf9c
Show file tree
Hide file tree
Showing 703 changed files with 27,161 additions and 31,034 deletions.
2 changes: 1 addition & 1 deletion blast/VERSION.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.0.0
5.0.1
4 changes: 2 additions & 2 deletions blast/deps/repo-deps.packman.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<project toolsVersion="5.0">
<dependency name="repo_man" linkPath="../_repo/deps/repo_man">
<package name="repo_man" version="0.4.10" />
<package name="repo_man" version="1.37.0" />
</dependency>
<dependency name="repo_build" linkPath="../_repo/deps/repo_build" tags="non-redist">
<package name="repo_build" version="0.25.1" />
<package name="repo_build" version="0.44.4" />
</dependency>
</project>
6 changes: 6 additions & 0 deletions blast/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [5.0.1] - 22-June-2023

### Bugfixes
- Use proper constructors for NvTransform and NvVec3 to avoid using garbage data


## [5.0.0] - 23-Jan-2023

### Changes
Expand Down
2 changes: 1 addition & 1 deletion blast/repo.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off

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

:Success
Expand Down
2 changes: 1 addition & 1 deletion blast/repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -e
SCRIPT_DIR=$(dirname ${BASH_SOURCE})
cd "$SCRIPT_DIR"

exec "tools/packman/python.sh" tools/repoman/repoman.py $@
exec "tools/packman/python.sh" tools/repoman/repoman.py "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ float BlastBondGeneratorImpl::processWithMidplanes(TriangleProcessor* trProcesso
const float maxSeparation = maxRelSeparation * std::sqrt(std::max(aBounds.getExtents().magnitudeSquared(), bBounds.getExtents().magnitudeSquared()));

Separation separation;
if (!importerHullsInProximityApexFree(hull1p.size(), hull1p.data(), aBounds, NvTransform(),
if (!importerHullsInProximityApexFree(hull1p.size(), hull1p.data(), aBounds, NvTransform(NvIdentity),
NvVec3(1, 1, 1), hull2p.size(), hull2p.data(), bBounds,
NvTransform(), NvVec3(1, 1, 1), 2.0f * maxSeparation, &separation))
NvTransform(NvIdentity), NvVec3(1, 1, 1), 2.0f * maxSeparation, &separation))
{
return 0.0f;
}
Expand Down Expand Up @@ -917,15 +917,15 @@ int32_t BlastBondGeneratorImpl::createBondForcedInternal(const std::vector<NvVec

TriangleProcessor trProcessor;
Separation separation;
importerHullsInProximityApexFree(hull0.size(), hull0.data(), bound0, NvTransform(), NvVec3(1, 1, 1),
hull1.size(), hull1.data(), bound1, NvTransform(), NvVec3(1, 1, 1),
importerHullsInProximityApexFree(hull0.size(), hull0.data(), bound0, NvTransform(NvIdentity), NvVec3(1, 1, 1),
hull1.size(), hull1.data(), bound1, NvTransform(NvIdentity), NvVec3(1, 1, 1),
0.000, &separation);

if (std::isnan(separation.plane.d))
{
importerHullsInProximityApexFree(
hull0.size(), hull0.data(), bound0, NvTransform(NvVec3(0.000001f, 0.000001f, 0.000001f)), NvVec3(1, 1, 1),
hull1.size(), hull1.data(), bound1, NvTransform(), NvVec3(1, 1, 1), 0.000, &separation);
hull1.size(), hull1.data(), bound1, NvTransform(NvIdentity), NvVec3(1, 1, 1), 0.000, &separation);
if (std::isnan(separation.plane.d))
{
return 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ void trimCollisionGeometry(ConvexMeshBuilder& cmb, uint32_t chunksCount, Collisi
continue;
}
if (importerHullsInProximityApexFree(in[hull]->pointsCount, toNvShared(in[hull]->points), hullsBounds[hull],
NvTransform(), NvVec3(1, 1, 1), in[hull2]->pointsCount,
toNvShared(in[hull2]->points), hullsBounds[hull2], NvTransform(),
NvTransform(NvIdentity), NvVec3(1, 1, 1), in[hull2]->pointsCount,
toNvShared(in[hull2]->points), hullsBounds[hull2], NvTransform(NvIdentity),
NvVec3(1, 1, 1), 0.0, &params) == false)
{
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ void ExtStressSolverImpl::setAllNodesInfoFromLL(float density)
if (chunkIndex0 >= chunkCount)
{
// chunkIndex is invalid means it is static node (represents world)
m_graphProcessor->setNodeInfo(node0, 0.0f, 0.0f, NvVec3());
m_graphProcessor->setNodeInfo(node0, 0.0f, 0.0f, NvVec3(NvZero));
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions blast/tools/packman/bootstrap/configure.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:: See the License for the specific language governing permissions and
:: limitations under the License.

set PM_PACKMAN_VERSION=6.46
set PM_PACKMAN_VERSION=6.56

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

:ENSURE_7ZA
set PM_7Za_VERSION=16.02.4
set PM_7Za_VERSION=22.01-1
set PM_7Za_PATH=%PM_PACKAGES_ROOT%\7za\%PM_7ZA_VERSION%
if exist "%PM_7Za_PATH%" goto END
set PM_7Za_PATH=%PM_PACKAGES_ROOT%\chk\7za\%PM_7ZA_VERSION%
Expand Down
9 changes: 8 additions & 1 deletion blast/tools/packman/bootstrap/install_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,11 @@ def install_package(package_path, install_path):


if __name__ == "__main__":
install_package(sys.argv[1], sys.argv[2])
executable_paths = os.getenv("PATH")
paths_list = executable_paths.split(os.path.pathsep) if executable_paths else []
target_path_np = os.path.normpath(sys.argv[2])
target_path_np_nc = os.path.normcase(target_path_np)
for exec_path in paths_list:
if os.path.normcase(os.path.normpath(exec_path)) == target_path_np_nc:
raise RuntimeError(f"packman will not install to executable path '{exec_path}'")
install_package(sys.argv[1], target_path_np)
12 changes: 8 additions & 4 deletions blast/tools/packman/packman
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ else
PM_CURL_SILENT="-s -S"
PM_WGET_QUIET="--quiet"
fi
PM_PACKMAN_VERSION=6.46
PM_PACKMAN_VERSION=6.56

# This is necessary for newer macOS
if [ `uname` == 'Darwin' ]; then
Expand All @@ -42,9 +42,13 @@ export PM_INSTALL_PATH="$(get_abs_filename "$(dirname "${BASH_SOURCE}")")"
if [ -z "${PM_PACKAGES_ROOT:-}" ]; then
# Set variable temporarily in this process so that the following execution will work
if [ `uname` == 'Darwin' ]; then
export PM_PACKAGES_ROOT="/Library/Caches/packman"
export PM_PACKAGES_ROOT="${HOME}/Library/Application Support/packman-cache"
else
export PM_PACKAGES_ROOT="/var/tmp/packman"
if [ -z "${XDG_CACHE_HOME:-}" ]; then
export PM_PACKAGES_ROOT="${HOME}/.cache/packman"
else
export PM_PACKAGES_ROOT="${XDG_CACHE_HOME}/packman"
fi
fi
fi

Expand Down Expand Up @@ -151,7 +155,7 @@ if [ ! -f "$PM_MODULE" ]; then
fi

# Ensure 7za package exists:
PM_7za_VERSION=16.02.4
PM_7za_VERSION=22.01-1
export PM_7za_PATH="$PM_PACKAGES_ROOT/7za/$PM_7za_VERSION"
if [ ! -d "$PM_7za_PATH" ]; then
export PM_7za_PATH="$PM_PACKAGES_ROOT/chk/7za/$PM_7za_VERSION"
Expand Down
10 changes: 8 additions & 2 deletions blast/tools/packman/packmanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,15 @@ def get_packages_root(conf_dir: str) -> str:
root = os.path.join(drive, "packman-repo")
elif platform_name == "Darwin":
# macOS
root = "/Library/Caches/packman"
root = os.path.join(
os.path.expanduser("~"), "/Library/Application Support/packman-cache"
)
elif platform_name == "Linux":
root = "/var/tmp/packman"
try:
cache_root = os.environ["XDG_HOME_CACHE"]
except KeyError:
cache_root = os.path.join(os.path.expanduser("~"), ".cache")
return os.path.join(cache_root, "packman")
else:
raise RuntimeError(f"Unsupported platform '{platform_name}'")
# make sure the path exists:
Expand Down
Loading

0 comments on commit 8f6cf9c

Please sign in to comment.