Hi,
I’m trying to sort of re-create the Roaming Ralph sample using my own ground geometry but my .egg file doesn’t seem to be producing the data.
I manually added the line:
<Collide> { Polyset keep descend }
just under the first
<Group>
tag.
But if I look at the model in pview and do Shift+L to show the nodes it only says there is a GeomNode, this is the same in DirectTools.
I’ve also tried using FenrirWolf’s method ([url]GeomNode vs CollisionPolygon]) but that doesn’t seem to work either, maybe I’m using it wrong.
Could anyone help? Anyone else come across this problem?
Thanks for the help,
Poncho
P.S. Here is my .egg file:
<CoordinateSystem> { Z-Up }
<Texture> Tex1 {
"../../textures/Tiles/tile_choke1.png"
<Scalar> format { rgba }
<Scalar> wrapu { repeat }
<Scalar> wrapv { repeat }
<Scalar> minfilter { linear_mipmap_linear }
<Scalar> magfilter { linear }
<Scalar> envtype { modulate }
}
<Group> character {
<Collide> { Polyset keep descend }
<Dart> { 1 }
<Group> Tile_Choke1 {
<VertexPool> Tile_Choke1.verts {
<Vertex> 0 {
-64.3666 -57.5964 2.40486
<UV> { 0 0.0447805 }
<Normal> { 0 0 1 }
}
<Vertex> 1 {
-64.3666 -65.5964 2.40486
<UV> { 0 0 }
<Normal> { 0 0 1 }
}
<Vertex> 2 {
-56.3666 -65.5964 2.40486
<UV> { 0.0447805 0 }
<Normal> { 0 0 1 }
}
<Vertex> 3 {
-56.3666 -57.5964 2.40486
<UV> { 0.0447805 0.0447805 }
<Normal> { 0 0 1 }
}
<Vertex> 4 {
-48.3666 -65.5964 2.40486
<UV> { 0.0895611 0 }
<Normal> { 0 0 1 }
}
<Vertex> 5 {
-48.3666 -57.5964 2.40486
<UV> { 0.0895611 0.0447805 }
<Normal> { 0 0 1 }
}
<Vertex> 6 {
-48.3666 -49.5964 2.40486
<UV> { 0.0895611 0.0895611 }
<Normal> { 0 0 1 }
}
<Vertex> 7 {
-56.3666 -49.5964 2.40486
<UV> { 0.0447805 0.0895611 }
<Normal> { 0 0 1 }
}
<Vertex> 8 {
-64.3666 -49.5964 2.40486
<UV> { 0 0.0895611 }
<Normal> { 0 0 1 }
}
<Vertex> 9 {
-40.3666 -65.5964 2.40486
<UV> { 0.134342 0 }
<Normal> { 0 0 1 }
}
<Vertex> 10 {
-40.3666 -57.5964 2.40486
<UV> { 0.134342 0.0447805 }
<Normal> { 0 0 1 }
}
<Vertex> 11 {
-32.3666 -65.5964 2.40486
<UV> { 0.179122 0 }
<Normal> { 0 0 1 }
}
<Vertex> 12 {
-32.3666 -57.5964 2.40486
<UV> { 0.179122 0.0447805 }
<Normal> { 0 0 1 }
}
<Vertex> 13 {
-32.3666 -49.5964 2.40486
<UV> { 0.179122 0.0895611 }
<Normal> { 0 0 1 }
}
<Vertex> 14 {
-40.3666 -49.5964 2.40486
<UV> { 0.134342 0.0895611 }
<Normal> { 0 0 1 }
}
EDIT: Cut out most of the .egg file because it was way too long.