https://www.bignoodle.com/db1/
Hi, I’m wondering if anyone could help me.. I saw mention of occluder objects and would love to learn more before I move on. Please check the link above. I made some little buttons to show my issue, I plan to use the sphere buttons to flip the ‘tiles’… but check out the cube buttons, one zooms in and one zooms out. You’ll see the difficulty I’m having.
When my camera gets close to my unity quad containg the iFrame/web component, the iFrame disappears. The problem is not related to near/far clipping (.01 and 500). and when flipping the tile, the iFrame isn’t culled, it shows through, flipped.
Thank you for any pointers. Please help!
Hi Alpay,
It seems like you are experiencing issues with an iframe disappearing when the camera gets too close to the Unity quad. This issue might be related to occluder objects in your scene.
Suggestions:
-
Occluder Objects: Ensure that your quad (where the iframe is displayed) is not set as an occluder unless intended. You may want to check if the occluder setting is affecting visibility. In WebXRPlaneTracking, there’s an occluder option that could be relevant. Setting this to true would make the object act as an occluder, possibly causing it to obscure the iframe when close (see the documentation) (see the documentation).
-
Clipping Planes: While you’ve mentioned that the near and far clipping planes are not the issue, ensure that the camera’s position and the quad’s position do not result in clipping for the iframe specifically.
-
Camera Settings: If you are manipulating the camera, consider its field of view and other properties that might affect rendering at close distances.
-
Layer Settings: Double-check the layers for the quad and iframe to ensure they are being rendered correctly and do not collide with any other objects in the scene (see the documentation).
-
Debugging: Utilize a debug console to inspect elements and their rendered states to see if the iframe continues to render or is being culled despite being set to active.
If you provide more context or specific code snippets where you manage the camera and the quad, I could assist further.
You can also explore the samples related to iframes in the Needle Engine repository to see how similar issues are managed (see the documentation).
Let me know how it goes or if you have further questions!
1 replies left - Get a PRO license for more AI replies.
thread_vJ8dQ6KS9PQWgosjY0Zu3MT3
Reply to this message to continue the conversation
I recommend you check out the sample’s code for the iframe logic. There is some custom logic for when the iframe gets disabled at the moment, based on the angle to the camera. You probably want to adjust that logic for your specific usecase.
You should also be able to use a depth occluder that “cuts” into the depth and color buffer, but that requires a bit more setup, I recommend checking out the mentioned script first.
Thanks again @Felix_Herbst . I messed with the script for quite awhile. It seems quite impossible to do what I want in https://www.bignoodle.com/db1/. I got close but I’m not able to nail it. I’ll have to modify how my UI works, i think. The iFrames are either on reliably full time (and seen from behind, which i’ll have to avoid) or very finicky.
Thanks for the pointer though, it was interesting seeing how the iFrames script works.