Git Product home page Git Product logo

Comments (7)

Robmaister avatar Robmaister commented on July 16, 2024

Nope, the OBJ loader is very much hacked together, I made it work with the Recast sample model and that was good enough. The only immediately obvious thing I can see for it not loading or crashing is if the file lacked normals, since I assume that each face index is provided as v//n or v/t/n. If it's v or v/t, it should crash with an IndexOutOfBoundsException.

If you give me the .obj file (or at least one that was made by the same exporter), I'll generalize the loader to make it work with that file as well.

I can also throw in a button that lets you open a .obj file to make it easier to test various files.

from sharpnav.

SallyDT avatar SallyDT commented on July 16, 2024

I sent to your email.

from sharpnav.

Robmaister avatar Robmaister commented on July 16, 2024

The scale of the level you emailed me was significantly greater than the scale of the Recast sample, increasing the size of the far-clip plane and setting the camera position to the center of the model made it all visible (though moving really slow)

At the moment, it's crashing at the same part in NavMeshDetail that the Recast sample does when the cell size is set large enough to avoid running out of memory, so I'd consider this issue solved.

from sharpnav.

AqlaSolutions avatar AqlaSolutions commented on July 16, 2024

Just noticed that your obj importer can't import meshes made with quads.

from sharpnav.

Robmaister avatar Robmaister commented on July 16, 2024

It should have the ability to do so. In fact, nav_test.obj is mostly quads. Are you having an issue with a specific obj file? My obj importer was written very quickly and not with compatibility, maintainability, or performance in mind. It's just a shim to get a basic level loaded. If you've got a specific obj that isn't working, either try and debug it yourself and send me a pull request with the fix, or send the obj file my way and I might look at it when I have some free time.

from sharpnav.

Robmaister avatar Robmaister commented on July 16, 2024

The OBJ loader included in SharpNavEditor should support the spec and most (if not all) edge cases gracefully. I'll leave this open for a week if either of you still have issues with OBJ loading. @SallyDT @AqlaSolutions

from sharpnav.

Robmaister avatar Robmaister commented on July 16, 2024

Assuming this is solved. Feel free to reopen this one or create a new one if that's not the case.

from sharpnav.

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.