High Quality DOF Glitches when GFX Card does not Support it- Intel Cards #44072

Closed
opened 2015-03-21 08:14:38 +01:00 by Alejandro Dominguez · 44 comments

System Information
Arch Linux - Intel HD Graphics 4000 - Nvidia GeForce 610m

Blender Version
Broken: Blender 2.74 997c0c8
Worked: 2.73

Short description of error
Testing the new features, AO and DOF in blender, then switch to view > camera and moving around the render region the image freeze , and trying to move the frame it re draws or display the image inside the render region

Example

Example 2

Exact steps for others to reproduce the error
go to view > camera - Rotate camera view or move the render region with shift + scroll button

untitled.blend

**System Information** Arch Linux - Intel HD Graphics 4000 - Nvidia GeForce 610m **Blender Version** Broken: Blender 2.74 997c0c8 Worked: 2.73 **Short description of error** Testing the new features, AO and DOF in blender, then switch to view > camera and moving around the render region the image freeze , and trying to move the frame it re draws or display the image inside the render region [Example ](http://i.imgur.com/qTVoO0F.png) [Example 2 ](http://i.imgur.com/fTEVaSz.png) **Exact steps for others to reproduce the error** go to view > camera - Rotate camera view or move the render region with shift + scroll button [untitled.blend](https://archive.blender.org/developer/F153639/untitled.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @AlejandroDominguez

Added subscriber: @AlejandroDominguez

after some test i found that the bug is a result of the "high quality" DOF option

after some test i found that the bug is a result of the "high quality" DOF option
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

Can't confirm that but looks like another issue caused by poor Intel graphics cards/drivers. Could you start blender from the blender-softwaregl? Will be slow but shows us if this may come from the drivers or not.

Can't confirm that but looks like another issue caused by poor Intel graphics cards/drivers. Could you start blender from the blender-softwaregl? Will be slow but shows us if this may come from the drivers or not.
Antonis Ryakiotakis was assigned by Julian Eisel 2015-03-22 20:54:16 +01:00

Yes, the technique requires quite a few extensions to work, I should probably make sure they are present before allowing the use of high quality.

Yes, the technique requires quite a few extensions to work, I should probably make sure they are present before allowing the use of high quality.
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

can confirm

INtel HD4600

got to hate intel card :{

can confirm INtel HD4600 got to hate intel card :{

Run blender from command line with blender -d. Are there any messages?

Run blender from command line with blender -d. Are there any messages?
Member

linux or windows

linux or windows

In any system that has the issue, if both have the issue and you can try it on both then that would definitely help.

In any system that has the issue, if both have the issue and you can try it on both then that would definitely help.

I highly suspect that this issue is caused by crappy support of framebuffer objects actually, I'll add a few checks in the code so users can check

I highly suspect that this issue is caused by crappy support of framebuffer objects actually, I'll add a few checks in the code so users can check
Member

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
``` 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 ```
Member

and the error repeats itself

and the error repeats itself

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

High quality is only supported for GL 3.0+ GPUs. Added check that will fall back to low quality for now. 1bee77b77a

If issue persists please notify here.

High quality is only supported for GL 3.0+ GPUs. Added check that will fall back to low quality for now. 1bee77b77ad625111489e4d44531e8fdc5107e7c If issue persists please notify here.
Member

is this because it says "WARNING: 1:3: '#extension' : 'GL_EXT_gpu_shader4' is not supported
"

is this because it says "WARNING: 1:3: '#extension' : 'GL_EXT_gpu_shader4' is not supported "

By the way, looks like issue of original reporter is caused by his system using the Intel card (check the system_info.txt file generated from the help menu of blender to check which GPU is used in your system).

Intel may not support it but the NVIDIA does, make sure you have setup your optimus system correctly.

By the way, looks like issue of original reporter is caused by his system using the Intel card (check the system_info.txt file generated from the help menu of blender to check which GPU is used in your system). Intel may not support it but the NVIDIA does, make sure you have setup your optimus system correctly.
Member

I Googled it and found that intel does support GL_EXT_gpu_shader4 Link And this is and onld artical probaly before intel hd 4600 so these cards should have these capabilities

I Googled it and found that intel does support GL_EXT_gpu_shader4 [Link ](http://www.geeks3d.com/20120326/intel-hd-graphics-drivers-15-26-5-2656-with-new-opengl-extensions/) And this is and onld artical probaly before intel hd 4600 so these cards should have these capabilities

Then you obviously need to update your driver. Your System_Info.txt file should have all the info you need there

Then you obviously need to update your driver. Your System_Info.txt file should have all the info you need there
Member

ok yea found a better driver will test another day with that one and it is available for intel hd 4000 also

http://www.geeks3d.com/20131125/intel-hd-graphics-driver-v10-18-10-3345-available-for-windows-new-opengl-4-1-4-2-4-3-extensions/

ok yea found a better driver will test another day with that one and it is available for intel hd 4000 also http://www.geeks3d.com/20131125/intel-hd-graphics-driver-v10-18-10-3345-available-for-windows-new-opengl-4-1-4-2-4-3-extensions/
Member

i also read that it requires opengl 3.0 but blender does not use that?

i also read that it requires opengl 3.0 but blender does not use that?

Now it does. It's just that people don't understand the notion of extensions.

Now it does. It's just that people don't understand the notion of extensions.

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'

Reopening, this should work

Reopening, this should work

Can you try a build tomorrow and tell me if the error is gone for you now?

Can you try a build tomorrow and tell me if the error is gone for you now?
Member

no

no

Did you build your own version? buildbot still doesn't include the fix.

Did you build your own version? buildbot still doesn't include the fix.
Member

no buildbot

no buildbot
Member

@Blendify, well then try again using latest buildbot. It should now include the fix.

@Blendify, well then try again using latest buildbot. It should now include the fix.
Member

just did and isnt this the same as #44056

just did and isnt this the same as #44056
Member

oh and it didnt work

oh and it didnt work

Probably, but his GPU is different...we mixed the reports a bit so let's keep your issue focused here (don't close the other issue!). Probably solving your issue will solve the other one too, but we are not sure if this is a duplicate yet.

Anyway, keep the Intel discussion here please.

Probably, but his GPU is different...we mixed the reports a bit so let's keep your issue focused here (don't close the other issue!). Probably solving your issue will solve the other one too, but we are not sure if this is a duplicate yet. Anyway, keep the Intel discussion here please.
Member

ok

ok

BTW, @Blendify, it would really help if you could verify if #43987 happens with your GPU. It happens on my Intel HD3000 but would be interested to know if it happens with newer GPUs too. Thanks!

BTW, @Blendify, it would really help if you could verify if #43987 happens with your GPU. It happens on my Intel HD3000 but would be interested to know if it happens with newer GPUs too. Thanks!

Removed subscriber: @AlejandroDominguez

Removed subscriber: @AlejandroDominguez
Member

Added subscriber: @AlejandroDominguez

Added subscriber: @AlejandroDominguez
Member

We would appreciate if you would stay connected in case we have more questions that we can not answer ourselves :)

We would appreciate if you would stay connected in case we have more questions that we can not answer ourselves :)
Antonis Ryakiotakis was unassigned by Aaron Carlisle 2015-03-29 16:35:03 +02:00
Aaron Carlisle self-assigned this 2015-03-29 16:35:03 +02:00
Member

