v1.5.1 | MatX, VDB, OSD, Ptex
What's New
🎧 swift on.
Important
This issues a fix for OIIO, which was incorrectly hardcoded to .dynamic
linking, remove so SPM can auto determine the best linking strategy. Issues a fix for any includes which are bringing in Metal or DXD3, neither of these should be present on Linux, as well as a duplicate python library for PyImath.
import MaterialX |
import OpenVDB |
import OpenSubdiv |
import Ptex |
---|---|---|---|
- You may now successfully import MaterialX, OpenVDB, OpenSubdiv, and Ptex directly into the Swift programming language and begin to consume these APIs directly, made possible by Swift 5.9's C++ interoperability feature.
Usage
Add MetaverseKit as a package dependency to your own Swift project's Package.swift
file:
// swift-tools-version: 5.9
dependencies: [
.package(url: "https://github.com/wabiverse/MetaverseKit", from: "1.5.1")
]
Linux
For Linux, these are the only dependencies required, as MetaverseKit provides everything else:
Dependency | CentOS | Ubuntu |
---|---|---|
Boost | boost-devel | libboost-all-dev |
Python | python3-devel | python3-dev |
BZ2 | bzip2-devel | libbz2-dev |
ZLib | zlib-devel | zlib1g-dev |