• Happy Holidays Guest!

    We want to announce that we will be working at reduced staffing for the holidays. Specifically Monday the 23rd until Jan 2nd.

    This will affect approval queue times and responses to support tickets. Please adjust your plans accordingly and enjoy yourselves this holiday season!

  • Hi Guest!

    Please be aware that we have released a critical security patch for VaM. We strongly recommend updating to version 1.22.0.7 using the VaM_Updater found in your installation folder.

    Details about the security patch can be found here.
Chroma Keyifier

Plugins Chroma Keyifier

If you'd like to support continued development of this and more plugins, consider subscribing to my Patreon for just $1 a month

Usage
Add the ChromaKeyifier plugin to any of the following Atoms:
  • CustomUnityAsset
  • Capsule
  • Cube
  • Sphere
  • Slate
  • Wall
  • WoodPanel
It will replace the shader on those atoms with one that renders a flat chroma keyed color of your choice and give you a variety of controls to tweak all the colors and how the shadows are blended to suit your VR passthrough setup.

When using the chroma key passthrough option on your headset, set the color to R100, G120, B100 (#647864) to match the default settings. These have been tested by a few people as ones that work well in most cases, but of course you can experiment and find what works best for you.

If you want shadows, you will need at least one directional light with it's Shadow Strength set to maximum (1.0). You can set the intensity of this light as low as you want as long as it's not zero.

Screenshot at 2023-10-28 00-27-25.png



Hints and ideas
When using in conjunction with Sally Whitemane's Camera Background Color you will probably want to enable the "Sync Camera Background Color" option. This will copy current Chroma Key color to the camera background color whenever it is updated.

Screenshot at 2023-10-28 00-32-29.png


Use the "Show Wireframe" option to help you construct an approximation of furniture and the room you are in. For example, if you have a table you could construct it with a few cubes (I recommend turning physics off, but leave collision on):

Screenshot at 2023-10-27 23-39-16.png


Then you can have a person interact with the table, when using passthrough it's as if they can really sit on it!

Screenshot at 2023-10-27 23-44-40.png


You can do the same to make doorways, so that the person is occluded by the doorway as they would be in real life:

Screenshot at 2023-10-27 23-58-58.png


You may also want to refer to Saint66's guide if you are new to using passthrough: https://hub.virtamate.com/resources/quest-3-passthrough-recording.39622/

thinoreos has one also https://hub.virtamate.com/resources/how-to-use-passthrough-in-vam-vr-mixed-reality.37851/

Acknowledgements
Thanks to fortrankiwi and Saint66 for helping to test this plugin during development, fortrankiwi also had the original idea for using dithering/interleaving as a way of doing pseudo-transparency for the shadows.
mopedlampe for the nice elf armor I used in the screenshots and also appears in the icon.
Author
moyashi
Downloads
49,627
Views
49,627
Favorites
5
Packages
1
Total Size
0.08 MB
Version
2
First release
Last update
Rating
5.00 star(s) 5 ratings

More resources from moyashi

Latest updates

  1. Version 2

    Fixed issue with shader replacement not working when loading from subscene

Latest reviews

Fantastic! Makes it possible to hide unity geometry in existing scenes and create shadows on them for Quest 3 passthrough
Upvote 0
Thanks for linking to my passthrough guide! This is fantastic use of shadows, can't wait to see how else you improve it
Upvote 0
I didn't understand what this plugin could do, but now I see the potential ?
Upvote 0
very nice utility. I've been using the scene atom tool by another user here but this gets more to the point. would be nice to add custom skin shaders with rim lighting/blur and sss maybe
M
moyashi
I'm very keen on writing skin replacement shaders also, as I think that's one area in particular where vam struggles, so watch this space.

The difficulty I've been having is getting shadows to work properly... which is why this replacement shader only supports directional light shadows at the moment, I spent a good few weeks trying to get other shadows rendering correctly to no avail so I just released it as is with directional only support.

I've made attempts to decompile the existing built in skin shaders to see what they are doing but all the tools I've tried just end up erroring (a lot of dx11 tools have just bitrotted because people are more focused on dx12 and vulkan it seems).

I'm a persistent bastard though so I'll get it eventually :)
Upvote 0
Great idea!
Upvote 1
Back
Top Bottom