sceneform-android icon indicating copy to clipboard operation
sceneform-android copied to clipboard

phone surface turns out to be black

Open chenleicrm opened this issue 3 years ago • 45 comments

Screenshot_20220218-104636_SceneFormDemo As you can see. Phone modal surface is black when I use REALISTIC or SPECTACULAR config Screenshot_20220218-105430_SceneFormDemo And phone modal surface turns out to be oranged when I use DISABLED mode

chenleicrm avatar Feb 18 '22 02:02 chenleicrm

I wonna to know why the phone is oranged and how to disable

chenleicrm avatar Feb 18 '22 03:02 chenleicrm

maldives_blue.zip the glb file is in the zip above

chenleicrm avatar Feb 18 '22 03:02 chenleicrm

Hi, Can you confirm that you also don't see the screen with AMBIENT_INTENSITY? Can you send a screenshot of your model screen material within Blender?

ThomasGorisse avatar Feb 19 '22 07:02 ThomasGorisse

If well defined, the phone screen should be emissive to work in real (AR) usage.

ThomasGorisse avatar Feb 19 '22 07:02 ThomasGorisse

Hi, Can you confirm that you also don't see the screen with AMBIENT_INTENSITY? Can you send a screenshot of your model screen material within Blender? WX20220219-172313@2x here is the screenshot of the model screen and you can also see the glb file in maldives_blue.zip above

chenleicrm avatar Feb 19 '22 09:02 chenleicrm

I can see the model screen but need to rotate the modal or put it on the desk not on the floor when i open the light estimate

chenleicrm avatar Feb 19 '22 09:02 chenleicrm

If well defined, the phone screen should be emissive to work in real (AR) usage.

I just use the model view demo code and replace the model file

chenleicrm avatar Feb 19 '22 09:02 chenleicrm

If well defined, the phone screen should be emissive to work in real (AR) usage.

I just use the model view demo code and replace the model file

I meant change the emissive from Blender. As we can see in your Blender screenshot, the phone screen doesn't seems to emit lights. So just like in real world, if your phone screen is "turned off" nothing will be "visible"

ThomasGorisse avatar Feb 19 '22 09:02 ThomasGorisse

Is this model emiting light ? WX20220219-174924@2x

chenleicrm avatar Feb 19 '22 09:02 chenleicrm

If well defined, the phone screen should be emissive to work in real (AR) usage.

I just use the model view demo code and replace the model file

I meant change the emissive from Blender. As we can see in your Blender screenshot, the phone screen doesn't seems to emit lights. So just like in real world, if your phone screen is "turned off" nothing will be "visible"

but when i rotate the modal to the direction of light , i can see the phone screen...

chenleicrm avatar Feb 19 '22 10:02 chenleicrm

Do you mean the phone screen is not emit light , so the screen is "turn off", when i rotate the model screen to the light . it can "turn on" ?

chenleicrm avatar Feb 19 '22 10:02 chenleicrm

Is this model emiting light ?

Your model material is made of a single linear image texture so you have to modify it properties inside Blender if you want your screen to be lighter and emissive and keep the rest as a standard phone material.

ThomasGorisse avatar Feb 19 '22 10:02 ThomasGorisse

This is your texture image To explain you shortly what is happening, just imagine what would happen in real life if you printed the bellow image on a paper and paste it on something having the same shape as a phone. If your room is a even a little dark, you won't see it well because it won't have any reflections or the fake screen won't emit any light.

ThomasGorisse avatar Feb 19 '22 10:02 ThomasGorisse

OK I will try this next week ,and I also want to know why the model is oranged when i disable the light estimate

chenleicrm avatar Feb 19 '22 10:02 chenleicrm

Your model has a well defined material for the phone structure (metal) but not for the screen part: image

ThomasGorisse avatar Feb 19 '22 10:02 ThomasGorisse

Here you can see that you only have black Emission image

ThomasGorisse avatar Feb 19 '22 10:02 ThomasGorisse

Here you can see that you only have black Emission image

thanks for your patience

chenleicrm avatar Feb 19 '22 10:02 chenleicrm

Screenshot_20220218-104636_SceneFormDemo As you can see. Phone modal surface is black when I use REALISTIC or SPECTACULAR config Screenshot_20220218-105430_SceneFormDemo And phone modal surface turns out to be oranged when I use DISABLED mode

Can you help to check the second picture. When i disable the light estimate. the phone model is oranged

chenleicrm avatar Feb 19 '22 10:02 chenleicrm

This might be a FILMIC issue we solved on the today release 1.20.5. Please update your depency version, and post the same screenshot.

ThomasGorisse avatar Feb 20 '22 00:02 ThomasGorisse

This might be a FILMIC issue we solved on the today release 1.20.5. Please update your depency version, and post the same screenshot. Screenshot_20220220-154541

here is the picture I update depency version to 1.20.5, It seems like no change, You can also use model above to check it

chenleicrm avatar Feb 20 '22 02:02 chenleicrm

https://user-images.githubusercontent.com/10569293/154829616-e4a3afa6-96c9-41a9-9385-2ceb54888f88.mp4

Screenshot_20220220-182540

As you can see in the video above, phone surface turns to be black gradually. And the image is the normal state . I am curious about what happens in the video

chenleicrm avatar Feb 20 '22 05:02 chenleicrm

https://user-images.githubusercontent.com/10569293/154830454-0d7d8ff5-316a-41a6-9880-f52354655e14.mp4

I try many times, phone model surface is always show black only in the direction where i just place it on the plane. and show normal when i rotate the model to other direction

chenleicrm avatar Feb 20 '22 05:02 chenleicrm

AMBIENT_INTENSITY

I can not see the screen in AMBIENT_INTENSITY

chenleicrm avatar Feb 20 '22 06:02 chenleicrm

You have to modify a little bit your model. Some properties in it may come from an .obj or .fbx import and has to be changed a little bit to make it completely glTF PBR 3D engine ready. For exemple, here is how the metallic and roughness factors are made of inside your material:

image image

Meaning roughness is extracted from the Green channel and Metalic from the Blue of the right image

You have 3 choices:

  1. Modify the Image_1 image
  2. Separate parts of your phone inside Blender and apply metallic for phone structure and emission for the phone screen
  3. Completely disable environment lighting influence within Sceneform

@grassydragon Do you remember how to disable lighting influence on an object?

ThomasGorisse avatar Feb 21 '22 09:02 ThomasGorisse

Do you remember how to disable lighting influence on an object?

It can be done like that or using an RGB node as an input to Surface: https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html?#exporting-a-shadeless-unlit-material

grassydragon avatar Feb 21 '22 12:02 grassydragon

I was more thinking of a Filament way to do it.

ThomasGorisse avatar Feb 21 '22 12:02 ThomasGorisse

yes I want to disable the lighting influence on model in code when I set light estimate DISABLED @ThomasGorisse @grassydragon

chenleicrm avatar Feb 21 '22 12:02 chenleicrm

I change build dependencies to 1.18.10 , Both the phone surface and the DISABLE mode shows OK. Can this be any help.

chenleicrm avatar Feb 22 '22 03:02 chenleicrm

any update now. cause our program is on emergency about the model effect @ThomasGorisse @grassydragon

chenleicrm avatar Mar 04 '22 10:03 chenleicrm

Please consider sponsoring us if you need any urgent help. Because we already bring you precise answers and we also got our own "emergency" private remunerating things to do.

ThomasGorisse avatar Mar 04 '22 12:03 ThomasGorisse