Hi, im sure this is prolly a dumb question, but i am trying to import an egg to blender so i can take cool renders of it. it’s hard to explain but its actually a whole level (like multiple models put together for a game area) i made and i converted it to an egg file so i could import it in blender to take pics of it. but cuz of the way panda3d handles collisions with meshes, blender thinks theres models overlayed and there is z-fighting! Whats the easiest way to delete all the collision nodes? I am not really a coder, just a noob learning. sorry and thanks!
Can you check your egg file to see if it contains the following?
<Group> name {
<Collide> { Polyset }
(vertexpool)
(polygons)
}
If you have something like this, delete <Collide> {Polyset}
And if it doesn’t work, try going back.
Hmm… A few approaches occur to me, depending on the specifics of the models. Here are two:
First, in Blender, you could try to identify one of the collision-objects and see whether it has a name that seems likely to be shared with other collision-objects. (e.g. It’s called something like “collision.001” or “CollisionTube.031”–or something like that.)
If so, then you can perhaps have Blender select all objects with similar names (e.g. “collision." or "Collision” for the above examples), and simply delete them.
(In my–old!–version of Blender, in the 3D view, under the “Select” menu, there’s a menu-item labelled “Select Pattern”. Perhaps look for something similar in whatever version of Blender you use.)
Second, you could write a simple Python program to load your model, search it for collision-objects (i.e. nodes of type “CollisionNode”), delete them, and then write the model out anew via the “writeBamFile” method.
Thank you both so much!! lifesavers!!! i used blender select pattern and it works perfect!