Home › Forums › General Questions › How to have AR going under the floor ?
- This topic has 8 replies, 2 voices, and was last updated 1 year, 1 month ago by NaxosCG.
-
AuthorPosts
-
2023-11-14 at 10:27 am #68529NaxosCGCustomer
Hello there,
I’m making some tests for swimming pools configurator here, using AR as final presentation.Problem is that i can’t get objects to be under the floor (poll’s hole) :
– with iOS, it takes the minimal Z to set the object onto the real floor, so my pool is standing above the floor : is there anyway to force the objects to be under the real floor ?
> or anyway to force my 3D scene’s 0 Z origin to be at the detected floor ?– with Android, it gets somewhere between above the real floor and under, i guess it has problems to set correctly my 0 Z origin.
Of course, in my 3DSmax scene, my pool is under the origin in Z, so it should be under the real floor.
iOS seams to let us move the object only in XY plane, not in Z.
Any idea / help ?
the test scene : https://v3d.net/q2e"1+1=3... for large values of 1"
2023-11-14 at 10:40 am #68530kdvParticipantSet the origin to the uppest point.
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-11-14 at 10:55 am #68532NaxosCGCustomerI already did :
The green point helper is set to origin, my object is under it.
(see attached)Attachments:
You must be logged in to view attached files."1+1=3... for large values of 1"
2023-11-14 at 11:11 am #68534kdvParticipantVisually you model will never be under the floor.
It’s possible to correct it’s Z position for Android (detect the floor Z position, subtract from AR HitPoint Z some constant value). Combined with a clipping plane it might have some sense. But it’s not for sure.
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-11-14 at 12:48 pm #68537kdvParticipantAs a variant, you can use the Holdout shader to hide everything behind it.
For Android only.
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-11-14 at 2:21 pm #68541NaxosCGCustomerthe Holdout shader is a good solution, but not USDZ / iOS, unfortunatelly.
Mains issue is not to hide what is under the ground (i can make it black), but not to have iOS to use bounding box to settle the meshes on the floor.
All tests i’ve made always put the meshes on the floor, regardless of my origin in the scene.
I’ve also tried to move down the meshes before sending to AR with export to USDZ, it goes back onto the floor. I mean when i put my smartphone near the ground, i’m under the mesh."1+1=3... for large values of 1"
2023-11-14 at 2:22 pm #68543NaxosCGCustomerbtw, how do i create the Holdout shader in 3dsmax, do you know ?
"1+1=3... for large values of 1"
2023-11-14 at 2:22 pm #68544kdvParticipantbut not USDZ / iOS, unfortunatelly.
No options fot iOS. At all. That’s iOS
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-11-14 at 2:24 pm #68546NaxosCGCustomerOK, i’ll deal with it.
"1+1=3... for large values of 1"
-
AuthorPosts
- You must be logged in to reply to this topic.