Create egg file from existing nodepath

Subject says it all. I’ve procedurally generated a NodePath from GeoMipTerrain, and want to be able to save it to an egg file. Not really finding any how-to’s on this subject… any help would be great!

As far as I know, the only way to do this is to write the data to a .bam file using nodePath.writeBamFile(f), and then invoking bam2egg.

Note that bam2egg is not a lossless conversion. Some features may not be supported.