Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mutliple UV Channels not read #5

Open
BiohazardWTF opened this issue Apr 9, 2019 · 2 comments
Open

Mutliple UV Channels not read #5

BiohazardWTF opened this issue Apr 9, 2019 · 2 comments

Comments

@BiohazardWTF
Copy link

Hi!

I've been trying to load an fbx with multiple UV channels, but had no success. After checking everything on the designer's side (export settings, etc) I've found the problem in AssetImportKit's side.

It seems that when creating SCNGeometrysources, in the makeTextureGeometrySource method, the code iterates all aiMesh.mTextureCoords but only looks for the first result, as seen here:

for aiMesh in aiMeshes {
    if let textureCoordinates = aiMesh.mTextureCoords.0 {
        //Process data
    }
}

The code should correctly process every channel provided by Assimp (8 max, AFAIK).

I hope this gets fixed soon! :D

@eugenebokhan
Copy link
Owner

@BiohazardWTF Please provide me the model you used.

@BiohazardWTF
Copy link
Author

I don't have a model with multiple UV channels anymore :
Any model with multiple UV channels from turbosquid or similar websites should do the trick. Anyway, I'll try to contact our designer to ask for a simple model. Thanks for your time @eugenebokhan :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants