High Quality DOF Glitches when GFX Card does not Support it- ATI Cards #44056

Closed
opened 2015-03-20 06:41:36 +01:00 by Dom · 27 comments

System Information
Windows 7 (64-bit) / Intel Core2 Duo / 4GB Ram / ATI Mobility Radeon HD 3670

Blender Version
Broken: 2.74 RC2 1f547c1

Short description of error
Enabled the 2.74 feature of Depth of Field for the camera view and zoomed in with mouse wheel corrupted the view-port.

Exact steps for others to reproduce the error
Start Blender and use any rendering engine (Blender Internal, Cycles or Game)
Set a view-port to camera view (perspective) and press 'N'
Expand 'Shading' and enable 'Depth of Field'
Zoom with mouse wheel and view-port becomes corrupted

Attached is the system-info.txt file along with two images (zooming in and zooming out) that show the corruption. I had extracted and used the .zip file version of Blender rather than using the installer.

system-info.txt

Zoom01.png

Zoom02.png

**System Information** Windows 7 (64-bit) / Intel Core2 Duo / 4GB Ram / ATI Mobility Radeon HD 3670 **Blender Version** Broken: 2.74 RC2 1f547c1 **Short description of error** Enabled the 2.74 feature of Depth of Field for the camera view and zoomed in with mouse wheel corrupted the view-port. **Exact steps for others to reproduce the error** Start Blender and use any rendering engine (Blender Internal, Cycles or Game) Set a view-port to camera view (perspective) and press 'N' Expand 'Shading' and enable 'Depth of Field' Zoom with mouse wheel and view-port becomes corrupted Attached is the system-info.txt file along with two images (zooming in and zooming out) that show the corruption. I had extracted and used the .zip file version of Blender rather than using the installer. [system-info.txt](https://archive.blender.org/developer/F153345/system-info.txt) ![Zoom01.png](https://archive.blender.org/developer/F153340/Zoom01.png) ![Zoom02.png](https://archive.blender.org/developer/F153342/Zoom02.png)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Julian Eisel was assigned by Dom 2015-03-20 06:41:36 +01:00
Author

Added subscriber: @Little_Ceasar

Added subscriber: @Little_Ceasar

Added subscribers: @Psy-Fi, @mont29

Added subscribers: @Psy-Fi, @mont29

Cannot reproduce that here (linux64 bit, NVidia GTX850m). Can you please:

  • Ensure both your OS and drivers are fully up-to-date.
  • Try to tweak OGL settings in UserPreferences, System tab.
  • Try the latest build from our buildbot.
  • Try to start Blender in factory settings (--factory-startup commandline option) (this will ensure whether this is a userpref or addon issue or not).
  • Try to place this dll next to your blender.exe (software OGL, will be slow, but will show whether this is a driver issue or not).

@Psy-Fi maybe you have some ideas on the topic too? ;)

