Depthkit + VFX and Unity

Note: This is a semi-tested draft of a Depthkit Studio + Unity VFX workflow. Further testing and polishing may be required. Please proceed with caution.
1. Download the Depthkit Expansion Package for Unity from Depthkit's website.


2. It will come as a zip file containing all of the Unity package source files. Extract where sensible.
3. Open a new Unity project, this can start from the 3D Core Template.
4. Go to Window > Package Manager.
5. Click on the plus sign on the top left and Add package from disk...
6. Import depthkit.core first, go to the extracted Depthkit Unity package directory, and go into depthkit.core.
7. Find, select, and open the package.json file.
8. The package will now be added and imported in. Do the same for, depthkit.core.vfx, and, in that order. You may encounter an error for the vfx packages denying access for certain files. Close those error messages and ignore them for now. Feel free to go through the Depthkit packages and import samples as needed from the right hand side of the Package Manager menu.
9. Make sure to import the samples: Prefabs - Depthkit Studio Built-in from the Depthkit Studio package and Prefabs - Depthkit Studio Visual Effects Graph from Depthkit Studio Visual Effects package.
10. This is assuming you have gone through the Refinement Mask process and exported your volumetric capture as a Multiperspective CPP Video file from Depthkit Studio. Navigate to your Depthkit project folder > _Exports, and locate the footage you are looking to bring into Unity. You will need three files: the video itself (.mp4), the poster image (.png), and the Metadata Text file (.txt). For organization, create a folder in your Assets folder in Unity to keep your footage files nicely sorted. Click and drag those three files into that folder in Unity.
11. In your asset browser, look for the Depthkit Clip + Studio VFX Look prefab. Click and drag it into your scene.
12. Select it in your Hierarchy view so that you may see further details in the Inspector on the right.
13. With that GameObject selected and the Asset browser open to the folder with your exported Depthkit files, you will need to click and drag your Metadata Text file into the Inspector > Depthkit Clip > Metadata slot. Your Poster image into Inspector > Depthkit Clip > Poster, then finally the multiperspective CPP video into Inspector > Video Player > Video Clip
14. VFX will not show up until we set up a Render Pipeline in Unity. We will need to set up either the Universal Render Pipeline (URP) or the High Definition Pipeline (HDRP). We will be setting up the URP for this.
15. Going back to Window > Package Manager, click the arrow next to "Packages: In Project" and select Unity Registry.
16. Look for the Universal RP package (or High Definition RP, if that's what you are using), and Install.
17. Once finished, right-click in your Asset Browser below then hover through Create > Rendering > URP Asset (with Universal Renderer) or whichever one is pertinent to your project's workflow.
18. This will create a Universal Render Pipeline Asset with an icon of a blue cube outline with red brackets on the corner. Go to Edit > Project Settings...
19. There, go to Graphics, then take that new Universal Render Pipeline Asset and drag it into the Scriptable Render Pipeline Settings slot.
20. From here, go to Edit > VFX > Rebuild And Save All VFX Graphs.
21. And now, ideally, your Depthkit Clip + VFX Graph and VFX in general should be showing up in your Scene/Game view.
22. Make sure to resize your Depthkit Clip bounds to a sensible size as that may impact performance. If you would like to play around with the look of the VFX-rendered Depthkit Clip, click on the GameObject then look for the Visual Effect component on the right, then the Asset Template field/slot. To its right will be an Edit button. Since this is using the default VFX sample, I would recommend creating an entirely new Depthkit VFX graph in your assets and replacing the one in that slot. You can create a new Depthkit VFX Graph by right-clicking on the Asset browser below, then go to Create > Visual Effects > Depthkit VFX Look. Then click and drag into that slot, and adjust/edit the graph as you may.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a ticket