[FilterScript] Camera Editor - Cinematic Creator
#1

Hello guys! Today i want to present you a script i made, because i needed a way of filming a shot from the same position every time. As the title of this topic says this is a camera editor wich lets you create cameras that can interpolate in 3 different ways, or that can be static.

TUTORIAL/DEMO VIDEO

Commands:
Quote:
/newcam - This command is used to create a new camera.

/camint - This will let you change the interpolation state of your camera.

/editcam - This will display the edit UI, wich you can use to change camera\'s position.

/editlook - This will display the edit UI, wich you can use to change the position where your camera is looking.

/ieditcam - This will display the edit UI, wich you can use to change interpolated camera\'s position.

/ieditlook - This will display the edit UI, wich you can use to change the interpolated position where your camera is gonna look.

/camtime - This edits the camera position interpolation time.

/looktime - This edits the camera look at interpolation time.

/playcam - This will play the camera animation.

/stopcam - This will get you out of camera mode.

/exportcam - This will export the code lines you need to implement a camera animation in your script.

Notes:
Quote:
1.All the cameras will be saved in the scriptfiles in a database called camdb.db.

2.All the exported cameras will output in scriptfiles in a file called cameraexports.txt.

3.You can create up to 100 cameras, you can enlarge this limit by editing \'MAX_CAMS\' from within the script.

4.If you manage to fill the database, you have to delete the camdb file if you want to create more cameras.

ToDo List:
Quote:
1.Camera select command, so you don\'t have to type the id at every single command.

2.Sequence creator, that lets you select multiple cameras and play them in order.(For movie creators)

3.Improved visuals(gizmos)

4.Flymode camera edit compatibility

Instalation:
Quote:
1.Download the cameditor.rar

2.Unzip the archive.

3.Copy and paste the two folders into your gamemode folder.

4.Open server.cfg with notepad, and add \'cameraeditor\' to your filterscripts. Also add \'streamer\' and \'sscanf\' to the plugins line. If you dont have the line, create it under the filterscripts.

5.Run the server and thats it!

P.S If you have any suggestions, let me know by commenting down there.
Reply
#2

Bro you\'re a legend!
Reply
#3

That\'s Awesome
Reply
#4

Hreat release dude.
Reply
#5

Works well
Reply
#6

Quote:
Originally Posted by Flashhiee
View Post
4.Flymode camera edit compatibility
Having played around a lot with camera angles myself, I can see the appeal of this FS. However, knowing from experience, the above mentioned feature is a real must for productivity. Say you want to have a really precise shot, right now you\'d have to constantly enter and exit the edit mode, because you can\'t see what exact point the camera is looking at.


Judging from the video, the rest seems great though.
Reply
#7

Quote:
Originally Posted by Uproar
View Post
Bro you\'re a legend!
Quote:
Originally Posted by BulletRaja
View Post
That\'s Awesome
Quote:
Originally Posted by DonaldDuck
View Post
Hreat release dude.
Quote:
Originally Posted by KayJ
View Post
Works well
Thans for all the kind words! I apreciate it!

Quote:
Originally Posted by Freaksken
View Post
Having played around a lot with camera angles myself, I can see the appeal of this FS. However, knowing from experience, the above mentioned feature is a real must for productivity. Say you want to have a really precise shot, right now you\'d have to constantly enter and exit the edit mode, because you can\'t see what exact point the camera is looking at.


Judging from the video, the rest seems great though.
Right, thats why i want to make it more easy to use, to improve the work flow.
Reply
#8

Nice
Reply
#9

interessante !
Reply
#10

Hi, I\'m facing some trouble.

So I instaled how you said, extract the .pwn and .amx into FilterScript Folder and add "cameraeditor" at FilterScript Line at server.cfg
PHP Code:
echo Executing Server Config...
lanmode 0
rcon_password lol123
maxplayers 50
port 7777
hostname Tests
gamemode0 grandlarc 1
filterscripts flymode cameraeditor
announce 0
chatlogging 0
weburl www
.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat 
[%H:%M:%S]
language English 
HTML Code:
[00:01:18] 
[00:01:18] Server Plugins
[00:01:18] --------------
[00:01:18]  Loaded 0 plugins.

[00:01:18] 
[00:01:18] Filterscripts
[00:01:18] ---------------
[00:01:18]   Loading filterscript \'flymode.amx\'...
[00:01:18]   Loading filterscript \'cameraeditor.amx\'...
[00:01:18]   Loaded 2 filterscripts.

[00:01:18] Loaded 3 vehicles from: vehicles/trains.txt
[00:01:18] Loaded 3 vehicles from: vehicles/pilots.txt
[00:01:18] Loaded 15 vehicles from: vehicles/lv_law.txt
[00:01:18] Loaded 39 vehicles from: vehicles/lv_airport.txt
[00:01:18] Loaded 255 vehicles from: vehicles/lv_gen.txt
[00:01:18] Loaded 38 vehicles from: vehicles/sf_law.txt
[00:01:18] Loaded 35 vehicles from: vehicles/sf_airport.txt
[00:01:18] Loaded 353 vehicles from: vehicles/sf_gen.txt
[00:01:18] Loaded 24 vehicles from: vehicles/ls_law.txt
[00:01:18] Loaded 37 vehicles from: vehicles/ls_airport.txt
[00:01:18] Loaded 98 vehicles from: vehicles/ls_gen_inner.txt
[00:01:18] Loaded 389 vehicles from: vehicles/ls_gen_outer.txt
[00:01:18] Loaded 71 vehicles from: vehicles/whetstone.txt
[00:01:18] Loaded 168 vehicles from: vehicles/bone.txt
[00:01:18] Loaded 61 vehicles from: vehicles/flint.txt
[00:01:18] Loaded 96 vehicles from: vehicles/tierra.txt
[00:01:18] Loaded 96 vehicles from: vehicles/red_county.txt
[00:01:18] Total vehicles from files: 1781
[00:01:18] 
---------------------------------------
[00:01:18] Running Grand Larceny - by the SA-MP team

[00:01:18] ---------------------------------------

[00:01:18] Number of vehicle models: 173
[00:01:51] [connection] 127.0.0.1:58345 requests connection cookie.
[00:01:52] [connection] incoming connection: 127.0.0.1:58345 id: 0
[00:01:52] [join] Nizarh has joined the server (0:127.0.0.1)
[00:05:24] RCON (In-Game): Player #0 (Nizarh) has logged in.


none of your command is working.

Do I need any different include? Like ZCMD or sscanf?
Reply
#11

@Flashhie, Salut! good job mate.

But after i\'ve checked into the pwn file, i saw the includes list which is:
PHP Code:
#include <a_samp>

#include <YSI\y_iterate>
#include <YSI\y_commands>
#include <YSI\y_master>
#include <streamer>
#include <sscanf2>
#pragma dynamic 500000 
Don\'t you think you have forgotten zcmd.inc? because all your command are being processed by ZCMD.

for example"
PHP Code:
CMD:newcam (playeridparams[]) 
same parameters as ZCMD\'s one.


So the includes list should be like that:

PHP Code:
#include <a_samp>

#include <YSI\y_iterate>
#include <YSI\y_commands>
#include <YSI\y_master>
#include <streamer>
#include <sscanf2>
#include <zcmd> //Add this 
Reply
#12

Quote:
Originally Posted by Nizarh
View Post
Hi, I\'m facing some trouble.

So I instaled how you said, extract the .pwn and .amx into FilterScript Folder and add "cameraeditor" at FilterScript

none of your command is working.

Do I need any different include? Like ZCMD or sscanf?
You have to use the sscanf plugin, and also streamer plugin. I forgot to add them to the tutorial.


EDIT: Installation guide and download link updated!

Quote:
Originally Posted by RxErT
View Post
@Flashhie, Salut! good job mate.

But after i\'ve checked into the pwn file, i saw the includes list which is:
PHP Code:
#include <a_samp>

#include <YSI\y_iterate>
#include <YSI\y_commands>
#include <YSI\y_master>
#include <streamer>
#include <sscanf2>
#pragma dynamic 500000 
Don\'t you think you have forgotten zcmd.inc? because all your command are being processed by ZCMD.

for example"
PHP Code:
CMD:newcam (playeridparams[]) 
same parameters as ZCMD\'s one.


So the includes list should be like that:

PHP Code:
#include <a_samp>

#include <YSI\y_iterate>
#include <YSI\y_commands>
#include <YSI\y_master>
#include <streamer>
#include <sscanf2>
#include <zcmd> //Add this 
I used y_commands for this script, it does the same as zcmd but a little faster.
Reply
#13

One more thing.. How to delete camera?
There are a few bugs, the GIZMOS appear during interpolation /playcam
Reply
#14

Quote:
Originally Posted by Nizarh
View Post
One more thing.. How to delete camera?

There are a few bugs, the GIZMOS appear during interpolation /playcam
I will add a command to remove gizmos in a update

How the bug occured? Show me some evidence
Reply
#15

Quote:
Originally Posted by Flashhiee
View Post
I will add a command to remove gizmos in a update

How the bug occured? Show me some evidence
So I was on /playcam and I did this command : /camint 1 and then /playcam 1 and the gizmos appeared

Guess I shouldn\'t have done the command while spectating camera
Reply
#16

Yeah, i will fix that for the next updated so that you can\'t use /camint while in camera mode.


Thanks for the feedback! I apreciate it!
Reply
#17

Quote:
Originally Posted by Flashhiee
View Post
Yeah, i will fix that for the next updated so that you can\'t use /camint while in camera mode.


Thanks for the feedback! I apreciate it!
No problem!!
Reply
#18

Quote:
Originally Posted by Flashhiee
View Post
You have to use the sscanf plugin, and also streamer plugin. I forgot to add them to the tutorial.


EDIT: Installation guide and download link updated!


I used y_commands for this script, it does the same as zcmd but a little faster.


Ow... how didn\'t i notice it..... sorry for bothering you... I\'m just useless in everything in my life
Reply
#19

Quote:
Originally Posted by RxErT
View Post
Ow... how didn\'t i notice it..... sorry for bothering you... I\'m just useless in everything in my life
Its fine man, chill.
Reply
#20

Hi, it\'s real to find analog of this FS in .cleo or .lua? Thanks for answer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)