You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried following these instructions to add a second ClippingBox to a renderer. I had some of issues that came up:
The MonoBehaviour script SecondClippingBox does not reference the variable clipBoxSizeID, and the script requires including the namespace Microsoft.MixedReality.Toolkit.Utilities. I commented out the clipBoxSizeID and included the namespace to the script.
Modifying the MRTK/Core/StandardAssets/Shaders/MixedRealityStandard.shader in step 5 for #if defined(_CLIPPING_BOX2). I changed the code to include variables clipBoxSide2 and clipBoxInverseTransform2 to match the format of #if defined(_CLIPPING_BOX). I also removed the argument _ClipBoxSize2.xyz from PointVsBox().
Making these changes worked for me :) I included some screenshots.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: e84ae485-589a-39ae-215b-2a180e256847
Version Independent ID: 1e333459-27c2-0a15-e6f5-00dbc4e6b88f
@DreVinciCode Hi, I also have a problem following the instruction. I looked into your screenshot, but still the second box is not clipping my model.
I wonder what is wrong and here are the codes I changed according to the instruction and your answer.
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
Finally, here are the clipping boxes in the scene.
I am using MRTK 2 and created a new material with the altered standard shader. I would really appreciate it if someone can have a look at my settings. Thanks in advance.
Hello,
I tried following these instructions to add a second ClippingBox to a renderer. I had some of issues that came up:
The MonoBehaviour script SecondClippingBox does not reference the variable clipBoxSizeID, and the script requires including the namespace Microsoft.MixedReality.Toolkit.Utilities. I commented out the clipBoxSizeID and included the namespace to the script.
Modifying the MRTK/Core/StandardAssets/Shaders/MixedRealityStandard.shader in step 5 for #if defined(_CLIPPING_BOX2). I changed the code to include variables clipBoxSide2 and clipBoxInverseTransform2 to match the format of #if defined(_CLIPPING_BOX). I also removed the argument _ClipBoxSize2.xyz from PointVsBox().
Making these changes worked for me :) I included some screenshots.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: