Open andrewgrow opened 4 years ago
Additional Info: The second problem (it is may be related for the first issue) - MATERIAL_SPOTLIGHT_RADIUS can't be changed now.
I have the next code:
PlaneRenderer planeRenderer = callback.getArSceneView().getPlaneRenderer();
planeRenderer.getMaterial().thenAcceptBoth(planeTexture, (material, texture) -> {
material.setTexture(MATERIAL_TEXTURE, texture);
material.setFloat2(MATERIAL_UV_SCALE, 8.0f, 8.0f);
material.setFloat(PlaneRenderer.MATERIAL_SPOTLIGHT_RADIUS,1000.0f);
}).exceptionally(ex -> {
ex.printStackTrace();
return null;
} );
But I always see only spotlight with 0.5f radius.
Hi, have you solved first problem? I have same problem and when i add a object on the plane the object is not centered on the hit position. Maybe this problem is related to the wrong plane position. I have a Pixel 2 XL.
Hello friends. Thank you for your work, you have done the best solution in the world =)
But I have a problem with Samsung devices - the Plane Texture is position not on the screen center. And I have reproduced it on the Emulator. But Google Pixel works as expected.
Can you help me? I don't know is it correct behaviour or not.
Steps to reproduce: 1) Install or update Ar-Core https://play.google.com/store/apps/details?id=com.google.ar.core current version is 1.14.191118106 from 18 december 2019 2) Build and install "Hello Sceneform" from https://github.com/google-ar/sceneform-android-sdk.git 3) Walk and rotate device, look around at room, look at walls, floor and other objects.
Actual Result: the Plane Texture is positioned not on the screen center.
Expected Result: the Plane Texture always is positioned on the screen center.