I’m using Blender 2.48a and Chicken R91 with Python 2.5. (So that Blender uses Panda’s Python.)
I can export meshes/textures fine; if I export stuff with octree/collisiontree settings, I don’t get an error message.
I tried to mess with the Roaming Ralph demo: changed the character to one made by me, and the collisions worked fine. However when I tried to change the terrain to a mesh of mine, the collision ceased to work *(it’s just a plane, with some bumps, just like the original). I found out that the collision queue is always empty, and my actor is constantly put back to the starting position.
Could someone elaborate, how to set up collisions on chicken exported models? When to use the collision-tree options?
I thought I would go for the simpler “collide with geometry” route, but there’s nothing about it in the manual.
that different is not so critical.
in the original world.egg the visual geometry is used as collision geometry.
in the collision-octree those are seperate sets of geometry (which is a lot faster).
your actual problem is probably caused by
if (len(entries)>0) and (entries.getIntoNode().getName() == "terrain"):
in the roaming ralph code. it checks if the collision appeared on a node named “terrain”. you may whish to replace that name with the name of the node which contains your ground. or you rename that node to “terrain”. or you delete that check entirely.
Actually,calling “show” on the “environ” didn’t work as it’s not the “Plane” itself, but a parent of the Plane. However calling “show” on the Plane resulted in a trianglemesh drawn(with edges, without shading). However, I found another useful thread here. It says, that you should set the objects attribute in Blender to “Polyset keep descend”, where the keep means, that it should be drawn as well.