I apply particles VFX which makes a Studio character semi-transparent. Because we see the back side of the character, it reveals that the figure is empty inside. This might be awkward for the project I’m currently working on. See attached picture for instance. We want to get the impression that the figure is full-bodied while having semi-transparent point-cloud VFX.
Is there a way to either occlude rear-facing particles or fill out the figure with point cloud mass to make it a monolith semi-transparent sculpture?
this would rise your point load in unity and the need of more performance … normally the aim is to reduce points to get it more fluent playing in higher FPS … so fill the body with ponits i would normally avoid … maybe the “lite” player which actually only renders the from the camera(playercontroller) visible side of the asset … but i new experimented with the lite in combination with VFX point cloud look … maybe @CoryAllen can say here more to this issue …
@NikitaShokhov I checked with and @James and @Tim and it sounds like you can mask the rear-facing particles by adding a mesh/solid look to your asset (can be low-density for performance), but only write to the depth buffer so that it remains invisible in the render, but mask any particles behind it. Apparently this was done using the legacy Depthkit Unity plugin and legacy Depthkit Visualize app, but has not been rebuilt using the modern packages.
@CoryAllen, Sure. It might be nice to include instructions about this issue.
For me, it was balancing between transparency of VFX and the shader. So we have a range of possibilities between only VFX particles visible and no mesh at all, and only mesh visible and no particles.
Now, how I accomplished the shader to be able to control its transparency and avoid seeing the character’s rear-facing mesh. If it’s Unlit shader, check these two boxes Transparent Depth Prepass in Material > Surface Options; and in Shader Graph > Graph Inspector. I also exposed Alpha property for quicker adjusting transparency. Highlighted in orange:
Wow, thanks for your super fast response @NikitaShokhov
I have a lot to learn about ShaderGraph, so excuse me if this is obvious but I don’t have that option in my Graph Inspector. I am in Unity 2020.3.33 with Depthkit Studio Shader Graph 0.4.2
Thanks @CoryAllen, so so far there is no version of 2021 that is supported? @NikitaShokhov would you mind sharing the exact version of 2021.2 you used to achieve the results you shared here? Thanks in advance!
@VeroniqueLevert Unity v2020 is what those packages were tested against at the time of release, but it is possible that they work in 2021. If you are testing the Depthkit packages in 2021 and they are working, then there’s no reason not to use them - We just caution you against relying on this Unity version as it hasn’t been fully tested on our end. We’re aiming to test with a newer version of Unity when the next version of our Unity packages are developed, but currently do not have a timeline slated - We’ll keep you posted.
If I were you and wanted to use newer URP and shader graph, I’d start by trying the newest 2021.3.18f1 LTS and would switch to previous versions if Depthkit is not working correctly. But certainly, stick with LTS.
I use 2021.3.16f1. While it’s not supported, in my experience, Depthkit works perfectly there. It may not be your case, though.