Docs: Make Cycles Args visible in --help #108232

Merged
Aaron Carlisle merged 16 commits from :raimund58-cycles-args into main 2023-05-27 00:53:11 +02:00
Contributor

The Cycles-specific command line arguments are currently hidden
on this page [1]. To make the command visible in the manual [2] and
in blender --help, I added this patch.

[1] https://docs.blender.org/manual/en/3.6/advanced/command_line/render.html#cycles
[2] https://docs.blender.org/manual/en/3.6/advanced/command_line/arguments.html#argument-order

If this gets merged, please merge blender/blender-manual#104455 as well.

The Cycles-specific command line arguments are currently hidden on this page [1]. To make the command visible in the manual [2] and in `blender --help`, I added this patch. [1] https://docs.blender.org/manual/en/3.6/advanced/command_line/render.html#cycles [2] https://docs.blender.org/manual/en/3.6/advanced/command_line/arguments.html#argument-order If this gets merged, please merge https://projects.blender.org/blender/blender-manual/pulls/104455 as well.
Raimund Klink added 5 commits 2023-05-24 15:28:28 +02:00
Raimund Klink requested review from Aaron Carlisle 2023-05-24 15:32:27 +02:00
Raimund Klink added 1 commit 2023-05-24 15:36:57 +02:00
Raimund Klink added 1 commit 2023-05-24 17:17:49 +02:00
Aaron Carlisle requested changes 2023-05-25 04:43:20 +02:00
@ -667,2 +667,4 @@
printf("\t...works as expected.\n\n");
# ifdef WITH_CYCLES
printf("Additional Cycles Arguments:\n");
Member

Would call this "Cycles Render Options"

I would also move this content up, above // printf("Experimental Features:\n");

Would call this "Cycles Render Options" I would also move this content up, above `// printf("Experimental Features:\n");`
Author
Contributor

Done

Done
Raimund58 marked this conversation as resolved
Aaron Carlisle requested review from Brecht Van Lommel 2023-05-25 04:43:29 +02:00
Raimund Klink added 1 commit 2023-05-25 08:23:49 +02:00
e5bac98c7d Incorporating the requested changes.
Rename from "Additional Cycles Arguments" to "Cycles Render Options".
Move above ' // printf("Experimental Features:\n");'
Raimund Klink added 1 commit 2023-05-25 08:49:32 +02:00
Raimund Klink requested review from Aaron Carlisle 2023-05-25 08:49:41 +02:00
Raimund Klink added 1 commit 2023-05-25 08:51:02 +02:00
Raimund Klink added 1 commit 2023-05-25 08:54:05 +02:00
Raimund Klink changed title from WIP: Docs: Make Cycles Args visible in the Docs to Docs: Make Cycles Args visible in the Docs 2023-05-25 09:19:16 +02:00
Raimund Klink changed title from Docs: Make Cycles Args visible in the Docs to Docs: Make Cycles Args visible in --help 2023-05-25 14:13:05 +02:00
Brecht Van Lommel requested changes 2023-05-25 15:08:42 +02:00
@ -637,0 +637,4 @@
# ifdef WITH_CYCLES
printf("Cycles Render Options:\n");
printf("\tIn addition to the options above, which apply to all render engines, ");
printf("\tCycles has additional options to further control its behavior.\n");

These two lines seem unnecessary, the title covers it.

These two lines seem unnecessary, the title covers it.
Author
Contributor

Done

Done
Raimund58 marked this conversation as resolved
@ -637,0 +639,4 @@
printf("\tIn addition to the options above, which apply to all render engines, ");
printf("\tCycles has additional options to further control its behavior.\n");
printf("\t# blender -b file.blend -f 20 -- --cycles-device CPU\n");
printf("\t.. note::\n");

Don't use RST syntax here.

Don't use RST syntax here.
Author
Contributor

But how to make it look good in the manual as well?

But how to make it look good in the manual as well?
Raimund58 marked this conversation as resolved
@ -637,0 +640,4 @@
printf("\tCycles has additional options to further control its behavior.\n");
printf("\t# blender -b file.blend -f 20 -- --cycles-device CPU\n");
printf("\t.. note::\n");
printf("\t\tUnlike the generic options, the Cycles-specific ones must be passed on the end of the command line, following a double dash.\n");
Cycles add-on options must be specified following a double dash.
# blender -b file.blend -f 1 -- --cycles-device CPU
``` Cycles add-on options must be specified following a double dash. # blender -b file.blend -f 1 -- --cycles-device CPU ```
Raimund58 marked this conversation as resolved
@ -637,0 +642,4 @@
printf("\t.. note::\n");
printf("\t\tUnlike the generic options, the Cycles-specific ones must be passed on the end of the command line, following a double dash.\n");
printf("``--cycles-device CPU``\n");
printf("\tOverride the device that is used to render frames. Currently supported options are ``CPU``, ``CUDA``, ");

Don't use backtick RST syntax here, and be more brief

Set the device used for rendering. Options: CPU, CUDA, OPTIX, HIP, ONEAPI, METAL
Append +CPU to a GPU device to render on both CPU and GPU.
Don't use backtick RST syntax here, and be more brief ``` Set the device used for rendering. Options: CPU, CUDA, OPTIX, HIP, ONEAPI, METAL Append +CPU to a GPU device to render on both CPU and GPU. ```
Author
Contributor

Hm, but how to make it look good in the manual as well if I can not use backticks?

Hm, but how to make it look good in the manual as well if I can not use backticks?
Raimund58 marked this conversation as resolved
@ -637,0 +645,4 @@
printf("\tOverride the device that is used to render frames. Currently supported options are ``CPU``, ``CUDA``, ");
printf("``OPTIX``, ``HIP``, ``ONEAPI``, and ``METAL``. Additionally, you can append ``+CPU`` to any GPU type for hybrid rendering.\n");
printf("``--cycles-print-stats``\n");
printf("\tShow detailed statistics about memory and time usage for Cycles renders on the console.\n");

More brief:

Log statistics about render memory and time usage
More brief: ``` Log statistics about render memory and time usage ```
Raimund58 marked this conversation as resolved
Raimund Klink added 1 commit 2023-05-25 15:53:59 +02:00
Raimund Klink added 1 commit 2023-05-25 15:56:59 +02:00
Raimund Klink added 1 commit 2023-05-25 16:01:09 +02:00
Raimund Klink requested review from Brecht Van Lommel 2023-05-25 16:03:13 +02:00
Raimund Klink added 1 commit 2023-05-25 16:27:05 +02:00
Brecht Van Lommel requested changes 2023-05-25 16:36:16 +02:00
@ -636,1 +636,4 @@
# ifdef WITH_CYCLES
printf("Cycles Render Options:\n");
printf("\tNote:\n");

Remove this line, seems unnecessary.

Remove this line, seems unnecessary.
Raimund58 marked this conversation as resolved
Raimund Klink added 1 commit 2023-05-25 16:44:43 +02:00
Brecht Van Lommel approved these changes 2023-05-25 16:45:16 +02:00
Aaron Carlisle approved these changes 2023-05-26 04:46:17 +02:00
Aaron Carlisle merged commit 082766bfa4 into main 2023-05-27 00:53:11 +02:00
Raimund Klink deleted branch raimund58-cycles-args 2023-05-28 08:22:58 +02:00
Howard Trickey referenced this issue from a commit 2023-05-29 02:51:36 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#108232
No description provided.