Page 1 of 1

say I know a file name how to I save that file to the hd?

Posted: 26 Sep 2010, 21:27
by smoth
Like say I want to write some custom code to export an image out of gundam into a file via lua? like say a model, how would I do this?

Re: say I know a file name how to I save that file to the hd?

Posted: 27 Sep 2010, 08:00
by Argh
For writing image data, use gl.SaveImage.

In terms of details, a good method is to render the Unit to a FBO, then save the results. See jK's unit-icon creation script for an example.