Added subscriber: @Psy-Fi

Added subscriber: @Psy-Fi
Aaron Carlisle changed title from View > Camera - Image/Viewport Freeze to High Quality DOF Glitches when GFX Card does not Support it- Intel Cards 2015-03-29 16:35:47 +02:00
Aaron Carlisle removed their assignment 2015-03-29 16:35:47 +02:00
Antonis Ryakiotakis was assigned by Aaron Carlisle 2015-03-29 16:35:47 +02:00
Member

cant tell if this has been fixed or falling back on not high quality if it does not support it i think greying out the option is a better idea

tested on different computer

Windows 7-64 bit
Intel HD 3000

cant tell if this has been fixed or falling back on not high quality if it does not support it i think greying out the option is a better idea tested on different computer Windows 7-64 bit Intel HD 3000

Changed it to greyed out in recent master.

Changed it to greyed out in recent master.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

I'm afraid I can't understand what the issue is with this shader.

The message is not clear enough and without access to an Intel GPU we can't really hope to solve this, since I'd have to do many compilations of the shader to see what works.
According to the specification there should be no error, so this is yet another driver quirk which we'll have to work around by figuring out what makes this specific driver reject the code.
It's possible that the "in" keyword before "vec2" confuses the driver but there is no other way to differentiate between geometry shader inputs and outputs.

Frankly, I have no idea what to try remotely without access to such a system.

I'll have to archive this for now and it might be fixed when I get my hands on such a GPU (or if another coder with it can figure out what the issue is). I'm willing to give directions to the files and code if someone can help with this.

I'm afraid I can't understand what the issue is with this shader. The message is not clear enough and without access to an Intel GPU we can't really hope to solve this, since I'd have to do many compilations of the shader to see what works. According to the specification there should be no error, so this is yet another driver quirk which we'll have to work around by figuring out what makes this specific driver reject the code. It's possible that the "in" keyword before "vec2" confuses the driver but there is no other way to differentiate between geometry shader inputs and outputs. Frankly, I have no idea what to try remotely without access to such a system. I'll have to archive this for now and it might be fixed when I get my hands on such a GPU (or if another coder with it can figure out what the issue is). I'm willing to give directions to the files and code if someone can help with this.

Removed subscriber: @AlejandroDominguez

Removed subscriber: @AlejandroDominguez
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#44072
No description provided.