Render incorrectly with built-in shader '3D_POLYLINE_UNIFORM_COLOR' #86485

Closed
opened 2021-03-11 09:33:02 +01:00 by nutti · 13 comments
Member

System Information

OS: macOS Mojave (10.14.6)
Graphic card: Radeon Pro 450 2GB

This error is also raised on Windows 10 system.

Blender Version

Broken version: 2.92.0 or later

Description of error

built-in shader 3D_POLYLINE_UNIFORM_COLOR in gpu module does not render correctly in the space other than View3D.
I made an add-on which reproduces this error.

3d_polyline_uniform_color_shader_issue.py

To reproduce this error, follow below processes.

  • Install the attached add-on.
  • Enable add-on (Add-on name is: Test add-on)
  • Go to Sidebar in View3D, and select Test Category > Test Panel
  • Click Test Op.
  • The rectangles are rendered on both View3D space and Outliner space, but the rendered line will be unstable when the mouse is moved (This behavior can be seen often when the mouse moves to the other space).
  • To stop rendering, click the mouse left button.

I will show you the example which the line is not rendered correctly.
The rendered line on Outliner space is not same as View3D.

3d_polyline_uniform_color_shader_issue.png

**System Information** OS: macOS Mojave (10.14.6) Graphic card: Radeon Pro 450 2GB This error is also raised on Windows 10 system. **Blender Version** Broken version: 2.92.0 or later **Description of error** built-in shader `3D_POLYLINE_UNIFORM_COLOR` in gpu module does not render correctly in the space other than View3D. I made an add-on which reproduces this error. [3d_polyline_uniform_color_shader_issue.py](https://archive.blender.org/developer/F9884595/3d_polyline_uniform_color_shader_issue.py) To reproduce this error, follow below processes. - Install the attached add-on. - Enable add-on (Add-on name is: **Test add-on**) - Go to Sidebar in View3D, and select **Test Category** > **Test Panel** - Click **Test Op**. - The rectangles are rendered on both View3D space and Outliner space, but the rendered line will be unstable when the mouse is moved (This behavior can be seen often when the mouse moves to the other space). - To stop rendering, click the mouse left button. I will show you the example which the line is not rendered correctly. The rendered line on Outliner space is not same as View3D. ![3d_polyline_uniform_color_shader_issue.png](https://archive.blender.org/developer/F9884621/3d_polyline_uniform_color_shader_issue.png)
Author
Member

Added subscriber: @nutti

Added subscriber: @nutti

Added subscriber: @Kent-Davis

Added subscriber: @Kent-Davis

For me mac4kent (Kent Davis)
System Information
Operating system: macOS-11.3-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 575 OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.4.17

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-10 04:47, hash: 70e73974b5
Worked: (newest version of Blender that worked as expected)

Yes I agree with nutti above
I show you youtube to Blender Developer to help resolve for nutti on code.
https://youtu.be/Wbr7dc7qieY

This very much details on youtube that come from me screen record myself below.
https://github.com/nutti/Screencast-Keys/issues/52#issuecomment-796565948

For me mac4kent (Kent Davis) **System Information** Operating system: macOS-11.3-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro 575 OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.4.17 **Blender Version** Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-10 04:47, hash: `70e73974b5` Worked: (newest version of Blender that worked as expected) Yes I agree with nutti above I show you youtube to Blender Developer to help resolve for nutti on code. https://youtu.be/Wbr7dc7qieY This very much details on youtube that come from me screen record myself below. https://github.com/nutti/Screencast-Keys/issues/52#issuecomment-796565948

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Thanks for the report. Unfortunately the scenario described is too time consuming for us to track down, we require the bug reporter to narrow down the problem.
Scripts showing the error need to be as simple as the examples shown at: https://docs.blender.org/api/current/gpu.html#examples

Thanks for the report. Unfortunately the scenario described is too time consuming for us to track down, we require the bug reporter to narrow down the problem. Scripts showing the error need to be as simple as the examples shown at: https://docs.blender.org/api/current/gpu.html#examples

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'

The script needs the uniform "viewportSize" to be set.

e.g.

region = context.region
shader.uniform_float("viewportSize", (region.width, region.height))
The script needs the uniform "viewportSize" to be set. e.g. ``` region = context.region shader.uniform_float("viewportSize", (region.width, region.height)) ```

What is Archived?

What is Archived?

Hello?

Hello?

@Kent-Davis, this report was closed (Archived) because the problem described is not a bug.
It was a user error.

@Kent-Davis, this report was closed (Archived) because the problem described is not a bug. It was a user error.

Thank you for explain me @mano-wii

Thank you for explain me @mano-wii

I am sorry I am very strong disagree with you because they said "CAN'T" No way. They did fix made it I can tell many years ago. I totally believe they can do fix everything as well. I am going show you on youtube. They can change code and match thickness line for Mac and Windows both.
Sculpting tab there error thickness line too.
See youtube.
@Everyones
https://youtu.be/8b8jRFL0W7w

I am sorry I am very strong disagree with you because they said "CAN'T" No way. They did fix made it I can tell many years ago. I totally believe they can do fix everything as well. I am going show you on youtube. They can change code and match thickness line for Mac and Windows both. Sculpting tab there error thickness line too. See youtube. @Everyones https://youtu.be/8b8jRFL0W7w
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
4 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#86485
No description provided.