Skip to content

.Obj exported from Unity3D causes System.IndexOutOfRangeException #68

@Mirazes

Description

@Mirazes

@Robmaister
When i start example from repo to load .obj and generate navmesh i get IndexOutOfRangeException on file ObjModel.cs line 88: if (!int.TryParse(line[1].Split('/')[2], out n0)) continue;

I'm using obj exporter from http://wiki.unity3d.com/index.php?title=TerrainObjExporter
I can open .obj file generated by exporter inside blender and 3D builder so the format should not be a problem here.

StackTrace

   target SharpNav.Examples.ObjModel..ctor(String path) 
file SharpNav.Examples\ObjModel.cs:rivillä 88

   target SharpNav.Examples.ExampleWindow.LoadLevel() 
file SharpNav.Examples\ExampleWindow.Drawing.cs:rivillä 124

   target SharpNav.Examples.ExampleWindow.OnLoad(EventArgs e) file SharpNav.Examples\ExampleWindow.cs:rivillä 129

   target OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
   target SharpNav.Examples.Program.Main(String[] args) file 
SharpNav.Examples\Program.cs:rivillä 16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions