Giter VIP home page Giter VIP logo

Comments (15)

Noah7071 avatar Noah7071 commented on May 27, 2024 5

@Doprez Committed the update for embedded texture!
Screenshot 2024-04-06 140515

from stride.

Doprez avatar Doprez commented on May 27, 2024 1

Ah ok, seems like the new importer is missing a step of extracting textures from the FBX file. I dont think that would be part of the model not appearing correctly but at that may at least explain the textures not getting imported in the current version.
image

List<String^>^ ExtractTextureDependenciesNoInit()

from stride.

Noah7071 avatar Noah7071 commented on May 27, 2024 1

@Noah7071 is this just missing or a special case for this model file?

Oh yes for the case texture embedded, unlike FBX sdk there isnt auto setting in Assimp to rip embedded files. Have to generate texture image file traversing pixel by pixel. Checking in the fix shortly!

from stride.

Doprez avatar Doprez commented on May 27, 2024 1

You're a legend! I can either mark this as closed now or we can wait for the PR to close it.

from stride.

Noah7071 avatar Noah7071 commented on May 27, 2024 1

Thanks @Doprez , best mark it closed and open new if somethin else!

from stride.

Noah7071 avatar Noah7071 commented on May 27, 2024 1

Yes, there's PR of this #2163

from stride.

Doprez avatar Doprez commented on May 27, 2024 1

Im going to reopen for now so we can track it once it gets merged. It does seem fixed from Noahs example but just needs to be in master.

from stride.

Doprez avatar Doprez commented on May 27, 2024

Seems like it may be a path issue based on the image below:
image

and this check here cant find the textures causing the above error.

        private static void ImportTextures(IEnumerable<string> textureDependencies, List<AssetItem> assetReferences, Logger logger)
        {
            if (textureDependencies == null)
                return;

            foreach (var textureFullPath in textureDependencies.Distinct(x => x))
            {
                if (!File.Exists(textureFullPath))
                {
                    string texName = Path.GetFileNameWithoutExtension(textureFullPath)??"<unknown>";
                    logger.Error($"Texture with name {texName} not found");
                    continue; 
                }
                var texturePath = new UFile(textureFullPath);

                var source = texturePath;
                var texture = new TextureAsset { Source = source, Type = new ColorTextureType { PremultiplyAlpha = false } };

                // Create asset reference
                assetReferences.Add(new AssetItem(texturePath.GetFileNameWithoutExtension(), texture));
            }
        }

from stride.

tebjan avatar tebjan commented on May 27, 2024

@Noah7071 is this just missing or a special case for this model file?

from stride.

Noah7071 avatar Noah7071 commented on May 27, 2024

Thanks for sharing this @Doprez. Wheres this particular model Emily_jumpinng! ? The link you shared isn't opening for me.

from stride.

Doprez avatar Doprez commented on May 27, 2024

Oh weird, try this https://www.turbosquid.com/3d-models/emily-blender-2157992

from stride.

Doprez avatar Doprez commented on May 27, 2024

Oh lol sorry I apparently added the hyperlink without adding the actual link

from stride.

Doprez avatar Doprez commented on May 27, 2024

Did you already make the PR?

from stride.

Doprez avatar Doprez commented on May 27, 2024

Ah but that was already merged, I think it will need a new one for your commit to take effect.

from stride.

Doprez avatar Doprez commented on May 27, 2024

Should be fixed from @Noah7071 repo, I pulled it in this PR #2246

from stride.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.