diff --git a/notebooks/keyframing_example.ipynb b/notebooks/keyframing_example.ipynb index b04df1a..91d0c7e 100644 --- a/notebooks/keyframing_example.ipynb +++ b/notebooks/keyframing_example.ipynb @@ -23,9 +23,26 @@ }, { "cell_type": "code", - "execution_count": 70, + "execution_count": 1, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Warning: sysroot \"/Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk\" not found (ignoring for now)." + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vapor 3.9.2\n", + "Python 3.9.19 (/opt/anaconda3/envs/vapor-cookbook-dev)\n", + "OpenGL 4.1 Metal - 83.1\n" + ] + } + ], "source": [ "from vapor import session, dataset, renderer\n", "from vapor.animation import Animation" @@ -40,7 +57,7 @@ }, { "cell_type": "code", - "execution_count": 79, + "execution_count": 2, "metadata": {}, "outputs": [ { @@ -103,7 +120,7 @@ }, { "cell_type": "code", - "execution_count": 74, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -132,7 +149,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -170,10 +187,11 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ + "os.makedirs(\"keyframes\", exist_ok=True) # Make directory for keyframes if it doesn't exist\n", "for i, position, target, up in zip(range(1, len(positions)+1), positions, targets, ups):\n", " ses.GetCamera().LookAt(position, target, up)\n", " ses.Save(f\"./keyframes/keyframe{i}.vs3\")" @@ -195,7 +213,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -271,7 +289,7 @@ " cam.SetUp( up )\n", " anim.CaptureFrame()\n", " \n", - " # Print statement is for each keyframe, not for whole animation\n", + " # Print status\n", " print(f\"Rendering Animation [{'#'*round((j+n)*40/total_frames)}{' '*round(40-((j+n)*40/total_frames))}] {(j+1+n)*100/total_frames:.0f}%\", end=\"\\r\")\n", " n += steps[i]\n", " return anim\n", @@ -294,7 +312,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -324,7 +342,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -335,7 +353,20 @@ "Dataset: 'wrfout_d02_2005-08-29_02.nc'\n", "Dataset: 'wrfout_d02_2005-08-29_02.nc'\n", "Dataset: 'wrfout_d02_2005-08-29_02.nc'\n", - "Dataset: 'wrfout_d02_2005-08-29_02.nc'\n", + "Dataset: 'wrfout_d02_2005-08-29_02.nc'\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "UNSUPPORTED (log once): POSSIBLE ISSUE: unit 5 GLD_TEXTURE_INDEX_3D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ "Rendering Animation [########################################] 100%\r" ] },