Cannot reproduce that here (linux64 bit, NVidia GTX850m). Can you please: * Ensure both your OS and drivers are fully up-to-date. * Try to tweak OGL settings in UserPreferences, System tab. * Try the latest build from [our buildbot](https://builder.blender.org/download). * Try to start Blender in factory settings (`--factory-startup` commandline option) (this will ensure whether this is a userpref or addon issue or not). * Try to place [this dll](http://download.blender.org/ftp/sergey/softwaregl/win64/opengl32.dll) next to your blender.exe (software OGL, will be slow, but will show whether this is a driver issue or not). @Psy-Fi maybe you have some ideas on the topic too? ;)
Julian Eisel was unassigned by Bastien Montagne 2015-03-20 11:35:32 +01:00

Yes, this is a shader compilation error.

Fire up blender from the command prompt/terminal with

blender -d

Then enable depth of field and an error should appear at the command line/terminal.

Can you post it here please?

Alternatively you could start blender with

blender -d 2>error.txt

And this should create a file with all the errors in a file named error.txt next to the blender executable. You can paste the contents of that here.

Yes, this is a shader compilation error. Fire up blender from the command prompt/terminal with ``` blender -d ``` Then enable depth of field and an error should appear at the command line/terminal. Can you post it here please? Alternatively you could start blender with ``` blender -d 2>error.txt ``` And this should create a file with all the errors in a file named error.txt next to the blender executable. You can paste the contents of that here.
Author

Antony,

I did as you asked and this is the error message I received:

Switching to fully guarded memory allocator.
Blender 2.74 (sub 0)
Build: 2015-03-17 16:33:29 Windows:32bit Release
argv- [x] = blender-app.exe
argv- [x] = -d
read file

Version 272 sub 2 date 1970-01-01 00:00 hash unknown

ordered
OBCube
OBLamp
OBCamera
found bundled python: C:\Users\Dom\Desktop\blender-2.74-rc2-windows64\2.74\python
read file

Version 262 sub 3 date 1970-01-01 00:00 hash 

read file

Version 268 sub 5 date 1970-01-01 00:00 hash 

<!> event has invalid window

Blender quit
Press any key to exit . . .

Antony, I did as you asked and this is the error message I received: Switching to fully guarded memory allocator. Blender 2.74 (sub 0) Build: 2015-03-17 16:33:29 Windows:32bit Release argv- [x] = blender-app.exe argv- [x] = -d read file ``` Version 272 sub 2 date 1970-01-01 00:00 hash unknown ``` ordered OBCube OBLamp OBCamera found bundled python: C:\Users\Dom\Desktop\blender-2.74-rc2-windows64\2.74\python read file ``` Version 262 sub 3 date 1970-01-01 00:00 hash ``` read file ``` Version 268 sub 5 date 1970-01-01 00:00 hash ``` <!> event has invalid window Blender quit Press any key to exit . . .

Did you also enable depth of field from the camera view? It's strange that there's nothing there...

Did you also enable depth of field from the camera view? It's strange that there's nothing there...
Author

Bastien,

I went through your list of suggestions and the only thing that worked was the .dll you linked. It definitely was slow, but DoF worked as intended. I realize my system is quite outdated. Other than the DoF issue, Blender runs fairly well on it. If I disable DoF in camera view, the view-port returns to normal.

So does this mean I have a driver issue? Thanks for your assistance.

Bastien, I went through your list of suggestions and the only thing that worked was the .dll you linked. It definitely was slow, but DoF worked as intended. I realize my system is quite outdated. Other than the DoF issue, Blender runs fairly well on it. If I disable DoF in camera view, the view-port returns to normal. So does this mean I have a driver issue? Thanks for your assistance.
Author

Antony,

I enabled the DoF from the camera view and though the issue came up, that text was the only thing I saw from the command prompt. The only success I've had so far was using the .dll that Bastien had linked. I'll try to see if there are any newer drivers that still support my old video card. Thanks again for your help.

Antony, I enabled the DoF from the camera view and though the issue came up, that text was the only thing I saw from the command prompt. The only success I've had so far was using the .dll that Bastien had linked. I'll try to see if there are any newer drivers that still support my old video card. Thanks again for your help.

Can I see the contents of your System_Info.txt file (generated from the help menu of blender, see contents in blender text editor)? It's possible that your GPU does not support the effect. I added some code that disables it in low end GPUs today, but just to make sure...It's weird because your GPU should support it if its drivers are up to date.

Can I see the contents of your System_Info.txt file (generated from the help menu of blender, see contents in blender text editor)? It's possible that your GPU does not support the effect. I added some code that disables it in low end GPUs today, but just to make sure...It's weird because your GPU should support it if its drivers are up to date.
Author

2.74_system-info.txt

2.73_system-info.txt

Attached are the System_Info.txt files generated by Blender 2.73 and 2.74 RC2. There are some minor differences, but nothing I see that would cause the issue. Though I am using the 64-bit version of Windows and Blender, the platform in the text files reports 32-bit.

I've tried various drivers for this video card from AMD with Catalyst 13.9 being the latest driver for legacy cards. This may just be an issue for a few older cards and I have no problem keeping the view-port DoF disabled for the time being. Nevertheless, your assistance is greatly appreciated!

[2.74_system-info.txt](https://archive.blender.org/developer/F154623/2.74_system-info.txt) [2.73_system-info.txt](https://archive.blender.org/developer/F154624/2.73_system-info.txt) Attached are the System_Info.txt files generated by Blender 2.73 and 2.74 RC2. There are some minor differences, but nothing I see that would cause the issue. Though I am using the 64-bit version of Windows and Blender, the platform in the text files reports 32-bit. I've tried various drivers for this video card from AMD with Catalyst 13.9 being the latest driver for legacy cards. This may just be an issue for a few older cards and I have no problem keeping the view-port DoF disabled for the time being. Nevertheless, your assistance is greatly appreciated!

This is really weird, as far I can see the effect should supported. I don't think I can do much here without access to this GPU unfortunately :/

This is really weird, as far I can see the effect should supported. I don't think I can do much here without access to this GPU unfortunately :/
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

i have the same result

i have the same result
Member

same errors has last report


C:\Users\Aaron\Downloads\blender-2.74-997c0c8-win64 (1)\blender-2.74-997c0c8-win64>blender -d
Switching to fully guarded memory allocator.
Blender 2.74 (sub 1)
Build: 2015-03-21 03:18:19 Windows:64bit Release
argv[0] = blender-app.exe
argv[1] = -d
read file C:\Users\Aaron\AppData\Roaming\Blender Foundation\Blender\2.74\config\startup.blend
  Version 274 sub 0 date 1970-01-01 00:00 hash unknown

ordered
 OBCube
 OBLamp
 OBCamera
read file C:\Users\Aaron\AppData\Roaming\Blender Foundation\Blender\2.74\config\userpref.blend
  Version 274 sub 0 date 1970-01-01 00:00 hash unknown
Read new prefs: C:\Users\Aaron\AppData\Roaming\Blender Foundation\Blender\2.74\config\userpref.blend
AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 192000hz instead
found bundled python: C:\Users\Aaron\Downloads\blender-2.74-997c0c8-win64 (1)\blender-2.74-997c0c8-win64\2.74\python
Rock generator settings file found:
C:\Users\Aaron\Downloads\blender-2.74-997c0c8-win64 (1)\blender-2.74-997c0c8-win64\2.74\scripts\addons_contrib\add_mesh_rocks\add_mesh_rocks.xml
Rock Generator: Numpy found.
read file
  Version 262 sub 3 date 1970-01-01 00:00 hash
read file
  Version 268 sub 5 date 1970-01-01 00:00 hash
ED_undo_push: Outliner click event
GPUShader: compile error:
===== shader string 1 ====
 1  #version 130
===== shader string 2 ====
 1  #extension GL_ARB_texture_query_lod: enable
 2  #extension GL_EXT_geometry_shader4: enable
 3  #extension GL_EXT_gpu_shader4: enable
 4  #extension GL_ARB_draw_instanced: enable
===== shader string 3 ====
 1  #define GPU_INTEL
 2  #define BUMP_BICUBIC
===== shader string 4 ====
 1  #define PERSP_MATRIX
 2  #define SECOND_PASS
===== shader string 5 ====
 1  uniform ivec2 rendertargetdim;
 2  uniform sampler2D colorbuffer;
 3
 4  uniform vec2 layerselection;
 5
 6  uniform sampler2D cocbuffer;
 7
 8  /* initial uv coordinate */
 9  varying in vec2 uvcoord[];
10  varying out vec2 particlecoord;
11  varying out vec4 color;
12
13
14  #define M_PI 3.1415926535897932384626433832795
15
16  void main(void)
17  {
18      vec4 coc = texture2DLod(cocbuffer, uvcoord[0], 0.0);
19
20      float offset_val = dot(coc.rg, layerselection);
21      if (offset_val < 1.0)
22              return;
23
24      vec4 colortex = texture2DLod(colorbuffer, uvcoord[0], 0.0);
25
26      /* find the area the pixel will cover and divide the color by it */
27      float alpha = 1.0 / (offset_val * offset_val * M_PI);
28      colortex *= alpha;
29      colortex.a = alpha;
30
31      vec2 offset_far = vec2(offset_val * 0.5) / vec2(rendertargetdim.x, rendertargetdim.y);
32
33      gl_Position = gl_PositionIn[0] + vec4(-offset_far.x, -offset_far.y, 0.0, 0.0);
34      color = colortex;
35      particlecoord = vec2(-1.0, -1.0);
36      EmitVertex();
37      gl_Position = gl_PositionIn[0] + vec4(-offset_far.x, offset_far.y, 0.0, 0.0);
38      particlecoord = vec2(-1.0, 1.0);
39      color = colortex;
40      EmitVertex();
41      gl_Position = gl_PositionIn[0] + vec4(offset_far.x, -offset_far.y, 0.0, 0.0);
42      particlecoord = vec2(1.0, -1.0);
43      color = colortex;
44      EmitVertex();
45      gl_Position = gl_PositionIn[0] + vec4(offset_far.x, offset_far.y, 0.0, 0.0);
46      particlecoord = vec2(1.0, 1.0);
47      color = colortex;
48      EmitVertex();
49      EndPrimitive();
50  }
WARNING: 1:3: '#extension' :  'GL_EXT_gpu_shader4' is not supported
ERROR: 4:9: 'vec2' : syntax error syntax error
same errors has last report ``` C:\Users\Aaron\Downloads\blender-2.74-997c0c8-win64 (1)\blender-2.74-997c0c8-win64>blender -d Switching to fully guarded memory allocator. Blender 2.74 (sub 1) Build: 2015-03-21 03:18:19 Windows:64bit Release argv[0] = blender-app.exe argv[1] = -d read file C:\Users\Aaron\AppData\Roaming\Blender Foundation\Blender\2.74\config\startup.blend Version 274 sub 0 date 1970-01-01 00:00 hash unknown ordered OBCube OBLamp OBCamera read file C:\Users\Aaron\AppData\Roaming\Blender Foundation\Blender\2.74\config\userpref.blend Version 274 sub 0 date 1970-01-01 00:00 hash unknown Read new prefs: C:\Users\Aaron\AppData\Roaming\Blender Foundation\Blender\2.74\config\userpref.blend AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 192000hz instead found bundled python: C:\Users\Aaron\Downloads\blender-2.74-997c0c8-win64 (1)\blender-2.74-997c0c8-win64\2.74\python Rock generator settings file found: C:\Users\Aaron\Downloads\blender-2.74-997c0c8-win64 (1)\blender-2.74-997c0c8-win64\2.74\scripts\addons_contrib\add_mesh_rocks\add_mesh_rocks.xml Rock Generator: Numpy found. read file Version 262 sub 3 date 1970-01-01 00:00 hash read file Version 268 sub 5 date 1970-01-01 00:00 hash ED_undo_push: Outliner click event GPUShader: compile error: ===== shader string 1 ==== 1 #version 130 ===== shader string 2 ==== 1 #extension GL_ARB_texture_query_lod: enable 2 #extension GL_EXT_geometry_shader4: enable 3 #extension GL_EXT_gpu_shader4: enable 4 #extension GL_ARB_draw_instanced: enable ===== shader string 3 ==== 1 #define GPU_INTEL 2 #define BUMP_BICUBIC ===== shader string 4 ==== 1 #define PERSP_MATRIX 2 #define SECOND_PASS ===== shader string 5 ==== 1 uniform ivec2 rendertargetdim; 2 uniform sampler2D colorbuffer; 3 4 uniform vec2 layerselection; 5 6 uniform sampler2D cocbuffer; 7 8 /* initial uv coordinate */ 9 varying in vec2 uvcoord[]; 10 varying out vec2 particlecoord; 11 varying out vec4 color; 12 13 14 #define M_PI 3.1415926535897932384626433832795 15 16 void main(void) 17 { 18 vec4 coc = texture2DLod(cocbuffer, uvcoord[0], 0.0); 19 20 float offset_val = dot(coc.rg, layerselection); 21 if (offset_val < 1.0) 22 return; 23 24 vec4 colortex = texture2DLod(colorbuffer, uvcoord[0], 0.0); 25 26 /* find the area the pixel will cover and divide the color by it */ 27 float alpha = 1.0 / (offset_val * offset_val * M_PI); 28 colortex *= alpha; 29 colortex.a = alpha; 30 31 vec2 offset_far = vec2(offset_val * 0.5) / vec2(rendertargetdim.x, rendertargetdim.y); 32 33 gl_Position = gl_PositionIn[0] + vec4(-offset_far.x, -offset_far.y, 0.0, 0.0); 34 color = colortex; 35 particlecoord = vec2(-1.0, -1.0); 36 EmitVertex(); 37 gl_Position = gl_PositionIn[0] + vec4(-offset_far.x, offset_far.y, 0.0, 0.0); 38 particlecoord = vec2(-1.0, 1.0); 39 color = colortex; 40 EmitVertex(); 41 gl_Position = gl_PositionIn[0] + vec4(offset_far.x, -offset_far.y, 0.0, 0.0); 42 particlecoord = vec2(1.0, -1.0); 43 color = colortex; 44 EmitVertex(); 45 gl_Position = gl_PositionIn[0] + vec4(offset_far.x, offset_far.y, 0.0, 0.0); 46 particlecoord = vec2(1.0, 1.0); 47 color = colortex; 48 EmitVertex(); 49 EndPrimitive(); 50 } WARNING: 1:3: '#extension' : 'GL_EXT_gpu_shader4' is not supported ERROR: 4:9: 'vec2' : syntax error syntax error ```

Yes, but that's a different GPU. Also latest buildbot should work for Aaron now?

Yes, but that's a different GPU. Also latest buildbot should work for Aaron now?
Author

I tried today's buildbot version and still have the same result, but as I said earlier, it's time I update my laptop! Would AMD's patch help any? I'll look for some 3rd party drivers for this card and see if that makes a difference. I'm surprised it worked with that .dll Bastien linked. It was slow as heck, but the effect was there.

I tried today's buildbot version and still have the same result, but as I said earlier, it's time I update my laptop! Would AMD's patch help any? I'll look for some 3rd party drivers for this card and see if that makes a difference. I'm surprised it worked with that .dll Bastien linked. It was slow as heck, but the effect was there.

The dll is a software emulation of an OpenGL driver, i.e. it behaves exactly as a GPU driver (should do!), but code runs on the CPU instead of GPU, that’s why it’s slow - it features a reference implementation of OpenGL, so it shows actual issue is with the GPU driver, not in Blender code.

The dll is a software emulation of an OpenGL driver, i.e. it behaves exactly as a GPU driver (should do!), but code runs on the CPU instead of GPU, that’s why it’s slow - it features a reference implementation of OpenGL, so it shows actual issue is with the GPU driver, not in Blender code.
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

@Blendify, does it work now using a buildbot build?

@Blendify, does it work now using a buildbot build?
Member

no

no

Same error?

Same error?
Member

yes

yes
Aaron Carlisle self-assigned this 2015-03-29 16:32:09 +02:00
Aaron Carlisle changed title from Mouse Wheel Zoom with Camera View-port Depth of Field Enabled Corrupts Display to High Quality DOF Glitches when GFX Card does not Support it- ATI Cards 2015-03-29 16:34:16 +02:00
Aaron Carlisle removed their assignment 2015-03-29 16:34:16 +02:00
Antonis Ryakiotakis was assigned by Aaron Carlisle 2015-03-29 16:36:41 +02:00

This issue was referenced by c6ce8200dd

This issue was referenced by c6ce8200dd3f3b67029cfd5578f21d206cff219e

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit c6ce8200dd.

Closed by commit c6ce8200dd.

The above commit should have fixed the issue for the ATI case (which was different than the Intel case). Reporter should be able to confirm this in tomorrow's buildbot build. If this is not the case we can reopen this report.

The above commit should have fixed the issue for the ATI case (which was different than the Intel case). Reporter should be able to confirm this in tomorrow's buildbot build. If this is not the case we can reopen this report.
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
6 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#44056
No description provided.