i managed to generate a octree file, but the collision with the octree model doesnt seem to be working.
my file looks like this:
<CoordinateSystem> { Z-Up }
<Collide> { Polyset keep descend } <VertexPool> walkingground.verts {
<Vertex> 0 {
-24.83 -1.13694 -20.0926
<UV> { 0.25 0 }
<Normal> { 0 0 1 }
}
<Vertex> 1 {
-24.83 -0.533698 -20.0926
<UV> { 0.25 0.25 }
<Normal> { 0 0 1 }
}
<Vertex> 2 {
-25.2058 -0.533698 -20.0926
<UV> { 0.234263 0.25 }
<Normal> { 0 0 1 }
}
<Vertex> 3 {
-25.2063 -1.13694 -20.0926
<UV> { 0.234244 0 }
<Normal> { 0 0 1 }
}
<Vertex> 4 {
-14.7407 -1.13486 -20.0926
<UV> { 0.672425 0.000859034 }
<Normal> { 0 0 1 }
}
<Vertex> 5 {
-15.4454 -1.13694 -20.0926
<UV> { 0.642919 0 }
<Normal> { 0 0 1 }
}
.
.
.
.
<Group> {
<Group> {
<Group> {
<Group> {
<Group> leaf_0_0_0 {
}
<Group> leaf_1_0_0 {
}
<Group> leaf_0_0_1 {
}
<Group> leaf_1_0_1 {
}
}
<Group> {
<Group> leaf_2_0_0 {
}
<Group> leaf_3_0_0 {
}
<Group> leaf_2_0_1 {
}
<Group> leaf_3_0_1 {
}
}
.
.
.
does this octree file look correct?
and also, if i want to use the octree.egg in c++, do i just include the model file and do it like the normal “roaming ralph in c++” example?
please help… thanks