dlewin
September 23, 2007, 8:38pm
1
Hello ,
I’m just new and have a simple question after tried and read doc in the panda site & forum :
I would like to have 2 actors onto a simple plate terrain, everything is ok until I have to change the roaming ralph terrain from milkshape or Blender.
The new world is a file with just a box and is exported in .x format but there surely something missing in it :
File “Tut-Roaming-Ralph.py”, line 258, in ?
w = World()
File “Tut-Roaming-Ralph.py”, line 65, in init
ralphStartPos = self.environ.find(“**/start_point”).getPos()
AssertionError: !is_empty() at line 944 of panda/src/pgraph/nodePath.cxx
David
Azraiyl
September 23, 2007, 9:14pm
2
One node should be called “start_point”. On this point ralph will start his adventure. The terrain should be called “terrain”, or the collisions may not work as expected.
Use punzip on world.egg.pz. Afterwards you may analyze world.egg, or use the following example.
<CoordinateSystem> { Z-up }
<Group> start_point {
<Transform> {
<Matrix4> {
1.000000 0.000000 0.000000 0.000000
0.000000 1.000000 0.000000 0.000000
0.000000 0.000000 1.000000 0.000000
0.000000 0.000000 0.100000 1.000000
}
}
}
<Group> terrain {
<VertexPool> terrain {
<Vertex> 0 {
5.000000 5.000000 0.000000
}
<Vertex> 1 {
-5.000000 5.000000 0.000000
}
<Vertex> 2 {
-5.000000 -5.000000 0.000000
}
<Vertex> 3 {
5.000000 -5.000000 0.000000
}
}
<Polygon> {
<Normal> { 0.000000 0.000000 1.000000 }
<VertexRef> { 0 1 2 3 <Ref> { terrain } }
}
}
dlewin
September 23, 2007, 10:12pm
3
it seems you give just the right answer,
going to try this .
thank you
PS : what are the main software used for terrain construction ? Milkshape (not free) Blender (crash often with .x files) ?
Azraiyl
September 23, 2007, 10:24pm
4
I’m not the right person to answer this question.
So far sourceforge.net/projects/chicken-export/ works very well for me. The egg format has the advantage that it’s IMO simple to understand.
With planetside.co.uk/terragen/ you may export an LWO file, import it into blender and re-export it to the egg file format.
Azraiyl
dlewin
September 24, 2007, 7:15pm
5
ah ! I’m sorry to ask that question but :
ralphStartPos = self.environ.find("**/start_point").getPos()
is in the code, so is this the node you talk about ? because I still have a
C:\Python25\Panda3D-1.4.0\samples\Feature-Tutorials–Roaming-Ralph>ppython Tut-Roaming-Ralph.py
DirectStart: Starting the game.
Warning: DirectNotify: category ‘Interval’ already exists
Known pipe types:
wglGraphicsPipe
(3 aux display modules not yet loaded.)
:util(warning): Adjusting global clock’s real time by 0.646445 seconds.
Assertion failed: !is_empty() at line 944 of panda/src/pgraph/nodePath.cxx
Traceback (most recent call last):
File “Tut-Roaming-Ralph.py”, line 258, in ?
w = World()
File “Tut-Roaming-Ralph.py”, line 65, in init
ralphStartPos = self.environ.find(“**/start_point”).getPos()
AssertionError: !is_empty() at line 944 of panda/src/pgraph/nodePath.cxx
C:\Python25\Panda3D-1.4.0\samples\Feature-Tutorials–Roaming-Ralph>
dlewin
September 24, 2007, 7:23pm
6
please do not read the previous post as it was a misnamed file error,
for the rest like apply a texture to that white box, I think there is something described in the doc
thank you