Popular Post vovo4ka Posted March 26, 2010 Popular Post Share Posted March 26, 2010 (edited) I wondered about creating a movie, but the freecam resource by itself wouldn’t suffice. I made this resource to help moviemakers to make more cinematic camera effects and help with actors. There are several camera modes: Aligment settings: You can attach a camera to any element (car or ped) or world position Four movement modes for camera position and target: 1) Rotation around point 2) Movement to point 3) Free mode (like freecam) 4) Static mode All modes interpolated and fully configurable. Some screenshots: Main menu: Camera menu: It looks crazy but I think easy to understand Target settings identical Peds as actors The experimental part of this resource is Player Motion Capture After beginning recording your motions captured and stopping the recording- the ped can repeat(try to repeat ) your movement and actions. Ped synchronization is very bad in this version of MTA but it will suitable for simple movement. How to use This resource isn’t suitable to do one big sequence at once, think of it as trying to do a big one take video. First of all you must write a script of movie ok 1. In Map editor resource place all vehicles and objects what do you want to use in your sequence. 2. In Stage resource load the map by using "map" console command It helps to easily reset vehicle positions and health. Map will be automatically restart with each Play/Rec command 3. In Actor mode (switch director/actor mode by pressing the F6 key) Stand at the point you want to begin your sequence at(player skin, animations, and weapons will also be saved, press F1 for the freeroam menu to access such features). You can make animation hotkeys. Select animation in freeroam menu. Press = key and 2-0 key for record current animation 4. Then press the O key. Recording will begin. Do some action and then press O key again. Recording will stop. 5. Press I to reset peds positions/restart map resource 6. Now you can play the peds actions by pressing P. 7. You can delete a ped by pressing the K key and select them with cursor 8. Record other peds motions. 9. Switch to Director mode by pressing F6. 10. Now you can configure your camera with the F7 menu or play saved cameras by 2-0 keys(tutorial video will be soon) 11. Play the sequence with P key. Any screen capture software will be useful GUI menu available by pressing F2 Known Issues: Restart resource bug https://forum.multitheftauto.com/viewtopic.php?f=105&t=27018 Camera Some camera mode combinations aren't correct Peds Incorrect Ped rotation while on aiming/fire Peds teleport in vehicles Peds cannot skydiving or driveby Bad weapon fire controls. RPG doesnt shoot Next versions Correct ped rotation while weapon fire Import/Export to xml Ped look_at position recording Peds driveby Parachute Code optimization Now (since 1.4) controls are re-bindable Key and commands overview Actor mode O - Start/Stop Record Player Motion I - Reset Scene\nP - Playback Record F2 - Stage Main Menu F3 - show/hide Timer F4 - show/hide HUD F5 Free cam F1 - freeroam menu for weapons animations etc. - - Reset Current Player Animation 2-9 - Play Animation Hotkey shift + 2-9 - in bind animation hotkey mode - set animation as single action (without shift - loop mode) = - Record Animation hotkey(2-0) Animation select in FreeRoam K - kill ped Console commands sens /sensX/sensY - mouse sensivity map <mapname> - set <mapname> resource as current map minute <numeric value> - set minute duration Director Menu - F6 F7 - Camera menu I - Reset Scene P - Playback Record 2-0 - Play camera preset Camera Free mode key control: W/S - move to Target A/D - Rotation around Target Arrow Keys - move camera Mouse Look - rotate Target(if not fixed) around Position Mouse Look + LMB - rotate Position(if not fixed) around Target Space - Pitch camera (relative Target) 2-9 - Apply Camera Preset (saved on F7 menu) - - Reset Camera = - Freeze camera Version history: 1.0.1 - restartResource problem fixed (now you must start the map manualy in the server console) - Warp player into vehicle after map resource restart - Now you can select animation hotkey mode - loop/single (by SHIFT key) - Camera issue with linking to object (after map restart camera freezes) - fixed 1.2.0 - Vehicle movement quality highly improved - Vehicle lights override (by L key) - Peds can crouch 1.3.0 - Vehicle and Peds movement interpolation - Experimental fix bug with ped rotation while ped on weapon fire. Right rotation in almost all cases. If you have any ideas how to fix it - we can discuss this 1.4.0 - GUI Main menu (by F2) - Improved vehicle/peds movement quality (now avalaible few quality modes for memory save) - Implemented peds driveby (not correct aiming, but works - Vehicle speed limiter assist - Multiple players record - Save/Load rec data (also in map-resources. needs ACL rights) - Camera menu fix (now buttons [c] (set as current) and as target/position works correctly) - Re-bindable controls - Beep sounds on start/stop rec/play 1.5.0 - Fixed problem with the huge scenes: no more *NETWORK TROUBLE* when attempting to record and save a lot of actors. - Also saving huge scenes is also supported now (but it takes a lot of time - few minutes So keep count of KeyFrames lower than 15000 (instead of 2000 for earlier versions) - Emerlights resource support. (desc https://forum.multitheftauto.com/viewtop ... 08&t=44652) Download link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=646 mirror: Download stage.zip Note: Defalut Director Password: director To change password open server.lua file and edit line local pass = "director" Any feedback would help ACL configuration This resource uses the restartResource function, to use it the resource requires elevated privileges. To do this, open up the acl.xml file in your server\mods\deathmatch directory and add the highlighted line: <group name="Moderator"> <acl name="Moderator" /> <object name="resource.mapcycler" /> <object name="resource.mapmanager" /> <object name="resource.resourcemanager" /> <object name="resource.votemanager" /> [b][color=#BF0000]<object name="resource.stage" />[/color][/b] </group> If you want to load/save peds movement data in other map resources - add this line: <group name="MapEditor"> <acl name="Default" /> <acl name="MapEditor" /> <object name="resource.editor_main" /> <object name="resource.edf" /> [b][color=#BF0000]<object name="resource.stage" />[/color][/b] </group> Installation video tutorial Check my youtube channel for more videos: http://www.youtube.com/user/vovo4kaX Tutorial 1. Work with peds: Tutorial 2. Work with camera Camera demo: (it's just a freecam mode in Stage)Nice video by MykolasGX: by simsoonas 1. http://www.youtube.com/watch?v=f97ew_36eRc 2. http://www.youtube.com/watch?v=ABDOL3-uTXw 3. http://www.youtube.com/watch?v=DoFk5GlDwWs 4. http://www.youtube.com/watch?v=mMnOf7wv7MM 5. http://www.youtube.com/watch?v=QTCsMeRty9M by jjsullivan http://www.youtube.com/watch?v=apVgrcxAHug Thanks jjsullivan for help with translating this post Edited June 23, 2012 by Guest 4 Link to comment
Xierra Posted March 27, 2010 Share Posted March 27, 2010 Nice! It's Great for a trailer or something. Keep up the good work. But I don't know how to do it. Why not give a tutorial? I don't understand how to do it. Link to comment
SATAN Posted March 27, 2010 Share Posted March 27, 2010 omg awesome resource exactaly what i was looking for .. going to test it tomorrow. Link to comment
Slothman Posted March 27, 2010 Share Posted March 27, 2010 sounds genius, definitly giving it a try Link to comment
vovo4ka Posted March 27, 2010 Author Share Posted March 27, 2010 thx Now I'm recoding tutuorial Link to comment
karlis Posted March 27, 2010 Share Posted March 27, 2010 nice, 5stars, was going make some recorder too, but now im free of it btw why is crouching disabled?theres simple function isPedDucked() for geting it, and controlstate for making him crouch. also you could use ped task system for enter/exit vehicle animations Link to comment
vovo4ka Posted March 27, 2010 Author Share Posted March 27, 2010 nice, 5stars, was going make some recorder too, but now im free of it btw why is crouching disabled?theres simple function isPedDucked() for geting it, and controlstate for making him crouch. also you could use ped task system for enter/exit vehicle animations Thanx! controlstate for making him crouch - doesn't work enter/exit vehicle animations - I will try this in next version Link to comment
karlis Posted March 27, 2010 Share Posted March 27, 2010 take look at it https://community.multitheftauto.com/index.php?p= ... ils&id=234 crouch for peds is working there somehow Link to comment
vovo4ka Posted March 27, 2010 Author Share Posted March 27, 2010 Wow! Ok. Crouching will be in 1.0.1 Link to comment
Xierra Posted March 28, 2010 Share Posted March 28, 2010 It's superb! Since I saw the video here, The results is looking like in the original GTA! Well vovo4ka just now gave us a tutorial video. Take a look here: It's a beginner's tutorial how to make peds, move them, animate them, enter a vehicle (and move them), and poof, It's great! Link to comment
vovo4ka Posted March 28, 2010 Author Share Posted March 28, 2010 Tutorial are not completed jet In new version fixed some stability issues and implemented new features. Please wait release Link to comment
karlis Posted March 28, 2010 Share Posted March 28, 2010 btw i think you should make dxtext for help info, and text box with text functions for outputs, and dont use chatbox outputs anymore, because 1,000,000 chatbox outputs really can be annoying sometime Link to comment
vovo4ka Posted March 28, 2010 Author Share Posted March 28, 2010 Full help shown by F2 key. I cant make ped crouch. Ped fast crouch and stands up Make ped lookin around impossible too. Becouse SetPedLookAt works on on client-side created peds. But warpPedIntoVehicle works only with server-side ped. I can't transmit to server id of local ped. getElementsByType with "ped" argument return empty table on server. Any suggestions? Link to comment
Gamesnert Posted March 28, 2010 Share Posted March 28, 2010 I don't know if your new version fixes this, but there's a bit of an issue with the playback for me. Don't get me wrong, I really like your resource and I always wanted to see someone taking the whole concept of recording one huge step further, but there's something bothering me: I had set up a small test map, to test it a little now I know how it works thanks to your tutorial. But right at the first actor I was recording, I kind of struck a major issue: It wasn't exactly driving the path I had recorded. Check it out below: XFire: MTA Stage - Playback issue (ye I know my recording quality sucks, blame my PC) As you can see, I clearly drive off the driveway and turn west. The ped does the same, except that it doesn't seem to make the full turn. This results in the ped driving up against a wall, and a guy behind a PC (ye me) facepalming at that same ped. Sometimes repeating the playback gives slightly improved results, but it's never exactly like I recorded it, it seems. I don't know if this is fixed in the next version, but frankly, I think it's pretty high priority, don't you think? That's all for the issue, now to get to the fun part: Suggestions to make this resource even better: During recording in a vehicle, don't just record the control states (which I guess you're currently doing?), but also: position, velocity and turn velocity. This might make the recording a bit laggier, but should most certainly increase the accuracy. Create some more GUI. For instance, using a command for map loading can be quite annoying sometimes. Also, generally, GUI looks a lot more professional anyhow Make all keybinds re-bindable, by using command binds. I'm not sure if anyone would want to change the keybinds, but it's a generally good idea to support it anyway. (for instance, P is already in use by the admin panel) I'll make a small example below. Less debug messages would be nice, or putting them in another spot (like karlis already mentioned) I'm not sure if this already exists, but a way to save the recorded stage stuff would be very welcome. So if you're out of time for the day, and want to continue later on, you can simply save all movement and the map in a single resource. But also, if you want to show it to someone else, you could simply send it to that person. Instead of depending on Freeroam, I think it would be a lot more professional to have a teleporter / skin selector / animation selector / vehicle creator of your own More advanced documentation in-game. I guess you've been working on this, but just mentioning it would be useful for starters Keeping up the good work and not giving up on this project. --------------------------------------------------------------------------------------------- Re-bindable keybinds function playback() -- code code code code end addCommandHandler("Toggle playback", playback) bindKey("p", "down", "Toggle playback") This code would make "Toggle playback" show in "MTA Main Menu -> Settings -> Binds -> Stage". --------------------------------------------------------------------------------------------- Make ped lookin around impossible too. Becouse SetPedLookAt works on on client-side created peds. But warpPedIntoVehicle works only with server-side ped. I can't transmit to server id of local ped. getElementsByType with "ped" argument return empty table on server. Any suggestions? setPedLookAt only works client-side, true. But nowhere is said it only works on client-side peds? Server-side created peds and client-side created peds should work respond the same to setPedLookAt. Link to comment
vovo4ka Posted March 28, 2010 Author Share Posted March 28, 2010 Thanks for feedback! Yes there is a Great Problem - repeat player movement precisely. Using SetControlState suitable for on-foot peds but vehicle controls very bad. I'm working on it! setPedLookAt only works client-side, true. But nowhere is said it only works on client-side peds? Server-side created peds and client-side created peds should work respond the same to setPedLookAt. http://bugs.mtasa.com/view.php?id=4325 Try this code expample with getElementsByType("ped") and create 1 server-side ped and 1 client-side ------ Also you can try to use console command "dd" with parameters -10 -5 0 5 10 5 (try each of them) Maybe it will help in some cases ----- In Actor mode u can use freecam mode (F5 key) for fast movement and select ped position Link to comment
vovo4ka Posted March 29, 2010 Author Share Posted March 29, 2010 New update. Now vehicles can move over all map Thanks Gamesnert for idea save positions and speed of object. Previously I tried it but forgot about speed and movement were very lagged . Now they are lagged too) but not so strong(depends on cpu speed. sometimes while fraps recording in high resolution vehicles shakes. my laptop CPU very weak ) Peds can walk over "physic distance" too. Also new tutorial available here Link to comment
eAi Posted March 29, 2010 Share Posted March 29, 2010 I'm really impressed. We discussed making a resource like this 'officially' a few months back, but decided nobody really had the time. A few points, just from watching the video: - As others have said, try and avoid using the chatbox. We've always strongly discouraged this as it's pretty ugly and not user-friendly. You already display whether you're recording/playing back on the HUD, that should be enough - you can hide extra stuff in the console if people want it. - Minimize the number of keys - provide a GUI for them if you possibly can, even if keys are much faster, the GUI helps introduce new users. - It should be possible to integrate this inside the editor - this would probably make some things easier! - When we discussed this in the team, we talked about a timeline view - like 'real' video editors have. Here it could be really useful, you might want to make a car start driving a little earlier or later for example, or speed up or slow down a section or something. Lots of possibilities there, probably not that easy, but you see pretty capable! Adding something like that would really take things to the next level. - What about having it so you can play back a player or vehicle as a spectator (i.e. in the view you were in originally, behind them), and if you want, take over control of them? Maybe you could record the driving the first time, and the drive by the second time - or maybe you recorded a really long drive but then crashed near the end and just want to redo that bit? - Can you record different cameras and cut between them? What about adding in fade to blacks and so on? I've love to see this made into a cut scene editor, that could then be used by other resources. Even better, perhaps it could build into a co-op game mode editor, though that's fairly different! Well done! Looking forward to seeing what you do next! Link to comment
Xierra Posted March 30, 2010 Share Posted March 30, 2010 Man you're awesome! Even eAi appreciate it! Thanks so much vovo4ka. I am really wondering to make an action video. But there's one MTA bug, AI peds doesn't aim at the correct position (Server-side). That's the bad thing about it. Link to comment
Woovie Posted March 30, 2010 Share Posted March 30, 2010 Amazing resource. Keep up the awesome work. Link to comment
vovo4ka Posted March 30, 2010 Author Share Posted March 30, 2010 Thx all!!!!!! Now i'm working on GUI and new method of movement data capture. Make timeline is easy with this method. What about having it so you can play back a player or vehicle as a spectato Good idea. In future versions will be implemented. It should be possible to integrate this inside the editor I think about the possibility of pointing trajectory of the camera. But I don't know how to draw 3d lines for debug in Map Editor And maybe add some SFX like explosions, etc. Can you record different cameras and cut between them? Yes it's easy What about adding in fade to blacks and so on? It is very easy to do, but I think this is the post-effects and this must be done in a video editor AI peds doesn't aim at the correct position I'm working on it. I think I already have a solution Link to comment
SATAN Posted March 30, 2010 Share Posted March 30, 2010 Tutorial 1. Work with peds: in this one it says "also don't forget to add stage resource rights in ACL for restartResource command".. i'm not sure .. do i have to add this in the acl.xml? <acl name="stage"> <right name="command.restart" access="true" /> </acl> Link to comment
vovo4ka Posted March 30, 2010 Author Share Posted March 30, 2010 I just added to the Moderator group. Like this: <group name="Moderator"> <acl name="Moderator"/> <object name="resource.mapcycler"/> <object name="resource.mapmanager"/> [b] <object name="resource.stage"/>[/b] <object name="resource.resourcemanager"/> <object name="resource.votemanager"/> </group> Link to comment
SATAN Posted March 30, 2010 Share Posted March 30, 2010 oh ok thanks, im going to try this. Link to comment
vovo4ka Posted April 3, 2010 Author Share Posted April 3, 2010 New version available In 1.3.0: Coord interpolation. Now lag much less Exsperimental solution to the problem with ped rotation while ped shooting. Not ideal, but angle correct in most cases Link to comment
Gamesnert Posted April 3, 2010 Share Posted April 3, 2010 It indeed does lag a lot less now. However, it could be better if you replace the timers with onClientPreRender. Should completely eliminate lag. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now