How to change demos from day to night as of early 2017 - advancedfx/advancedfx GitHub Wiki

Tutorial by https://twitter.com/Flatypus

There's a tutorial here but it's actually outdated:
https://www.youtube.com/watch?v=13Nv0iCoNk8

I've taken advice from the comments section and put it together with my own for anyone who is trying to do the same as me. This is for anyone who wants to record the first person view. If you just want to record a smooth/cine ignore any parts where I say .bvh and pretend they say mirv_campath.

For this tutorial you will need:
a map from the steam workshop with the desired lighting/weather effect.
a demo from that map
the demo with the frags you want to use
It's a lot easier to do shadows if you have After Effects
VirtualDub

HOW TO MAKE A MAP NIGHT/RAINY/SNOWING:

  1. Play the demo of the original daytime map with the frag.
    Save the .bvh https://github.com/ripieces/advancedfx/wiki/Source%3Amirv_camexport
    You want to save the base stream for reference later when we are syncing everything up. You might also want the myWorld layer to save the gun shooting effects. Alternatively you can follow my very intensive streams guide: https://forum.advancedfx.org/viewtopic.php?f=6&t=2043&p=6396#p6396
    Now we have the camera movement.

  2. We are going to change the map files now but there's a specific way to do it to trick the game.
    You've already loaded the daytime demo. If it's an old demo it will have download a workshop version of the map. Now open demoui and press stop. This takes you to the main menu.
    Now go to the workshop folder and rename the map (e.g de_mirage.bsp) to de_miragebackup.bsp.
    Drop the de_mirage_night.bsp file in the same folder. Name it de_mirage.bsp.
    Play the demo.

    If this keeps crashing your game after trying a few times, you might have to find another map which works. Or you can change the lighting yourself which is a bit more advanced:
    https://www.youtube.com/watch?v=ot8Wjvx7b6A

    Here are the downloadable .vmf files you will need to do that:
    https://www.youtube.com/watch?v=pw8yiiIlJRU

    Open the CSGO Source SDK. Launch Hammer editor. Load in the map and change the lighting to match what you want it to be. You can add in lights where they should be in the map as well. Just copy paste all the values of the lights and the sun etc.
    Tip: there might be an extra light_env on the original map which you have to delete to match the night map lighting.
    File>Run Map, Set it to Normal in the top part, Fast in the bottom 2 parts. Enable HDR and make it so it runs the game when it's done. Press Ok and wait a while for it to save. Now we've got the map with the right lighting. Repeat step 2(rename de_mirage_backup to de_mirage first).


    Go to the tick where the frags happen.
    You will notice that everything looks completely scuffed and textures are flying in the air. We'll get around that in step #3.
    Load the .bvh https://github.com/ripieces/advancedfx/wiki/Source%3Amirv_camimport
    Save the myMatte stream so we get the gun and player models, and myWorld so we can get the shadows. myDepth optional. Now we have the player models and gun models with the right night lighting, and the correct camera movement.
    You'll want to go rename de_mirage.bsp back to de_mirage_night and get it out of the folder, and rename de_mirage_backup back to de_mirage.

  3. Load a demo of the night time map being empty.
    Load the .bvh
    Save the myWorld stream, and myDepth if you need it.
    Now we have the map at night with the original camera movement, the map background, guns and player models!

  4. But now you have like 20 folders full of still pictures and it's taking up 500gb of space.
    Open Virtualdub. We're going to queue the files to save automatically. Load the first stream in and set the framerate you want, set compression to Lagarith or whatever you use (you should get the lagarith codec though its what all the cool editors use). Make sure Audio is on 'No Audio'.
    Ctrl+shift+f7 and it will ask you to give it a name and add it to the queue. If you press f4 it brings up the queue. Keep loading in all your streams and pressing ctrl+shift+f7 until you have them all queued. Render. You can delete the picture files now that we have the video files.
    Put them in Vegas or whatever you are using. Sync the clips to the right place using the reference you got in step 1. If your clips are high framerate you'll want to make your project settings 120fps (the highest Vegas can go) otherwise they won't match up. You can turn it back down to 30fps after you are done lining them up. Play around with masking and green screens to make everything look right.

The End.

Or you could just fake the frags in the night time map :)

⚠️ **GitHub.com Fallback** ⚠️