3D renders behind facemask. BUG?
Can someone please explain this and help me fix it???
I have a simple 3D-cube animation (fbx) imported.
I have added a simple sphere and saved it as a prefab.
Both attached to the same camera in a new layer.
I then have a Camera with a Head Binding, and a facemask (default) in a separate layer.
If I then try to instantiate the cube and the sphere (by a tap) the cube gets placed behind the facemask and the sphere doesn't. Of course I would like both instances to be in_front/on_top of the facemask.
I'm totally confused as to what I'm doing wrong. Please help. :-)
Can I have the download of this project so I can help you? so I can help you out quick
If not just somewhere on lens studio you can report a bug and Lens Studio Team looks at the project but that takes a bit of time to be looked at I just wanted to see what I can do.
You can download it here: https://we.tl/t-wivACXmNoS
And thanks for your effort.
So your problem was that the Box was showing up behind the face mask?
Yes
All I did was move the face Occluder a bit forward and increase the width of the Occular and the box wasn't showing up behind the mask ill link the video of it not showing behind the Mask
https://drive.google.com/file/d/174NNQ8ThNt3Vez3jjYNsVyT53k6kzrQM/view?usp=sharing
Tell me if that helps if you need anything or more help just comment ill help you out the most I can.
Try to spawn it (by tapping). It still gets placed behind the mask....
Ok gonna take another look at it.
Ok, I figured it out so as the script it's supposed to spawn in an object but it doesn't know there is a render order so like it's just being told to spawn in.
An alternative I did find for you was to copy and paste the component ill link a video down below.
but if you do need another way is to find an expert at JS to fix the script.
https://drive.google.com/file/d/1ERHXmbEJi4DDDkLlGnX65nYuHSeEutL7/view?usp=sharing
OK. I looked at the video and couldn't quite figure out how that was a fix...?
About the script; the sphere is spawned correctly via the same script but the cube (fbx) is not.
That seems a bit strange to me....
Adding more Components so that the cube doesn't show behind the Mask.
that's also probably an issue an imported animated cube.
Try using the regular cube just use a tween transformation to move it
The point is I want to use a more advanced 3D animation in the end. The cube was just to illustrate the issue...
Alright so the problem is the script simple as that
If the script is the problem why is the instantiated sphere then on top of the face mask.
It makes no sense.🤦♂️
Actually can you show me the sphere working because when I spawned it in the mask wasn’t even close the the sphere so how would it show behind the mask
the sphere wasn’t moving backwards so it wasn’t going through the mask while being spawned
Try and watch this:
https://we.tl/t-RGrL0zWspD
weird so are you using the default cube that's already in lens studio for that?
No.
The cube is from Blender.
The sphere is from Lens Studio
So that might be the issue if you import something it's going to show behind the mask because it works with the inbuilt Lens Studio Models Just fine.
Well....
Why is that and how to fix it. Anybody?