Giter Site home page Giter Site logo

Support assimp 3.1.1 about chaotic-rage HOT 6 CLOSED

esper avatar esper commented on June 12, 2024
Support assimp 3.1.1

from chaotic-rage.

Comments (6)

TheJosh avatar TheJosh commented on June 12, 2024

We're probably using a post processing flag which has been removed, or which isn't valid in some cases.

from chaotic-rage.

TheJosh avatar TheJosh commented on June 12, 2024

Might be this
assimp/assimp@e6c5095

We'll have to check that all of our postprocess flags are valid

from chaotic-rage.

esper avatar esper commented on June 12, 2024

The assertion is due to that we use both 'aiProcess_OptimizeGraph' and 'aiProcess_PreTransformVertices'. Also the zombies are not visible any more with assimp 3.1.1...

From Importer.cpp

// Validate post process step flags 
bool _ValidateFlags(unsigned int pFlags) 
{
    if (pFlags & aiProcess_GenSmoothNormals && pFlags & aiProcess_GenNormals)   {
        DefaultLogger::get()->error("#aiProcess_GenSmoothNormals and #aiProcess_GenNormals are incompatible");
        return false;
    }
    if (pFlags & aiProcess_OptimizeGraph && pFlags & aiProcess_PreTransformVertices)    {
        DefaultLogger::get()->error("#aiProcess_OptimizeGraph and #aiProcess_PreTransformVertices are incompatible");
        return false;
    }
    return true;
}

from chaotic-rage.

TheJosh avatar TheJosh commented on June 12, 2024

Note that the issue with zombies not rendering appears to be only related to the Zombie model. Other models are rendering fine - even other models with animations.

from chaotic-rage.

TheJosh avatar TheJosh commented on June 12, 2024

When I run assimp info on the zombie.dae model using version 3.0 I get lots of info including:

Minimum point      (-1.761364 -0.027560 -3.411929)
Maximum point      (1.181818 18.128241 3.269613)
Center point       (-0.289773 9.050341 -0.071158)

assimp 3.1.1 gives this instead:

Minimum point      (-0.001761 -0.000028 -0.003412)
Maximum point      (0.001182 0.018128 0.003270)
Center point       (-0.000290 0.009050 -0.000071)

It appears to think that the model is much smaller than it actually is. This might be a regression.

from chaotic-rage.

TheJosh avatar TheJosh commented on June 12, 2024

I might be this assimp/assimp@d411cbfbf4a5f0

from chaotic-rage.

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.