On Thu, 20 Oct 2005 14:15:43 +0200 Henning Hasemann <[EMAIL PROTECTED]> wrote:
> Hello again, > Im using soya.Land.from_image for creating level-maps, but experience > shows this takes quite long with larger maps (1024x1024 takes 7 seconds > on my P4). > Since the image I feed into this lovely function wont change often I > thought it would be nice to somehow save the generated landscape. > > A first look tells me theres no save()-Function I could use, so I'm > pickling it myself. I was happy to see correct height-values after > unpickling but I cant see the landscape because I cant update the > parent-attribute to my 'scene'-object. Use scene.add(land) to re-set the parent. When pickling Soya object, Soya "forget" the parent on purpose (else all the scene would be pickled !). If you want to use the save() function, you need to put your land in a world, e.g. you can save the land with the scene with scene.save(). Jiba
