Getting a heightfield map into Panda3D

Hello, I have a python perlin noise implementation and I use pyglet with it to generate a heightfield map. However in my game I would like the player to be able to generate a map that is playable straight away. (I’m pretty sure pyglet images aren’t saved until you quit out) At the moment I run the program to generate the heightfield, then run the game which uses the heightfield. I can’t seem to do both :frowning:

Is there something in Panda3D for blitting images to a texture (that’s how I do it in pyglet) and saving it to be used as a heightfield?

I hope I’ve explained it properly, thanks for any help :slight_smile:

If I understand your desire correctly, then I think that this is what you want. :slight_smile:

Thanks that’s what I was looking for :smiley: Do you know how I would save an image? I’ve managed to make a heightfield image but I want to see what it looks like because my maps are turning out a bit :open_mouth:

Just found out it’s write :slight_smile: