"#@markdown Enables stereo rendering of left/right eye views (supporting Turbo) which use a different (fish-eye) camera projection matrix. \n",
"#@markdown Note the images you're prompting will work better if they have some inherent wide-angle aspect\n",
"#@markdown The generated images will need to be combined into left/right videos. These can then be stitched into the VR180 format.\n",
"#@markdown Google made the VR180 Creator tool but subsequently stopped supporting it. It's available for download in a few places including https://www.patrickgrunwald.de/vr180-creator-download\n",
"#@markdown The tool is not only good for stitching (videos and photos) but also for adding the correct metadata into existing videos, which is needed for services like YouTube to identify the format correctly.\n",
"#@markdown Watching YouTube VR videos isn't necessarily the easiest depending on your headset. For instance Oculus have a dedicated media studio and store which makes the files easier to access on a Quest https://creator.oculus.com/manage/mediastudio/\n",
"#@markdown The command to get ffmpeg to concat your frames for each eye is in the form: ffmpeg -framerate 15 -i frame_%4d_l.png l.mp4 (repeat for r)",
"\n",
"vr_mode = False\n",
"vr_eye_angle:0.5, #@param{type: 'number'}\n",
"#@markdown eye_angle is the y-axis rotation of the eyes towards the center\n",
"vr_ipd:5.0,\n",
"#@markdown interpupillary distance (between the eyes)\n",
" \n",
"#insist turbo be used only w 3d anim.\n",
"if vr_mode and animation_mode != '3D':\n",
" print('=====')\n",
" print('VR mode only available with 3D animations. Disabling VR.')\n",
" \"\"\"Given a string representing frame numbers paired with parameter values at that frame,\n",
" return a dictionary with the frame numbers as keys and the parameter values as the values.\n",
@ -2341,9 +2387,11 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "Prompts"
},
"outputs": [],
"source": [
"text_prompts = {\n",
" 0: [\"A beautiful painting of a singular lighthouse, shining its light across a tumultuous sea of blood by greg rutkowski and thomas kinkade, Trending on artstation.\", \"yellow color scheme\"],\n",
@ -2368,9 +2416,11 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "DoTheRun"
},
"outputs": [],
"source": [
"#@title Do the Run!\n",
"#@markdown `n_batches` ignored with animation modes.\n",
@ -2566,9 +2616,11 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "CreateVid"
},
"outputs": [],
"source": [
"# @title ### **Create video**\n",
"#@markdown Video file will save in the same folder as your images.\n",