Comments (7)
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.
I sent to your email.
from sharpnav.
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.
Just noticed that your obj importer can't import meshes made with quads.
from sharpnav.
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.
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.
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)
- Agents do not move when requested target is on the same polygon HOT 4
- Using SharpNav.SharpDX in conjunction with SharpDX 3.0.1 HOT 4
- FixupCorridor IndexOutOfRangeException HOT 11
- FindRandomPointAroundCircle IndexOutOfRangeException HOT 2
- No nearby polys InvalidOperationException
- Fail to compile against .NET 3.5 HOT 8
- .Obj exported from Unity3D causes System.IndexOutOfRangeException HOT 9
- OpenGL error on Example HOT 10
- .net standard version HOT 2
- ERROR HOT 1
- How to import NavMesh from Unity? HOT 1
- How are SharpNav dealing with Licenses? HOT 3
- CalcSlabEndPoints - Struct by reference needed HOT 1
- Dynamic Obstacle
- Is this library appropriate for my usage? HOT 3
- Mesh generation time. Testing on big meshes. HOT 2
- The "filter" in InitSlicedFindPath
- TiledNavMesh not lining up
- Exception: The provided PolyMesh has no vertices. HOT 1
- MergeCorridorStartMoved does not resize the path HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharpnav.