Open jpsarda opened 5 years ago
i have a similar issue. any solution? btw, how do you add the preview in background to the scene? as a node?
Same problem; want to always show semi-transparent "screen overlay" texture so have custom material using "vertexDomain" : "device"
Problem is the external texture plane display cuts in and out at fairly well defined azimuth points; when rotating the device (phone) in azimuth (horizontal plane around user) the external texture visibility around the arc is roughly:
0 - 180 visible 181 - 235 invisible 235 - 245 visible 246 - 330 invisible 331 - 340 visible 341 - 359 invisible
Pretty rough numbers, but the point is there's roughly 180 degrees when looking in the direction of the main scene content where the external texture clip space plane ("screen overlay") is visible, then mostly invisible on the other side of the circle except for two narrow lobes of 10 or 15 degrees where the external texture is visible.
Complicating things a bit is that elevation (vertical tilt) of handset device also causes the external texture to cut in/out; at certain azimuths tilting device down 45 degrees typically causes external texture to go invisible.
Just want to be able to assign an external texture clip plane that's always-on regardless of handset device orientation, where 3D models/anchor nodes etc are in the scene etc
I'm using Sceneform without ARCore and rendering the camera preview in background this way with an ExternalTexture and a custom material with
"vertexDomain" : "device"
: https://github.com/google-ar/sceneform-android-sdk/issues/274#issuecomment-419589970So my scene has this special object and another classic 3D object over it. When I modify the scene camera, and the 3D object gos out of the screen, Sceneform stop rendering, and the camera preview ExternalTexture is not shown on screen anymore.
So how would I force Sceneform to render at all time ?