Skip to content

v23.11.42 | Swift on Server

Compare
Choose a tag to compare
@furby-tm furby-tm released this 12 Jul 17:49
· 106 commits to main since this release

What's New

🎧swift on.

SwiftUSD v23.11.42

Fix a iOS build error related to incorrectly trying to link OpenGL.

Changelog

  • Fixes all threading issues which caused crashing when reading and writing binary usd files (.usd, .usdc).
  • Fix a iOS build error related to incorrectly trying to link OpenGL (thanks @felfoldy!).
  • Supports building SwiftUSD with projects like Vapor for Swift on Server.
  • Allow creation/retrieval of USD stages from stage cache.
    • See this working example to learn how to work with UsdStageCache in Swift.
  • Examples application (beginning a repository of example use cases).
  • Various initial work around creating an OpenUSD version upgrader/downgrader.
  • Begin work for allowing proper subclassing and inheritance overrides of C++ virtual methods from Swift.
  • Adds a new optional parameter to Pixar.Bundler, in order to allow for explicit runtime auto-installation of all USD plugins when setting installPlugins: true (a requirement on iOS and visionOS devices)
    // usage like so:
    Pixar.Bundler.shared.setup(.resources, installPlugins: true)

SwiftUSD Contributors

Usage

To use this release of Pixar's USD in your swift project, add the following to the dependencies section in your Package.swift file:

// swift-tools-version: 5.10

dependencies: [
  .package(url: "https://github.com/wabiverse/SwiftUSD.git", from: "23.11.42")
]

The Wabi Foundation uses SwiftUSD to build the Kraken metaversal creation suite, you can always find an up to date configuration to use for your own Swift project here.



Linux

For Linux, these are the only dependencies required, as MetaverseKit provides everything else.

Tip

If you are on a distro like Ubuntu there is a good chance you already have most of these installed.

Dependency CentOS Ubuntu
Boost boost-devel libboost-all-dev
Python python3-devel python3-dev
BZ2 bzip2-devel libbz2-dev
ZLib zlib-devel zlib1g-dev
FreeGLUT freeglut-devel freeglut3-dev
DEFLATE libdeflate-devel libdeflate-dev
Expat libexpat-devel libexpat1-dev
Xcursor libXcursor-devel libxcursor-dev
Xt libXt-devel libxt-dev
Xi libXi-devel libxi-dev
Xinerama libXinerama-devel libxinerama-dev
Xrandr libXrandr-devel libxrandr-dev