google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

Object's scale issue #463

Open narfO opened 5 years ago

narfO commented 5 years ago

Hello,

Hello, sorry for maybe stupid question, but i have this problem: I have model of sunshade with real size 2,4x2x2meters, but when I insert it to our app, it's size doesn't match (picture of that is in attachment). Model (modeled in 1:1) was exported from Blender as glTF file. Google was not too helpfull. Does anyone experience with that? File with glTF file and textures are in attachment.

Thanks.

sunshade1 sunshade.zip

bobekos commented 5 years ago

Make sure you have no custom scale factor in your .sfa file.

model: {
      ...
      scale: 1.0, //remove this line or set it to 1.0 and then recreate you sfb file
   },
narfO commented 5 years ago

hello bobekos .... thx for your reaction but we have to work with glTF files. Export what i did was gltf file and there is not scale parameter as you mention here.

AlgoRyan commented 5 years ago

Is this being attached as a child node of something else in the scene? If a parent node has a scaling factor that will be represented in the scale of the child as well.

If that's not it then we probably need to see your source files to see what's going on.

narfO commented 5 years ago

hello AlgoRyan... I cleared every pattern which I could, but It didn't help. It still has the wrong scale in the app. I attached gltf and blend file (scene file). What is weird, other smaller models which I have (same export settings as I did in the sunshade model) .. have correct scale. sunshadeTest.zip

jknazko commented 5 years ago

Hi, any progress on this issue? I have similar problem.

narfO commented 5 years ago

nope. I found nothing about this topic.

ut 5. 2. 2019 o 15:23 jknazko notifications@github.com napísal(a):

Hi, any progress on this issue? I have similar problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/google-ar/sceneform-android-sdk/issues/463#issuecomment-460655452, or mute the thread https://github.com/notifications/unsubscribe-auth/AruU8giImtOqZO2H3SHD697DtCd41-bvks5vKZPygaJpZM4ZRlks .