Skip to content

Commit

Permalink
Update Blender Files
Browse files Browse the repository at this point in the history
Updated Blender File 3.3.1 -> 3.3.2
Blender 3.4.1 added
  • Loading branch information
Joel-Dandin authored Dec 30, 2022
1 parent a2aa49b commit 6945e2c
Showing 1 changed file with 23 additions and 48 deletions.
71 changes: 23 additions & 48 deletions blender_render.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,21 @@
"* `gpu_enabled, cpu_enabled` : Toggle GPU and CPU for rendering. CPU might give a slight boost in rendering time but may varies depend on the project.\n",
"* `optix_enable` : Enable OptiX which may boost performance, may be incompatible depending on the version of blender, project and GPU allocated\n",
"\n",
"After you are done, go to Runtime > Run All (Ctrl + F9) and upload your files or have Google Drive authorised below. See the [GitHub repo](https://github.com/syn73/blender-colab) for more information."
"After you are done, go to Runtime > Run All (Ctrl + F9) and upload your files or have Google Drive authorised below. See the [GitHub repo](https://github.com/Joel-Dandin/blender-render-colab) for more information."
]
},
{
"cell_type": "code",
"source": [
"from google.colab import drive\n",
"drive.mount('/content/drive')"
],
"metadata": {
"id": "l5NsYHAfEAI6"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -40,16 +52,16 @@
},
"outputs": [],
"source": [
"blender_version = '3.3.1' #@param ['2.79b', '2.80rc3', '2.81a', '2.82a', '2.83.20', '2.90.1', '2.91.2', '2.92.0', '2.93.11', '3.0.1', '3.1.2', '3.2.2', '3.3.1'] {allow-input: false}\n",
"blender_version = '3.4.1' #@param ['2.79b', '2.80rc3', '2.81a', '2.82a', '2.83.20', '2.90.1', '2.91.2', '2.92.0', '2.93.11', '3.0.1', '3.1.2', '3.2.2', '3.3.2', '3.4.1'] {allow-input: false}\n",
"blend_file_path = 'path/to/file.blend' #@param {type: 'string'}\n",
"#@markdown ---\n",
"upload_type = 'url' #@param ['direct', 'google_drive', 'url', 'gdrive_relative'] {allow-input: false}\n",
"drive_path = 'path/to/blend.zip' #@param {type: 'string'}\n",
"upload_type = 'google_drive' #@param ['direct', 'google_drive', 'url', 'gdrive_relative'] {allow-input: false}\n",
"drive_path = 'Blender Models/Space.blend' #@param {type: 'string'}\n",
"url_blend = '' #@param {type: 'string'}\n",
"#@markdown ---\n",
"animation = False #@param {type: 'boolean'}\n",
"start_frame = 1#@param {type: 'integer'}\n",
"end_frame = 250#@param {type: 'integer'}\n",
"animation = True #@param {type: 'boolean'}\n",
"start_frame = 75#@param {type: 'integer'}\n",
"end_frame = 120#@param {type: 'integer'}\n",
"#@markdown ---\n",
"download_type = 'gdrive_direct' #@param ['direct', 'google_drive', 'gdrive_direct'] {allow-input: false}\n",
"output_name = 'blender-##' #@param {type: 'string'}\n",
Expand Down Expand Up @@ -126,7 +138,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {
"id": "KowqWtLzgSLw"
},
Expand Down Expand Up @@ -168,7 +180,8 @@
" '3.0.1' : \"https://ftp.nluug.nl/pub/graphics/blender/release/Blender3.0/blender-3.0.1-linux-x64.tar.xz\",\n",
" '3.1.2' : \"https://ftp.nluug.nl/pub/graphics/blender/release/Blender3.1/blender-3.1.2-linux-x64.tar.xz\",\n",
" '3.2.2' : \"https://ftp.nluug.nl/pub/graphics/blender/release/Blender3.2/blender-3.2.2-linux-x64.tar.xz\",\n",
" '3.3.1' : \"https://ftp.nluug.nl/pub/graphics/blender/release/Blender3.3/blender-3.3.1-linux-x64.tar.xz\"}\n",
" '3.3.2' : \"https://ftp.nluug.nl/pub/graphics/blender/release/Blender3.3/blender-3.3.2-linux-x64.tar.xz\",\n",
" '3.4.1' : \"https://ftp.nluug.nl/pub/graphics/blender/release/Blender3.4/blender-3.4.1-linux-x64.tar.xz\"}\n",
"\n",
"blender_url = blender_url_dict[blender_version]\n",
"base_url = os.path.basename(blender_url)\n",
Expand Down Expand Up @@ -287,50 +300,12 @@
"else:\n",
" raise SystemExit(\"No frames are rendered.\")"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "IeNhVz4Uds_7"
},
"source": [
"## Disclaimer\n",
"Google Colab is targeted to researchers and students to run AI/ML tasks, data analysis and education, not rendering 3D scenes. Because the computing power provided are free, the usage limits, idle timeouts and speed of the rendering may varies time by time. [Colab Pro and Colab Pro+](https://colab.research.google.com/signup) are available for those who wanted to have more powerful GPU and longer runtimes for rendering. See the [FAQ](https://research.google.com/colaboratory/faq.html) for more info. In some cases, it might be faster to use an online Blender renderfarm.\n",
"\n",
"## License\n",
"```\n",
"MIT License\n",
"\n",
"Copyright (c) 2020-2022 ynshung\n",
"\n",
"Permission is hereby granted, free of charge, to any person obtaining a copy\n",
"of this software and associated documentation files (the \"Software\"), to deal\n",
"in the Software without restriction, including without limitation the rights\n",
"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n",
"copies of the Software, and to permit persons to whom the Software is\n",
"furnished to do so, subject to the following conditions:\n",
"\n",
"The above copyright notice and this permission notice shall be included in all\n",
"copies or substantial portions of the Software.\n",
"\n",
"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n",
"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n",
"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n",
"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n",
"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n",
"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n",
"SOFTWARE.\n",
"```"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"collapsed_sections": [],
"name": "blender-render.ipynb",
"provenance": [],
"toc_visible": true
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
Expand Down

0 comments on commit 6945e2c

Please sign in to comment.