make icon

Blitz3D Forums/Blitz3D Programming/make icon

Picklesworth(Posted 2004) [#1]
does anyone have a code snippet that would make an icon of a 3D object at any point in time and save it as an image?


jhocking(Posted 2004) [#2]
No code snippet but this would be a cinch to write. After RenderWorld, CopyRect a portion of the BackBuffer over to an ImageBuffer and use SaveImage.


Picklesworth(Posted 2004) [#3]
That's what I was thinking, but how would I get the camera position perfect?


jhocking(Posted 2004) [#4]
Very carefully.

Sorry for the cheeky answer. I don't know the math off the top of my head, but you could use MeshHeight and MeshWidth to determine the size of the object and then use that information to position the camera, making the code flexible in handling any size object.