07-03-2018 03:07 AM
Have you
ever wished you were able to put your favourite pictures on your virtual walls? Well, this is possible with the Custom Objects feature! Well, it’s not a
direct process, but I do manage to get posters in my Home, so I figured I would
share this method, in case it would interest anyone.
I'm assuming you know the basics of Unity. If you don't... well of course, you can still try ^^. Otherwise, you can ask help from someone who does.
You’ll need
the following software:
-
Oculus
Home 2 (“no sh*t!”),
-
Unity, with a free Unity account + FBX Exporter (from Unity Asset Store) OR Blender with the FBX add-on (find it in User Preferences).
-
Three.js
editor (online tool, no need to download).
-
GLTF
Converter (another online tool ; there are a few, but I suggest this one : https://blackthread.io/gltf-converter/).
Now, here
is the process to put a poster in Home.
Short version :
0) Set-up : choose the picture you want, make sure you have Unity and the FBX Exporter asset, and prepare the online tools. Create a new project in Unity, import the FBX Exporter and the picture in this project.
1) In Unity, create a single plane and put the picture as its texture. Resize the plane to get the proper proportions (don't worry about the actual size).
2) With FBX Exporter, export this object as a FBX file. You now have a FBX object and a texture file.
3) Drag those two files in a GLTF converter. This will give you a single glb file.
4) Drag this glb file in three.js editor and reduce the size of the object. By default, the scale should be 0.1. Save the result as a new glb file.
5) Put the new glb file in the Import folder for Oculus Home, don't forget to rename it (by default it's "scene.glb" ...).
If the object is still too big, do step 4) again (reduce the size even more). There is a known problem where sometimes it doesn't change anything, I'm not sure where that comes from ^^'. Here is a nice tip : take one of your imported files as a size reference in three.js editor. Put the new file next to this one, and compare their size (you know the size of the reference object in Home, so by comparing a new object to it, you can have a pretty good idea of its size once imported).
With Blender, it is literally the same process : create plane, make that picture its texture, change the proportions, export is as .FBX file, convert it (with its texture) as .glb file, and so on ...
If you feel that you need a more detailed explanation, here is the long version (with Unity). It may seem long and hard but don't worry, it's actually not!
Hopefully this helped anyone! I was pretty proud of my small discovery, because
posters are a good way to make a more personal room. Besides, 3D models are great but can take up a lot of resources. Pictures don't take anything so it's a framerate-friendly custom method 🙂 .
07-03-2018 07:32 AM
07-04-2018 12:47 AM
07-04-2018 07:28 AM
07-04-2018 03:15 PM
07-05-2018 01:27 PM
10-01-2018 12:01 PM
10-01-2018 12:44 PM
10-08-2018 03:27 AM
emperorvoid said:
For the love of dog can some of you wonderful people share these wonderful glb files?????????????????????
10-08-2018 05:51 AM
Calibos said:
emperorvoid said:
For the love of dog can some of you wonderful people share these wonderful glb files?????????????????????
Seconded!
It'd be amazing if someone could build some frame models of different sizes and designs with the resolution specs listed that the rest of us can just add our own posters once we've cropped and/or scaled them. I'm not asking for much am I? 😄