SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 22/06/2014, 08:23 PM   #1
DialUp
Big Clucker
 
DialUp's Avatar
 
Join Date: Jan 2014
Location: SIL, Russia
Posts: 102
Reputation: 144
Default SAMP arts

PROJECT CONTINUES HERE AS INCLUDE
================================================== ==============
Did you want to place some picture on your map?
I made a tool to convert your images to SAMP objects with text!

Picture example (mode 1, 437x151 PNG image)


don't like ponies? ok, here is example of max possible quality without using streamer plugin (mode 3, 640x360 PNG image):


That's not photoshop, lol. Every player on your server will be able to see this picture.


F.A.Q.

Q: How to use it?
A:
1. Download this archive with the latest version of script (sources included)
2. Unpack the archive and execute run_cmd file, that will open command line
3. To see available options, type convert -help

4. Use the script by executing command with options, for example,
convert -i mypicture.png -o myinclude.inc -s "-760.0 1900.0 60.0" -m 2 -c 1
5. Add the result include file in your gamemode or filterscript, where you usually place CreateObject calls

Q: Picture? What picture should I use?
A: I recommend using small pictures to reduce objects amount, for example, 225x120 picture takes 120 objects. Every object contains 15x15 part of image, so it will be better to use image with width and height dividable by 15.

Q: What if I want to place several pictures on my map?
A: Since version 0.3, script uses directives to prevent collisions. Just place several includes in your script.

Q: I want to move the picture, but I don't want to execute the script every time. Is there any easier way?
A: Since v0.2, script places start coordinates in the top of the include file. Just modify them. Rotation is much harder to change, currently you have to re-build include to modify picture rotation

TUTORIAL (without comments)
[ame]http://www.*******.com/watch?v=tH6Au0o346Q[/ame]

DOWNLOAD DEMO FILTERSCRIPT
P.S. If you want another art size, find square (or near to square) and single textured SA:MP object. I found only 4 good ones
made by DialUp, member of MSU Graphics and Media lab

Last edited by DialUp; 18/10/2015 at 04:06 PM.
DialUp is offline   Reply With Quote
Old 22/06/2014, 08:47 PM   #2
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,183
Reputation: 169
Default Re: SAMP arts

Can someone tell me how do we use the code? Can someone compile it?
__________________
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.
Tamer is offline   Reply With Quote
Old 22/06/2014, 08:54 PM   #3
DialUp
Big Clucker
 
DialUp's Avatar
 
Join Date: Jan 2014
Location: SIL, Russia
Posts: 102
Reputation: 144
Default Re: SAMP arts

Python is interpreter. You need to install Python 2.7, all needed libs (PILlow, Scientific and NumPy), then just execute the script

actually, for example picture I've used smaller object type, but back side of picture was inverted, so I left bigger ones in the release.
DialUp is offline   Reply With Quote
Old 23/06/2014, 02:35 AM   #4
AiRaLoKa
Huge Clucker
 
AiRaLoKa's Avatar
 
Join Date: Aug 2013
Location: Indonesia! Nickname: [MP]AiRa_
Posts: 404
Reputation: 27
Default Re: SAMP arts

nice but i dont know how to use it :/
__________________
sorry for my fucking bad english... becouse i'm Indonesian!
~~> Find all threads started by AiRaLoKa <~~

AiRaLoKa is offline   Reply With Quote
Old 23/06/2014, 11:10 AM   #5
amirab
Banned
 
Join Date: Apr 2013
Location: UK maybe :P
Posts: 509
Reputation: 69
Default Re: SAMP arts

can some one teach me how to use it?
this is my skype please add my skype DialUp and teach me this
I'll +REP you

amirab_best
amirab is offline   Reply With Quote
Old 23/06/2014, 12:08 PM   #6
DialUp
Big Clucker
 
DialUp's Avatar
 
Join Date: Jan 2014
Location: SIL, Russia
Posts: 102
Reputation: 144
Default Re: SAMP arts

ehh... install everything below
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'
(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
DialUp is offline   Reply With Quote
Old 23/06/2014, 02:19 PM   #7
FahadKing07
Gangsta
 
FahadKing07's Avatar
 
Join Date: Oct 2013
Location: Miami
Posts: 708
Reputation: 64
Default Re: SAMP arts

Wow its awesome. Great Work.

Keep it up.

+REP
__________________
Want money to host? Want to sell your gamemode? I will pay, message me.

|| Entrepreneur | Marketing Expert ||
FahadKing07 is offline   Reply With Quote
Old 23/06/2014, 03:43 PM   #8
Barnwell
Banned
 
Join Date: May 2014
Location: England
Posts: 600
Reputation: 40
Default Re: SAMP arts

Nice good job!
Barnwell is offline   Reply With Quote
Old 23/06/2014, 06:04 PM   #9
Mckarlis
Banned
 
Join Date: Jun 2013
Location: England
Posts: 800
Reputation: 86
Default Re: SAMP arts

Nice job
Mckarlis is offline   Reply With Quote
Old 24/06/2014, 01:38 AM   #10
amirab
Banned
 
Join Date: Apr 2013
Location: UK maybe :P
Posts: 509
Reputation: 69
Default Re: SAMP arts

Thanks For Your Help, TESTED AND...
Holy Shit This Is Awesome +REP
amirab is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Instail Samp Cpanel Into Website To Make Samp Server Panel MrTransport Scripting Help 6 14/08/2015 05:16 PM
Martial Arts Movies [ABK]Antonio Everything and Nothing 11 20/04/2014 08:04 PM
[Map] GYM for martial arts morchali Maps 5 09/01/2014 08:59 AM
SAMP Add a 'A new version of samp is available' text at the start of samp client. Tomboeg General 16 29/03/2013 06:06 PM


All times are GMT. The time now is 01:58 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.