make icon
Blitz3D Forums/Blitz3D Programming/make icon
| ||
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? |
| ||
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. |
| ||
That's what I was thinking, but how would I get the camera position perfect? |
| ||
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. |