Skip to content

A file format plugin for OpenUSD that reads voxel formats such as Magicavoxel (vox) and slab6 (kvx)

Notifications You must be signed in to change notification settings

nukep/voxel-usd-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

voxel-usd-plugin

A USD file format plugin for reading voxel models. MagicaVoxel (.vox) and slab6 (.kvx) are currently implemented.

Goals

  • Build for Houdini
  • Add variantsets to select between Mesh vs PointInstancer
  • Set extents
  • Build for Maya
  • Implement animations (e.g. for MagicaVoxel)
  • Implement MagicaVoxel materials
  • MAYBE: Implement a writer to kvx and/or vox
  • MAYBE: Support OpenVDB volumes

How to use

You can pretty much have the plugin installed and open .vox and .kvx files as you would any .usd file.

usdview cars.vox

If you want to save out the resulting prims as a .usd file, you can do this by flattening it with usdcat:

usdcat -f cars.vox -o cars.usdc

Building standalone

You'll need CMake and Meson installed.

OpenUSD should be installed as a dependency in your configured prefix path (such as /usr).

To build and install:

mkdir build
cd build
meson setup ..
meson compile
meson install

Building for Houdini

It's the same as above, but replace the setup line with:

meson setup .. -Ddcc=houdini --cmake-prefix-path=/opt/hfs20.5/toolkit

where the path to Houdini is whichever version's on your machine.

About

A file format plugin for OpenUSD that reads voxel formats such as Magicavoxel (vox) and slab6 (kvx)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages