23.06.2014, 12:08
ehh... install everything below
python 2.7
pillow
numpy
scientific
then open convert.py with notepad and modify this code:
(coordinates and rotation are similar to CreateObject parameters)
picture name is path to the picture (for example, 'C:\\new_folder\\picture.png'), or just picture name if the picture in the same folder with script.
output file is text file name, where the pawn script will be placed.
example picture and output file are here
https://www.dropbox.com/s/tgl193bb561ryw5/pic.rar
After you get .txt file, just place code into your pawno script, in the place where you create objects (with #include "out.txt" or just copy-paste)
don't use large images! 300*200 is enough. If you need more quality, I'll modify script for smaller objects. But as I said, back side of picture will be damaged
python 2.7
pillow
numpy
scientific
then open convert.py with notepad and modify this code:
Code:
#rotation vector for the picture angle = Vector(0,0,0) #coordinates of picture center start_pos = Vector(-757.512390, 1896.021484, 59.6) #name of the picture file picture_name = 'dash.png' #name of the output file out_name = 'dash.txt'
picture name is path to the picture (for example, 'C:\\new_folder\\picture.png'), or just picture name if the picture in the same folder with script.
output file is text file name, where the pawn script will be placed.
example picture and output file are here
https://www.dropbox.com/s/tgl193bb561ryw5/pic.rar
After you get .txt file, just place code into your pawno script, in the place where you create objects (with #include "out.txt" or just copy-paste)
don't use large images! 300*200 is enough. If you need more quality, I'll modify script for smaller objects. But as I said, back side of picture will be damaged