Code Monkey home page Code Monkey logo

Comments (8)

ArtiomCiumac avatar ArtiomCiumac commented on July 28, 2024

AssimpException is thrown from an external component "Assimp.NET". Currently Assimp.NET v3.1 is used, but v3.2 is available. If possible - please provide a test model where the issue can be reproduced so we can test if the update of the library will fix the issue.

from sharpdx.

RecursiveCall avatar RecursiveCall commented on July 28, 2024

@ArtiomCiumac I tested with tank.fbx from http://xbox.create.msdn.com/en-US/education/catalog/sample/reach_graphics_demo.

from sharpdx.

ArtiomCiumac avatar ArtiomCiumac commented on July 28, 2024

Based on this: http://sourceforge.net/p/assimp/bugs/126/ and this: http://blenderartists.org/forum/showthread.php?249973-GSoC-Blender-FBX-Importer&p=2322733&viewfull=1#post2322733 it is a bug in the assimp library which is used as backend for model building, therefore it cannot be fixed in SharpDX context, until it will be fixed in the assimp lib.

from sharpdx.

RecursiveCall avatar RecursiveCall commented on July 28, 2024

With the latest dev code, this issue is still there. I suppose you closed it because it can't be resolved without an update to Assimp, but are there any recommendations/workarounds for this in the meantime? Is there something specific to be done to the model prior to exporting it from 3Ds Max?

from sharpdx.

xoofx avatar xoofx commented on July 28, 2024

The only workaround I have found so far is trying to convert models to a more recent FBX 2013 format using the AutoDesk FBX 2013 converter and by using ASCII output so that you will be able to fix reference to textures that are messed up by the converter.

from sharpdx.

RecursiveCall avatar RecursiveCall commented on July 28, 2024

I updated to the 2013 converter and exported a simple sphere (no UV mapping, no textures) and the tank from the XNA sample using the FBX 2013 format. The models compiled but when drawing either one, it's as if all of the vertices/normals were shuffled and all of the geometry is scattered across the screen. This is the same effect if a model that was throwing the message above was opened with VS2012 and re-saved using whatever default FBX format version VS is using.
capture

from sharpdx.

xoofx avatar xoofx commented on July 28, 2024

Yes, this is a problem of matrix transpose (if you transpose all matrix in bones, that would work). But we should add an option on the model compiler to make this transpose at compile time. For some unknown reasons, Assimp or the way we call it, doesn't handle it correctly.

Could you please attach the sphere fbx model?

from sharpdx.

RecursiveCall avatar RecursiveCall commented on July 28, 2024

sphere

Sphere attached (rename extension to .fbx). Drawing it with the two foreach (ModelMesh and BasicEffect) loops and multiplying by the transposed transformed solved the problem. The confusing part, as you said, is that not all models are affected.

from sharpdx.

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.