SteamVR
28 个评价
Exporting models from Blender
由 Rectus 制作
This guide shows how to export and upload models from Blender to the SteamVR Workshop.

The guide assumes you have a textured and U/V mapped model ready for use.


Note: This guide is out of date. SteamVR does not support direct import of meshes anymore. See the documentation for SteamVR Home for instuctions to make your own Environments.
https://developer.valvesoftware.com/wiki/SteamVR/Environments/

My guide on how to import models from Blender:
http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=890780029
   
奖励
收藏
已收藏
取消收藏
Preparing the model
Before exporting the model, we need to make sure it is in a format suited for SteamVR.

Arrange you meshes into a single object, and scale it so that the units are represented as meters.

SteamVR only supports a single material per model, and any lighting needs to be pre-baked into the texture. Make sure your object only has one material, and that it has the texture file assigned to it.



If your model is made up of multiple materials, you can duplicate the object, U/V map it to a single space, and bake textures from the old object(s) to the new object. Save the texture as a PNG file and replace the materials of the new object with a new one with the texture assigned to it.



Exporting to .obj
To export your object, select it, and select Wavefront (.obj) from the File -> export menu at the top left.



Select the Selection Only option, and the Smoothing Groups option if you are using the Edge Split modifier. The other options can be left to their default settings in most cases.

Save the .obj file in the same directory as your .blend and texture file.


IMPORTANT!
Move or copy the .obj and .mtl files the exporter created into an empty directory, along with the texture file. The Workshop uploader uploads everything from the directory the .obj file is in, so be sure to keep it clean of anything you don't want to make public.

Uploading to the Workshop
Note: As of writing, the ability to upload models is only available in the beta version of SteamVR.

From the SteamVR dropdown menu select Workshop and Upload New.



Select the model type from the dropdown, and fill in the fields as needed. Select the .obj file for the File field, and add a thumbnail image. Make sure to set the visibility to Private (it can be changed from the Workshop page) so that you can test and verify that the model works before releasing it. Click the Submit button to upload your model to the Workshop.



To verify that all files uploaded correctly, subscribe to the model and navigate to the \Steam\SteamApps\workshop\content\250820\ directory. All subscribed items will appear as subdirectories. Find your item and verify that all files are present. The thumbnail and a .json metadata file should also be there.
21 条留言
Joybutton 2017 年 6 月 19 日 上午 8:09 
That would be nice! I don't know if you ever tried my Mad Scientist controller with the custom animations (folks really dig the scroll wheel) but I felt I pulled as much from that scripting as I could. I even found functions that were removed because the default controller didn't use them. If the add it back and the full scripting is available there's some crazy stuff that could be done.
Rectus  [作者] 2017 年 6 月 18 日 下午 12:14 
Yeah, hopefully they'll add support for them soon. On the plus side, once thye do, you won't need to bake in lighting any more, and can use PBR materials and possibly scripting to add extra features to the hands.
Joybutton 2017 年 6 月 18 日 上午 11:56 
Bummed by this as well. These guides let me make the controllers I did and it seemed a wasted of time and effort on the part of both Valve and the community to take them away. Would love to see them in VR Home instead of only the default controller or hands.
Rectus  [作者] 2017 年 6 月 18 日 上午 11:51 
Valve removed support for custom controllers when they added SteamVR home. They said they were working on adding it back though.
Pixel 2017 年 6 月 18 日 上午 10:42 
Don´t have any more an option to upload a controller skin ? how to update a custom controller i have made and still with a minor problem an a made the correction?
Joybutton 2016 年 7 月 22 日 上午 10:33 
Great tips! Subscribing for future reference.
Rectus  [作者] 2016 年 7 月 17 日 下午 1:43 
And to attach the material to the model, add it to the objects material slots, got to edit mode and select all the faces and hit Assign.
Rectus  [作者] 2016 年 7 月 17 日 下午 1:41 
At least in Blender,the .obj exporter will use whatever image texture is assigned to the material of the model.
Killer in Exile 2016 年 7 月 17 日 下午 1:24 
I'm a day one noob as well, and Zulubo Productions tutorial is missing a step between part 1 and 2, I now I'v messed up on the material and texture but I don't know how to properly attach the two to my model (object).
Rectus  [作者] 2016 年 7 月 17 日 下午 12:57 
Good to know. At least that's a big budget. Too bad there normal maps don't work (not that they would do much without lighting).