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

Diffuse texture does not appear when converting from .obj on Sceneform plugin #150

Closed terezo closed 6 years ago

terezo commented 6 years ago

Hi again,

I am having troubles with getting diffuse texture when rendering .sfb converted by Sceneform plugin from .obj. Interesting is, that models converted by latest version of google-ar-asset-converter works (thanks to @necrostylery https://github.com/necrostylery/google-ar-asset-converter).

sceneform_plugin Sceneform plugin result

necrostylery google-ar-asset-converter result

Setup: Android Studio 3.1.3 Build #AI-173.4819257, built on June 4, 2018 JRE: 1.8.0_152-release-1024-b01 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.15.0-23-generic

Assets, with both results: sceneform_vs_necorstylery.zip

Any suggestions how to proceed are appreciate. We are debugging our assets with modelers and this inconsistency makes the process a bit insecure. I notice also troubles with shadow of sofa, which is better for Sceneform. Any advice on what could be wrong with our model would be amazing too.

tpsiaki commented 6 years ago

@terezo - Are you using the 1.3.0 version of the Sceneform gradle plugin or an earlier version? You should see a dependency in your project gradle file that looks like this classpath 'com.google.ar.sceneform:plugin:1.3.0'

terezo commented 6 years ago

@tpsiaki my mystake, I was using earlier version. I was thinking I've got 1.3.0, since I reinstalled plugin from settings where I saw Install v1.3.0. It did not update my gradle dependency, I think that's not intuitive.

abramyan commented 6 years ago

@terezo Thanks. Can you please file a separate request for auto updating the gradle dependency?