Skip to content

Instantly share code, notes, and snippets.

@ciwolsey
Last active January 26, 2020 10:53
Show Gist options
  • Save ciwolsey/a72292985ca47e4efbd823cae2cebc26 to your computer and use it in GitHub Desktop.
Save ciwolsey/a72292985ca47e4efbd823cae2cebc26 to your computer and use it in GitHub Desktop.
ViveSpray 2: Custom Object Loading

ViveSpray 2: Custom Object Loading

About

ViveSpray 2 allows for basic loading and painting of .obj files. Some points of note:

  • Only ".obj" is supported
  • The model must be UV mapped outside of ViveSpray
  • The model must only contain triangles and quads (n-gons may work but it's not supported right now)
  • Multiple objects are supported but nesting of objects isn't (but it still may work)
  • Each object within your .obj can be optionally assigned a paintable texture (2k or 4k depending on in-game options)
  • One material per object will be assigned

Using your own custom object

  1. Make sure you've started ViveSpray 2 at least once to allow it to create the appropriate directories in your documents folder. Once this has been done you'll find various directories under "Documents/ViveSpray 2/".
  2. Place your .obj file in "Documents/ViveSpray 2/Objects/".
  3. Head into a game and select "Custom (Object Painter)" from the new session menu.

New Session

  1. Your object should appear on the object list menu, clicking it will load the object and allow you to paint on it.

Existing / Example Objects

These can be extracted to "Documents/ViveSpray 2/Objects/" and act as fun objects to paint on as well as examples of how to create paintable objects for ViveSpray.

These objects also include some base layer textures - a feature that will be documented shortly.

If you have an object you'd like to contribute to this list or questions either email vivespray@gmail.com or contact me directly on ViveSpray Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment