Setting -E render engine via command line not working for 3D viewport #59089
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#59089
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Arch Linux
Graphics card: GTX 970
Blender Version
Broken: blender-2.80-e79bb957fc3-linux-glibc224-x86_64
Short description of error
I'm testing with a new rendering backend, based on the example script at https://docs.blender.org/api/blender2.8/bpy.types.RenderEngine.html. With the attached script (which I only use for testing an understanding the API) a final render with F12 correctly calls the custom engine, but when switching the 3D view to Rendered mode I get an EVEE render instead. I first have to change the render engine from "Flat Color Renderer" to EVEE and back again for preview render to correctly call the custom engine.
blender_render_engine.2.8.py
Exact steps for others to reproduce the error
$ blender -P blender_render_engine.2.8.py -E custom_renderer
I know I'm not following the official route of using an addon, but I believe calling the script at startup like this installs the necessary classes in the correct way, right?
Added subscriber: @PaulMelis
Added subscriber: @brhumphe
Confirmed on 168a6a4bfc1 on windows. Running the script AND setting the renderer from the command line does not update which engine is used in the renderer shading mode in the 3d viewport, despite the mode being set:
Only after running the second command does the viewport change from an eevee render to.... well, no shading at all, but that's to be expected since you don't seem to have implemented any drawing in
view_draw
yet.Yes, as I mentioned this script is merely meant as a stripped down class to understand the API. It's not the actual implementation of a new render engine, which is something I work on separately.
Custom render engine not being called for interactive rendering, get EVEE instead.to Setting -E render engine via command line not working for 3D viewportThis issue was referenced by blender/blender@ec324d8741
Changed status from 'Confirmed' to: 'Resolved'