How do I set up Segmented Dimming with a 3D model?

Hello,
Please tell me how to set Segmented Dimming by 3D model.
I would like to create something like the demo video below.

I have set up the following document on Cube to check the operation, and Segmented Dimming seems to work. (In ML2, I saw blurry black stuff. I took a video and it showed a black Cube).
https://developer-docs.magicleap.cloud/docs/guides/unity/display/unity-segmented-dimming

I looked at \Assets\MagicLeap\Examples\Scenes\SegmentedDimmer.scene but it doesn't help.

As mentioned above, please tell me how to suppress the transparency of the 3D model using Segmented Dimming.

Unity Editor version: 2022.2.0b4.2768
ML2 OS version: B3E.220818.12-R.046-R.417
MLSDK version:1.0.0
Host OS: (Windows/MacOS):Windows 10

Thanks.
Sadao Tokuyama

1 Like

Hi @tokufxug, Let me look into this and I'll get back to you. Thanks for your post.

1 Like

@kdowney
Thank you for your response. The demo app I posted at the beginning is the app shared by Magic Leap in the following thread. I would be quite happy if you could share the Unity project of this demo app if possible.

Hi @tokufxug, getting you an answer on the demo app.

Forgive me if you've already done this, but we often use this as a first troubleshooting step because it can be overlooked: was the Segmented Dimmer enabled inside the headset using these steps?

1 Like

Same here. We would be happy to receive access to the demos as well.

We want showcase the capabilities of the device shareholders. Providing some demos would be beneficial for the company overall.

1 Like

Hi @kdowney, I have created a demo with Segmented Dimmer Material set on the Cube and verified that it works. I believe that this is a normal activation of Segmented Dimming.

However, I believe that this is not how Segmented Dimming is supposed to be used, but to reduce the transparency of a 3D model with a textured material by setting up Segmented Dimming. I would like to know how to do that.

Do you know how to do it as shown in the video?
Do you understand what I am asking?

@tokufxug The demo application uses the same steps as in the Segmented Dimming Guide. We created a decimated version of each model made it a child of each of the objects. This mesh was put on the Segmented Dimmer layer and had the Segmented Dimmer material applied to it.

1 Like

質問があまりUS側に正しく伝わっていないようなので、一度日本語で確認させてください。
Segmented Dimmer を ML2 を通して実際に見ることには成功したけど、録画してみると、Twitter の動画のようにはならないということでよいでしょうか?
動画のように透明度が Dimmer の強度によって変わって見えてほしいってことですかね?

違います。ドキュメントにある通り、Segmented DimmerをCubeに設定して実行するとCubeが黒のもやみたいなボヤけた状態で表示され、動画撮影すると黒色のCubeが表示されました。このCubeに対してSegmented Dimmerは効いていると思います。

次にTwitterの動画のような3Dモデルに対して、Segmented Dimmerを設定する方法を知りたい言う質問です。

ドキュメントがチュートリアルのような内容になっていないので、わかりづらいです。

承知しました。
@kbabilinski が回答した通り、またドキュメントにも書いてある通りの手順となります。
少しわかりにくい点として、SegmentedDimmer Layer を適用するのは、見たいゲームオブジェクトそのものではなく、そのゲームオブジェクトの複製に対してです。この複製が、Dimmer のマスクとして機能する形です。そのため複製は本来のゲームオブジェクトの子オブジェクトとして配置するのが一番良いと思います(連動して動くため)。Dimmer のためのゲームオブジェクトのサイズは、本来のものよりも大きくしたり小さくしたりして、適宜見えを調整するとよいとも書かれています。
@kbabilinski の場合は、本来のものより小さく設定しているとのことです。

For 3D elements : Place the Segmented Dimmer mesh objects in the same exact location as the object you want to surround with the Segmented Dimmer and scale it up to your desired size. You may need to test out different sizes of the mesh in order to get the desired Segmented Dimmer border width around the object.

何となくですが、それっぽい感じになりました。

2 Likes

よかったです!
もし解決した場合は、 Solution であると感じた投稿にマークをお願いします。