cannot load new geometry file in RecastDemo
AleksanderKamienski opened this issue · comments
I would like to load the geometry of the floor plan in the .obj file format into the RecastDemo program and then build navmesh. The file content is as follows:
o Face0
v 15.94 0.99 18.19
v 17.54 0.99 18.19
v 17.54 0.99 19.94
v 15.94 0.99 19.94
f 1//1 2//1 3//1 4//1
o Face1
v 21.99 0.99 14.59
v 23.79 0.99 14.59
v 23.79 0.99 15.59
v 21.99 0.99 15.59
f 5//1 6//1 7//1 8//1
o Face2
v 23.04 0.99 18.29
v 23.69 0.99 18.29
v 23.69 0.99 20.34
v 23.04 0.99 20.34
f 9//1 10//1 11//1 12//1
o Face3
v 26.99 0.99 18.29
v 29.09 0.99 18.29
v 29.09 0.99 19.79
v 26.99 0.99 19.79
f 13//1 14//1 15//1 16//1
o Face4
v 31.03 0.99 21.08
v 31.03 0.99 16.54
v 30.99 0.99 16.54
v 30.99 0.99 21.08
f 17//1 18//1 19//1 20//1
o Face5
v 24.74 0.99 21.08
v 24.74 0.99 21.04
v 15.48 0.99 21.04
v 15.48 0.99 21.08
f 21//1 22//1 23//1 24//1
o Face6
v 15.48 0.99 16.58
v 15.48 0.99 7.74
v 15.44 0.99 7.74
v 15.44 0.99 16.58
f 25//1 26//1 27//1 28//1
o Face7
v 24.74 0.99 7.78
v 24.74 0.99 7.74
v 15.48 0.99 7.74
v 15.48 0.99 7.78
f 29//1 30//1 31//1 32//1
o Face8
v 27.63 0.99 21.08
v 27.63 0.99 21.04
v 24.78 0.99 21.04
v 24.78 0.99 21.08
f 33//1 34//1 35//1 36//1
o Face9
v 30.99 0.99 21.08
v 30.99 0.99 21.04
v 28.49 0.99 21.04
v 28.49 0.99 21.08
f 37//1 38//1 39//1 40//1
o Face10
v 30.99 0.99 16.58
v 30.99 0.99 16.54
v 24.78 0.99 16.54
v 24.78 0.99 16.58
f 41//1 42//1 43//1 44//1
o Face11
v 15.48 0.99 21.08
v 15.48 0.99 16.54
v 15.44 0.99 16.54
v 15.44 0.99 21.08
f 45//1 46//1 47//1 48//1
o Face12
v 24.78 0.99 18.58
v 24.78 0.99 16.54
v 24.74 0.99 16.54
v 24.74 0.99 18.58
f 49//1 50//1 51//1 52//1
o Face13
v 24.78 0.99 21.08
v 24.78 0.99 19.44
v 24.74 0.99 19.44
v 24.74 0.99 21.08
f 53//1 54//1 55//1 56//1
o Face14
v 24.78 0.99 16.58
v 24.78 0.99 7.74
v 24.74 0.99 7.74
v 24.74 0.99 16.58
f 57//1 58//1 59//1 60//1
o Face15
v 20.59 0.99 16.54
v 20.59 0.99 16.58
v 24.74 0.99 16.58
v 24.74 0.99 16.54
f 61//1 62//1 63//1 64//1
o Face16
v 19.73 0.99 16.58
v 19.73 0.99 16.54
v 15.48 0.99 16.54
v 15.48 0.99 16.58
f 65//1 66//1 67//1 68//1
o Face17
v 18.59 0.99 10.64
v 21.59 0.99 10.64
v 21.59 0.99 13.64
v 18.59 0.99 13.64
f 69//1 70//1 71//1 72//1
o Face18
v 24.74 0.0 16.54
v 24.74 0.0 7.74
v 15.44 0.0 7.74
v 15.44 0.0 16.54
f 73//1 74//1 75//1 76//1
o Face19
v 24.74 0.0 21.04
v 24.74 0.0 16.54
v 15.44 0.0 16.54
v 15.44 0.0 21.04
f 77//1 78//1 79//1 80//1
o Face20
v 30.99 0.0 21.04
v 30.99 0.0 16.54
v 24.74 0.0 16.54
v 24.74 0.0 21.04
f 81//1 82//1 83//1 84//1
For better visualization when we draw above coordinates, we will get the following image:
I want to generate a navigation mesh in RecastDemo program. Unfortunately, after pressing the "load" button, nothing happens:
I'm using Ubuntu 22.04. Have any of you had the same problem and have any tips on how to solve it?
I found that the .obj files should be placed in the RecastDemo/Bin/Meshes folder and then they can be loaded into the program from the drop-down list