openscad / openscad

OpenSCAD - The Programmers Solid 3D CAD Modeller
https://www.openscad.org
Other
6.93k stars 1.2k forks source link

Preview broken with Windows 10 - with difference() #1409

Closed urmilparikh closed 8 years ago

urmilparikh commented 9 years ago

I upgraded my OS to Windows 10 and now I find that preview (F5) is broken in some cases; and that OpenSCAD shows different views at different angles. Render (F6) works fine, as expected.

Seems an issue with difference().

With this example code:

difference() {
    translate([-3, -3, 0]) cube([6, 6, 1]);
    translate([0, 0, -0.1]) cylinder(d=3, h=1.2, $fn=12);
}

I get this with F6 (as expected): good

... but these with F5, at different view angles and at many view angles I do not see anything in preview: bad bad2

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

t-paul commented 9 years ago

Please post the information from Help -> Library Info.

Also check for updated graphics drivers. This type of issues are mostly caused by misbehaving drivers.

MichaelAtOz commented 9 years ago

Check whether Edit/Preferences/Advanced/Force-Goldfeather makes any difference.

urmilparikh commented 9 years ago

@MichaelAtOz: Yes, that fixes the issue.

@t-paul, I'll still update graphics driver and report result without 'Force-Goldfeather' set.

urmilparikh commented 9 years ago

With updated driver as well I see this issue, so Force Goldfeather is the solution.

Thank you!

TakeItAndRun commented 9 years ago

Now, dont close the issue. It should work without Force Gotdfeather

2015-08-10 4:29 GMT+02:00 urmilparikh notifications@github.com:

With updated driver as well I see this issue, so Force Goldfeather is the solution.

Thank you!

— Reply to this email directly or view it on GitHub https://github.com/openscad/openscad/issues/1409#issuecomment-129283050.

stempeldergeschichte@googlemail.com karsten@rohrbach.de

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist: Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben. Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy: I am currently trying short replies instead of no replies at all. Please let me know, if you like to read more.

Enjoy!

urmilparikh commented 9 years ago

Re-opening as requested.

t-paul commented 9 years ago

@urmilparikh could you please post the content of the Help -> Library Info window. This has detail information about the graphics driver and the OpenGL context OpenSCAD got. Hopefully that helps to find the root cause of the issue.

urmilparikh commented 9 years ago

Sure, here it is:

OpenSCAD Version: 2015.03-1
System information: Windows 8 (v6.2.0.0) 4 CPUs 7.93 GB RAM
Compiler: GCC "4.9.2" 64bit
Boost version: 1_57
Eigen version: 3.2.2
CGAL version, kernels: 4.5, Cartesian, Extended_cartesian, Epeck
OpenCSG version: OpenCSG 1.4.0
Qt version: 5.4.1
QScintilla version: 2.8.4
MingW build: MingW64
GLib version: 2.42.1
Application Path: C:/Program Files/OpenSCAD
Documents Path: D:\docs
Resource Path: C:/Program Files/OpenSCAD
User Library Path: D:/docs/OpenSCAD/libraries
User Config Path: C:\Users\Urmil\AppData\Local/OpenSCAD
Backup Path: D:/docs/OpenSCAD/backups
OPENSCADPATH: 
OpenSCAD library path:
D:/docs/OpenSCAD/libraries
C:/Program Files/OpenSCAD\libraries

OPENSCAD_FONT_PATH: 
OpenSCAD font path:
GLEW version: 1.12.0
OpenGL Version: 4.3.0 - Build 10.18.15.4248
GL Renderer: Intel(R) HD Graphics 4400
GL Vendor: Intel
RGBA(8888), depth(24), stencil(8)
GL_ARB_framebuffer_object: yes
GL_EXT_framebuffer_object: yes
GL_EXT_packed_depth_stencil: yes

Using QGLWidget

GL Extensions:
GL_3DFX_texture_compression_FXT1
GL_AMD_vertex_shader_layer
GL_AMD_vertex_shader_viewport_index
GL_ARB_ES2_compatibility
GL_ARB_ES3_compatibility
GL_ARB_arrays_of_arrays
GL_ARB_base_instance
GL_ARB_blend_func_extended
GL_ARB_buffer_storage
GL_ARB_cl_event
GL_ARB_clear_buffer_object
GL_ARB_clear_texture
GL_ARB_color_buffer_float
GL_ARB_compatibility
GL_ARB_compressed_texture_pixel_storage
GL_ARB_compute_shader
GL_ARB_conservative_depth
GL_ARB_copy_buffer
GL_ARB_copy_image
GL_ARB_debug_output
GL_ARB_depth_buffer_float
GL_ARB_depth_clamp
GL_ARB_depth_texture
GL_ARB_draw_buffers
GL_ARB_draw_buffers_blend
GL_ARB_draw_elements_base_vertex
GL_ARB_draw_indirect
GL_ARB_draw_instanced
GL_ARB_enhanced_layouts
GL_ARB_explicit_attrib_location
GL_ARB_explicit_uniform_location
GL_ARB_fragment_coord_conventions
GL_ARB_fragment_layer_viewport
GL_ARB_fragment_program
GL_ARB_fragment_program_shadow
GL_ARB_fragment_shader
GL_ARB_framebuffer_no_attachments
GL_ARB_framebuffer_object
GL_ARB_framebuffer_sRGB
GL_ARB_geometry_shader4
GL_ARB_get_program_binary
GL_ARB_gpu_shader5
GL_ARB_gpu_shader_fp64
GL_ARB_half_float_pixel
GL_ARB_half_float_vertex
GL_ARB_indirect_parameters
GL_ARB_instanced_arrays
GL_ARB_internalformat_query
GL_ARB_internalformat_query2
GL_ARB_invalidate_subdata
GL_ARB_map_buffer_alignment
GL_ARB_map_buffer_range
GL_ARB_multi_bind
GL_ARB_multi_draw_indirect
GL_ARB_multisample
GL_ARB_multitexture
GL_ARB_occlusion_query
GL_ARB_occlusion_query2
GL_ARB_pixel_buffer_object
GL_ARB_point_parameters
GL_ARB_point_sprite
GL_ARB_program_interface_query
GL_ARB_provoking_vertex
GL_ARB_query_buffer_object
GL_ARB_robust_buffer_access_behavior
GL_ARB_robustness
GL_ARB_sample_shading
GL_ARB_sampler_objects
GL_ARB_seamless_cube_map
GL_ARB_seamless_cubemap_per_texture
GL_ARB_separate_shader_objects
GL_ARB_shader_atomic_counters
GL_ARB_shader_bit_encoding
GL_ARB_shader_image_load_store
GL_ARB_shader_image_size
GL_ARB_shader_objects
GL_ARB_shader_precision
GL_ARB_shader_storage_buffer_object
GL_ARB_shader_subroutine
GL_ARB_shading_language_100
GL_ARB_shading_language_420pack
GL_ARB_shading_language_packing
GL_ARB_shadow
GL_ARB_stencil_texturing
GL_ARB_sync
GL_ARB_tessellation_shader
GL_ARB_texture_border_clamp
GL_ARB_texture_buffer_object_rgb32
GL_ARB_texture_buffer_range
GL_ARB_texture_compression
GL_ARB_texture_compression_bptc
GL_ARB_texture_compression_rgtc
GL_ARB_texture_cube_map
GL_ARB_texture_cube_map_array
GL_ARB_texture_env_add
GL_ARB_texture_env_combine
GL_ARB_texture_env_crossbar
GL_ARB_texture_env_dot3
GL_ARB_texture_float
GL_ARB_texture_gather
GL_ARB_texture_mirror_clamp_to_edge
GL_ARB_texture_mirrored_repeat
GL_ARB_texture_multisample
GL_ARB_texture_non_power_of_two
GL_ARB_texture_query_levels
GL_ARB_texture_query_lod
GL_ARB_texture_rectangle
GL_ARB_texture_rg
GL_ARB_texture_rgb10_a2ui
GL_ARB_texture_stencil8
GL_ARB_texture_storage
GL_ARB_texture_storage_multisample
GL_ARB_texture_swizzle
GL_ARB_texture_view
GL_ARB_timer_query
GL_ARB_transform_feedback2
GL_ARB_transform_feedback3
GL_ARB_transform_feedback_instanced
GL_ARB_transpose_matrix
GL_ARB_uniform_buffer_object
GL_ARB_vertex_array_bgra
GL_ARB_vertex_array_object
GL_ARB_vertex_attrib_64bit
GL_ARB_vertex_attrib_binding
GL_ARB_vertex_buffer_object
GL_ARB_vertex_program
GL_ARB_vertex_shader
GL_ARB_vertex_type_10f_11f_11f_rev
GL_ARB_vertex_type_2_10_10_10_rev
GL_ARB_viewport_array
GL_ARB_window_pos
GL_ATI_separate_stencil
GL_EXT_abgr
GL_EXT_bgra
GL_EXT_blend_color
GL_EXT_blend_equation_separate
GL_EXT_blend_func_separate
GL_EXT_blend_minmax
GL_EXT_blend_subtract
GL_EXT_clip_control
GL_EXT_clip_volume_hint
GL_EXT_compiled_vertex_array
GL_EXT_direct_state_access
GL_EXT_draw_buffers2
GL_EXT_draw_range_elements
GL_EXT_fog_coord
GL_EXT_framebuffer_blit
GL_EXT_framebuffer_multisample
GL_EXT_framebuffer_object
GL_EXT_geometry_shader4
GL_EXT_gpu_program_parameters
GL_EXT_gpu_shader4
GL_EXT_multi_draw_arrays
GL_EXT_packed_depth_stencil
GL_EXT_packed_float
GL_EXT_packed_pixels
GL_EXT_polygon_offset_clamp
GL_EXT_rescale_normal
GL_EXT_secondary_color
GL_EXT_separate_specular_color
GL_EXT_shader_integer_mix
GL_EXT_shadow_funcs
GL_EXT_stencil_two_side
GL_EXT_stencil_wrap
GL_EXT_texture3D
GL_EXT_texture_array
GL_EXT_texture_compression_s3tc
GL_EXT_texture_edge_clamp
GL_EXT_texture_env_add
GL_EXT_texture_env_combine
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_integer
GL_EXT_texture_lod_bias
GL_EXT_texture_rectangle
GL_EXT_texture_sRGB
GL_EXT_texture_sRGB_decode
GL_EXT_texture_shared_exponent
GL_EXT_texture_snorm
GL_EXT_texture_storage
GL_EXT_texture_swizzle
GL_EXT_transform_feedback
GL_IBM_texture_mirrored_repeat
GL_INTEL_fragment_shader_ordering
GL_INTEL_map_texture
GL_INTEL_performance_query
GL_KHR_blend_equation_advanced
GL_KHR_debug
GL_NV_blend_square
GL_NV_conditional_render
GL_NV_primitive_restart
GL_NV_texgen_reflection
GL_SGIS_generate_mipmap
GL_SGIS_texture_edge_clamp
GL_SGIS_texture_lod
GL_SUN_multi_draw_arrays
GL_WIN_swap_hint
WGL_ARB_buffer_region
WGL_ARB_create_context
WGL_ARB_create_context_profile
WGL_ARB_create_context_robustness
WGL_ARB_extensions_string
WGL_ARB_framebuffer_sRGB
WGL_ARB_make_current_read
WGL_ARB_multisample
WGL_ARB_pbuffer
WGL_ARB_pixel_format
WGL_ARB_pixel_format_float
WGL_EXT_create_context_es2_profile
WGL_EXT_create_context_es_profile
WGL_EXT_depth_float
WGL_EXT_extensions_string
WGL_EXT_pixel_format_packed_float
WGL_EXT_swap_control
WGL_EXT_swap_control_tear
WGL_NV_DX_interop
t-paul commented 9 years ago

Thanks, is that already with the updated graphics driver? The Intel Download Center seems to provide version 15.40.4.64.4256 which sounds quite a bit newer than the one reported in the OpenSCAD info (10.18.15.4248).

urmilparikh commented 9 years ago

I confirmed that Windows still says my driver is up-to-date. It is possible that Windows is not yet installing this new version.

Let's wait for Windows to install new version.

Neon22 commented 9 years ago

I have installed Build 10.18.15.4256 which windows informs me is the latest for my machine. It shows same problem in F9 preview. The "Force Goldfeather" fix works for this build.

urish commented 9 years ago

Same here:

OpenSCAD Version: 2015.03-1
System information: Windows 8 (v6.2.0.0) 4 CPUs 15.91 GB RAM
...
OpenGL Version: 4.3.0 - Build 10.18.15.4256
GL Renderer: Intel(R) HD Graphics 4400
GL Vendor: Intel

Works only with the "Force Goldfeather" workaround

kintel commented 9 years ago

@urish Is this on Windows 10 as well?

urish commented 9 years ago

Yup, windows 10.

p.s. I love openscad! On Aug 24, 2015 5:05 PM, "Marius Kintel" notifications@github.com wrote:

@urish https://github.com/urish Is this on Windows 10 as well?

— Reply to this email directly or view it on GitHub https://github.com/openscad/openscad/issues/1409#issuecomment-134216742.

kintel commented 9 years ago

Thx - the only theory I have thus far is that this Intel driver is the first one that supports Windows 10, and there might be some initial issues. There are multiple other issues with this driver in other software (found by googling), so it might be worth waiting for an update.

(dev note: A better way of finding such issues might be for us to write a stand-alone OpenCSG test app, as an attempt to reduce the problem to as few components as possible.)

urish commented 9 years ago

Thanks!

Are there any drawbacks for using the workaround? On Aug 24, 2015 5:12 PM, "Marius Kintel" notifications@github.com wrote:

Thx - the only theory I have thus far is that this Intel driver is the first one that supports Windows 10, and there might be some initial issues. There are multiple other issues with this driver in other software (found by googling), so it might be worth waiting for an update.

(dev note: A better way of finding such issues might be for us to write a stand-alone OpenCSG test app, as an attempt to reduce the problem to as few components as possible.)

— Reply to this email directly or view it on GitHub https://github.com/openscad/openscad/issues/1409#issuecomment-134219393.

kintel commented 9 years ago

I think the drawback would only be rendering speed.

ehaskins commented 9 years ago

I'm seeing the same issue. Surface Pro 3, with latest driver from Windows Update. Force Godfather works fine.

OpenSCAD Version: 2015.03-1
System information: Windows 8 (v6.2.0.0) 4 CPUs 7.91 GB RAM
...
OpenGL Version: 4.3.0 - Build 10.18.15.4256
GL Renderer: Intel(R) HD Graphics 4400

Full lib info output: https://gist.github.com/ehaskins/59108f38955d5b35e624

rossbagley commented 8 years ago

I just manually installed the 15.40.4.64.4256 driver bundle and it reinstalled the HD Graphics Driver version 10.18.15.4248 (same version as I and everyone else using fully updated Windows 10 has).

And the "Force Goldfeather" worked for me as well. Thank : waiting for rerender was making me code more carefully, but also driving me to use openscad less and less.

trayracing commented 8 years ago

Doesn't occur in OpenSCAD 2015.03, but does in 2015.03-1 and later (including 2014.06.14). I'm on Win10/Intel 4400/driver 10.18.15.4256. Slightly simpler repro case: difference() { cube(10, center=true); cube([5,5,20], center=true); }

trayracing commented 8 years ago

In the two cube difference example, the model disappears when viewed from above or below. It appears without hole from the side. From a certain angle underneath, depending on the viewport size, I can see the either the cube or the hole, but not both. Screenshots attached, including a render of the intender scene, which looks correct. Also, intersection() is not drawn correctly - looks like the first cube from above/below, but second cube from the side. union() looks correct. With Goldfeather enabled all look correct.'

baddifferenceblue baddifferencegray differencerendered

keithjjones commented 8 years ago

:+1: Same issue. Force goldfeather fixes it for me too. Windows 10 here as well. (Not sure why it says Windows 8 below, I am definitely on Windows 10.) It works without this setting on another Windows 10 install that I have.

PS - love OpenSCAD!

OpenSCAD Version: 2015.03-2
System information: Windows 8 (v6.2.0.0) 4 CPUs 7.92 GB RAM
Compiler: GCC "5.2.0" 64bit
Boost version: 1_57
Eigen version: 3.2.5
CGAL version, kernels: 4.5, Cartesian, Extended_cartesian, Epeck
OpenCSG version: OpenCSG 1.4.0
Qt version: 5.5.1
QScintilla version: 2.8.4
MingW build: MingW64
GLib version: 2.44.1
Application Path: C:/Program Files/OpenSCAD
Documents Path: C:\Users\Keith\Documents
Resource Path: C:/Program Files/OpenSCAD
User Library Path: C:/Users/Keith/Documents/OpenSCAD/libraries
User Config Path: C:\Users\Keith\AppData\Local/OpenSCAD
Backup Path: C:/Users/Keith/Documents/OpenSCAD/backups
OPENSCADPATH: 
OpenSCAD library path:
C:/Users/Keith/Documents/OpenSCAD/libraries
C:/Program Files/OpenSCAD\libraries

OPENSCAD_FONT_PATH: 
OpenSCAD font path:
GLEW version: 1.12.0
OpenGL Version: 4.4.0 - Build 20.19.15.4331
GL Renderer: Intel(R) HD Graphics 5300
GL Vendor: Intel
RGBA(8888), depth(24), stencil(8)
GL_ARB_framebuffer_object: yes
GL_EXT_framebuffer_object: yes
GL_EXT_packed_depth_stencil: yes

Using QGLWidget

GL Extensions:
GL_3DFX_texture_compression_FXT1
GL_AMD_vertex_shader_layer
GL_AMD_vertex_shader_viewport_index
GL_ARB_ES2_compatibility
GL_ARB_ES3_compatibility
GL_ARB_arrays_of_arrays
GL_ARB_base_instance
GL_ARB_blend_func_extended
GL_ARB_buffer_storage
GL_ARB_cl_event
GL_ARB_clear_buffer_object
GL_ARB_clear_texture
GL_ARB_clip_control
GL_ARB_color_buffer_float
GL_ARB_compatibility
GL_ARB_compressed_texture_pixel_storage
GL_ARB_compute_shader
GL_ARB_conservative_depth
GL_ARB_copy_buffer
GL_ARB_copy_image
GL_ARB_debug_output
GL_ARB_depth_buffer_float
GL_ARB_depth_clamp
GL_ARB_depth_texture
GL_ARB_draw_buffers
GL_ARB_draw_buffers_blend
GL_ARB_draw_elements_base_vertex
GL_ARB_draw_indirect
GL_ARB_draw_instanced
GL_ARB_enhanced_layouts
GL_ARB_explicit_attrib_location
GL_ARB_explicit_uniform_location
GL_ARB_fragment_coord_conventions
GL_ARB_fragment_layer_viewport
GL_ARB_fragment_program
GL_ARB_fragment_program_shadow
GL_ARB_fragment_shader
GL_ARB_fragment_shader_interlock
GL_ARB_framebuffer_no_attachments
GL_ARB_framebuffer_object
GL_ARB_framebuffer_sRGB
GL_ARB_geometry_shader4
GL_ARB_get_program_binary
GL_ARB_gpu_shader5
GL_ARB_gpu_shader_fp64
GL_ARB_half_float_pixel
GL_ARB_half_float_vertex
GL_ARB_indirect_parameters
GL_ARB_instanced_arrays
GL_ARB_internalformat_query
GL_ARB_internalformat_query2
GL_ARB_invalidate_subdata
GL_ARB_map_buffer_alignment
GL_ARB_map_buffer_range
GL_ARB_multi_bind
GL_ARB_multi_draw_indirect
GL_ARB_multisample
GL_ARB_multitexture
GL_ARB_occlusion_query
GL_ARB_occlusion_query2
GL_ARB_pixel_buffer_object
GL_ARB_point_parameters
GL_ARB_point_sprite
GL_ARB_program_interface_query
GL_ARB_provoking_vertex
GL_ARB_query_buffer_object
GL_ARB_robust_buffer_access_behavior
GL_ARB_robustness
GL_ARB_sample_shading
GL_ARB_sampler_objects
GL_ARB_seamless_cube_map
GL_ARB_seamless_cubemap_per_texture
GL_ARB_separate_shader_objects
GL_ARB_shader_atomic_counters
GL_ARB_shader_bit_encoding
GL_ARB_shader_image_load_store
GL_ARB_shader_image_size
GL_ARB_shader_objects
GL_ARB_shader_precision
GL_ARB_shader_storage_buffer_object
GL_ARB_shader_subroutine
GL_ARB_shading_language_100
GL_ARB_shading_language_420pack
GL_ARB_shading_language_packing
GL_ARB_shadow
GL_ARB_stencil_texturing
GL_ARB_sync
GL_ARB_tessellation_shader
GL_ARB_texture_border_clamp
GL_ARB_texture_buffer_object_rgb32
GL_ARB_texture_buffer_range
GL_ARB_texture_compression
GL_ARB_texture_compression_bptc
GL_ARB_texture_compression_rgtc
GL_ARB_texture_cube_map
GL_ARB_texture_cube_map_array
GL_ARB_texture_env_add
GL_ARB_texture_env_combine
GL_ARB_texture_env_crossbar
GL_ARB_texture_env_dot3
GL_ARB_texture_float
GL_ARB_texture_gather
GL_ARB_texture_mirror_clamp_to_edge
GL_ARB_texture_mirrored_repeat
GL_ARB_texture_multisample
GL_ARB_texture_non_power_of_two
GL_ARB_texture_query_levels
GL_ARB_texture_query_lod
GL_ARB_texture_rectangle
GL_ARB_texture_rg
GL_ARB_texture_rgb10_a2ui
GL_ARB_texture_stencil8
GL_ARB_texture_storage
GL_ARB_texture_storage_multisample
GL_ARB_texture_swizzle
GL_ARB_texture_view
GL_ARB_timer_query
GL_ARB_transform_feedback2
GL_ARB_transform_feedback3
GL_ARB_transform_feedback_instanced
GL_ARB_transpose_matrix
GL_ARB_uniform_buffer_object
GL_ARB_vertex_array_bgra
GL_ARB_vertex_array_object
GL_ARB_vertex_attrib_64bit
GL_ARB_vertex_attrib_binding
GL_ARB_vertex_buffer_object
GL_ARB_vertex_program
GL_ARB_vertex_shader
GL_ARB_vertex_type_10f_11f_11f_rev
GL_ARB_vertex_type_2_10_10_10_rev
GL_ARB_viewport_array
GL_ARB_window_pos
GL_ATI_separate_stencil
GL_EXT_abgr
GL_EXT_bgra
GL_EXT_blend_color
GL_EXT_blend_equation_separate
GL_EXT_blend_func_separate
GL_EXT_blend_minmax
GL_EXT_blend_subtract
GL_EXT_clip_volume_hint
GL_EXT_compiled_vertex_array
GL_EXT_direct_state_access
GL_EXT_draw_buffers2
GL_EXT_draw_range_elements
GL_EXT_fog_coord
GL_EXT_framebuffer_blit
GL_EXT_framebuffer_multisample
GL_EXT_framebuffer_object
GL_EXT_geometry_shader4
GL_EXT_gpu_program_parameters
GL_EXT_gpu_shader4
GL_EXT_multi_draw_arrays
GL_EXT_packed_depth_stencil
GL_EXT_packed_float
GL_EXT_packed_pixels
GL_EXT_polygon_offset_clamp
GL_EXT_rescale_normal
GL_EXT_secondary_color
GL_EXT_separate_specular_color
GL_EXT_shader_integer_mix
GL_EXT_shadow_funcs
GL_EXT_stencil_two_side
GL_EXT_stencil_wrap
GL_EXT_texture3D
GL_EXT_texture_array
GL_EXT_texture_compression_s3tc
GL_EXT_texture_edge_clamp
GL_EXT_texture_env_add
GL_EXT_texture_env_combine
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_integer
GL_EXT_texture_lod_bias
GL_EXT_texture_rectangle
GL_EXT_texture_sRGB
GL_EXT_texture_sRGB_decode
GL_EXT_texture_shared_exponent
GL_EXT_texture_snorm
GL_EXT_texture_storage
GL_EXT_texture_swizzle
GL_EXT_transform_feedback
GL_IBM_texture_mirrored_repeat
GL_INTEL_fragment_shader_ordering
GL_INTEL_map_texture
GL_INTEL_performance_query
GL_KHR_blend_equation_advanced
GL_KHR_debug
GL_NV_blend_square
GL_NV_conditional_render
GL_NV_primitive_restart
GL_NV_texgen_reflection
GL_SGIS_generate_mipmap
GL_SGIS_texture_edge_clamp
GL_SGIS_texture_lod
GL_SUN_multi_draw_arrays
GL_WIN_swap_hint
WGL_ARB_buffer_region
WGL_ARB_create_context
WGL_ARB_create_context_profile
WGL_ARB_create_context_robustness
WGL_ARB_extensions_string
WGL_ARB_framebuffer_sRGB
WGL_ARB_make_current_read
WGL_ARB_multisample
WGL_ARB_pbuffer
WGL_ARB_pixel_format
WGL_ARB_pixel_format_float
WGL_EXT_create_context_es2_profile
WGL_EXT_create_context_es_profile
WGL_EXT_depth_float
WGL_EXT_extensions_string
WGL_EXT_pixel_format_packed_float
WGL_EXT_swap_control
WGL_EXT_swap_control_tear
WGL_NV_DX_interop
pmjs1115 commented 8 years ago

As of April 3, 2016 this problem still exists with Windows 10, newly installed and updated in February. The fix also works.

michael13162 commented 8 years ago

April 28, 2016, and I'm having this problem on Windows 10 as well.

kintel commented 8 years ago

@michael13162 Does the Force Goldfeather option work? Are you using the latest drivers (Intel drivers are currently at *.4380) ?

(We're still short one Windows dev with an Intel GPU. I guess the former is harder to find than the latter)

michael13162 commented 8 years ago

Yes, Force Goldfeather works, but I have no idea what it means.

Neon22 commented 8 years ago

nobody knows - and lots of people in lots of apps having similar diffculty with openGL drivers for intel chipset. not something we can fix in another way IMHO. we wait for new drivers from intel, or the heat death of the universe - whichever comes first.....

trayracing commented 8 years ago

It broke between 2015.03 and 2105.03-1. That's not a big range of changes to look at.

kintel commented 8 years ago

@trayracing There's nothing done between 2015.03 and 2015.03-1 that should affect this. Perhaps some small 3rd party library change is contributing to this issue. We're using MXE to build dependencies; perhaps something changed there. If anyone has the time to compare Help->Library Info between the three versions 2015.03, 2015.03-1 and 2015.03-2, that would be helpful.

Also, if someone could point to the cheapest possible laptop which demonstrates this issue, that could also be helpful in terms of matching the necessary hardware with a developer.

@donbright @t-paul any idea of who may be interested in helping out if we could acquire the hardware?

jbeale1 commented 8 years ago

June 26 2016: I just upgraded my Dell Inspiron 15 Win7 (Pentium 3558U) laptop to Win10 and found this rendering bug. Selecting the option "Force Goldfeather" fixes it.

OpenSCAD Version: 2015.03-2
System information: Windows 8 (v6.2.0.0) 2 CPUs 3.91 GB RAM
Compiler: GCC "5.2.0" 64bit
GLEW version: 1.12.0
OpenGL Version: 4.3.0 - Build 10.18.15.4274
GL Renderer: Intel(R) HD Graphics
GL Vendor: Intel
RGBA(8888), depth(24), stencil(8)
kintel commented 8 years ago

@jbeale1 Could you give the latest drivers from Intel a spin? https://downloadcenter.intel.com/download/25977/Intel-Graphics-Driver-for-Windows-10-and-Windows-7-8-1-15-33-

jbeale1 commented 8 years ago

@kintel : This Dell laptop apparently needs Dell proprietary drivers, the generic Intel one warns that it has detected my laptop uses a customized driver and the standard Intel one may not work so I'm attempting to get the correct Dell driver but it's a bit of an adventure. Still trying...

jbeale1 commented 8 years ago

I tried to install the current Intel driver despite the warnings, and it refused to install saying "This computer does not meet the minimum requirements for this driver". Needs a newer CPU I guess (?) I installed the current driver for my model laptop from Dell (Inspiron 3542 Service Tag: BMNY512), which is Intel HD version 20.19.15.4404 Unfortunately, the problem remains, although I can still fix it with "Force Goldfeather".

trayracing commented 8 years ago

jbeale, it's not uncommon. The intel installer appropriate for my HD 4400 on my HP refused to install, saying it hadn't been validated for my system. HP isn't inclined to update drivers, so I remain stuck at 10.18.15.4279 from a year ago. Any notebook vendors that don't play these games?

donbright commented 8 years ago

@kintel it just so happens that my trusty old machine quit working recently and i had to buy a cheapo model from Staples and i got an HP 15-ac161nf which has an Intel HD graphics thingy and it does in fact reproduce this bug on Windows 10(TM)

@trayracing example box is invisible from the 'top' etc etc etc. It just disappears. Rotate to the side and it's fine. Hilarious.

the problem is i don't have much time... i shouldn't even be typing this. im supposed to be asleep. they dont like it when i start snoring in my cubicle.

im also not supposed to be spending time describing what Goldfeather is. and that it's not a thing, it's a person. (Sorry alot of people know this already but someone above mentioned it so here goes)

It goes back to OpenCSG, check out the FAQ http://opencsg.org/#FAQ

or especially this paper by Florian Kirsch (who makes OpenCSG) and Jürgen Döllner

OpenCSG: A Library for Image-Based CSG Rendering

https://www.usenix.org/legacy/event/usenix05/tech/freenix/full_papers/kirsch/kirsch.pdf

Now as their paper describes, OpenCSG works by using various algorithms to fake 3d rendering using only 2d rendering tricks like stencil buffers and whatever. OpenCSG is designed to allow the user to choose which algorithm to use. SCS algorithm is one, Goldfeather algorithm is another,

Goldfeather is Jack Goldfeather... the lead author in a graphics paper that describes the algorithm. Here is the paper he wrote with Monar, Turk, and Fuchs about their ideas

http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=28107&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D28107

Goldfeather actually has a website! He is a professor in Minnesota. Check it out

https://apps.carleton.edu/profiles/jgoldfea/

Thanks Dr Goldfeather, those paper he worked on in the 1980s are helping people workaround a bug in graphics drivers in 2016. Yay internet.


Yes to the idea of Intel updating drivers.... there have been problems with OpenSCAD on Intel HD for many years... but OpenCSG is not using "advanced features". It was created in the early 00s!!! They mention some video cards from over 10 years ago in their paper and those cards would run OpenCSG just fine. So in many cases you would be better downgrading your Intel HD graphics to something like a Ge Force from 2005 lol. Unfortunately not possible on most laptops. Anyways . I don't think Intel / Windows / Whoever is ever going to fix these bugs.

where i would start... with all this... implementing a workaround so users don't have to worry about all this ..... is trying to get OpenCSG's example program (that comes with it's source code, which allows toggling different rendering algorithms) to build under MSYS2. Then see if it is reproducible problem there. narrow it down to whether it's OpenCSG or the way OpenSCAD uses OpenCSG.

urmilparikh commented 8 years ago

Nice info, @donbright :)

kintel commented 8 years ago

@donbright It would be really good to even ship a pre-compiled OpenCSG demo to help people confirm that this is reproducible.

trayracing commented 8 years ago

@kintel here's the library diff:

$ diff *.txt
1c1
< OpenSCAD Version: 2015.03
---
> OpenSCAD Version: 2015.03-1
3c3
< Compiler, build date: GCC "4.9.2" 64bit, Mar 10 2015
---
> Compiler: GCC "5.2.0" 64bit
5c5
< Eigen version: 3.2.2
---
> Eigen version: 3.2.5
7,8c7,8
< OpenCSG version: OpenCSG 1.3.2
< Qt version: 5.4.0
---
> OpenCSG version: OpenCSG 1.4.0
> Qt version: 5.5.1
11,12c11,12
< GLib version: 2.42.1
< Application Path: C:/Users/moo/Programs/openscad-2015.03
---
> GLib version: 2.44.1
> Application Path: C:/Users/moo/Programs/OpenSCAD-2015.03-1-x86-64/openscad-2015.03-1
14c14
< Resource Path: C:/Users/moo/Programs/openscad-2015.03
---
> Resource Path: C:/Users/moo/Programs/OpenSCAD-2015.03-1-x86-64/openscad-2015.03-1
21c21
< C:/Users/moo/Programs/openscad-2015.03\libraries
---
> C:/Users/moo/Programs/OpenSCAD-2015.03-1-x86-64/openscad-2015.03-1\libraries
25c25
< GLEW version: 1.11.0
---
> GLEW version: 1.12.0
kintel commented 8 years ago

@trayracing @donbright I believe the most likely is the OpenCSG update to 1.4.0. OpenCSG did update some core rendering code in 1.4.0 (a new fragment shader for ID color management), which could potentially trip up a shaky driver.

If we could isolate OpenCSG as the problem, I believe this could be possible to debug, especially if we could send an example app to the OpenCSG author :)

halxinate commented 8 years ago

Sad. IG5500 with latest drivers and win10 - same issue. In addition, with the Goldfeather On, I'm having a ghosty flickering (on the preview rotation) "residue" in the removed volume, plus the color transparency doesn't work for the first object of the assembly (desk), only for the second one. If you reorder them - desk() becomes transparent, and the ladder() - not (possibly an unrelated issue though).

https://snag.gy/1Dqst5.jpg https://snag.gy/tSNda9.jpg

$fn = 80;

difference() {
    assembly();    
    holes();
}

module assembly() {
    desk();
    ladder();
}

module ladder() {
    translate([2,0,0]) leg();
    translate([-2,0,0]) leg();
}

module desk(){
    difference() {
        translate([-2.5,0.5,-2]) color("yellow", 0.5) cube(size=[5,0.5,4]);
        translate([-1.5,0.5,-3]) cube(size=[3,0.5,2]);
    }        
}
module holes() {
    translate([2,2,1.5]) bolthole();
    translate([-2,2,1.5]) bolthole();
    translate([2,2,0.5]) bolthole();
    translate([-2,2,0.5]) bolthole();
}

module leg() {
    color("green",0.5) cylinder(h=10, d=1);
}

module bolthole() {
    rotate([90,0,0]) cylinder(h=5, d=0.2);
}
trayracing commented 8 years ago

If we could isolate OpenCSG as the problem... Not that I know anything about OpenCSG, but I just tried the OpenCSG example in 1.4.0 and it looks broken in 1.4.0 compared to 1.3.3. (Built in VisualStudio 2015). 1.4 shows a sphere, then cube, then nothing in a loop. 1.3.3 shows a CSG model spinning. The OpenCSG web site says "On graphics hardware from Intel, OpenCSG does not always work well." From: Marius Kintel notifications@github.com To: openscad/openscad openscad@noreply.github.com Cc: trayracing daqray@yahoo.com; Mention mention@noreply.github.com Sent: Wednesday, August 17, 2016 5:59 PM Subject: Re: [openscad/openscad] Preview broken with Windows 10 - with difference() (#1409)

@trayracing @donbright I believe the most likely is the OpenCSG update to 1.4.0. OpenCSG did update some core rendering code in 1.4.0 (a new fragment shader for ID color management), which could potentially trip up a shaky driver.If we could isolate OpenCSG as the problem, I believe this could be possible to debug, especially if we could send an example app to the OpenCSG author :)— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

kintel commented 8 years ago

If you can reproduce the problem with a pure OpenCSG example, that would be a good time to report this as an OpenCSG bug. It would be good if someone capable of reproducing this could report it, to be able to quickly respond to any ideas from the authors.

MichaelAtOz commented 8 years ago

plus the color transparency doesn't work for the first object of the assembly (desk), only for the second one. If you reorder them - desk() becomes transparent, and the ladder() - not (possibly an unrelated issue though).

@halxinate see whether https://github.com/openscad/openscad/issues/310 explains what you see.

halxinate commented 8 years ago

Yep, looks like exactly that 3+ years old issue (even though in my case all of the parts are colored and with 0.5 alpha). And it's definitely a separate bug. Thank you for the tip!

trayracing commented 8 years ago

Here's a quick clip of the OpenCSG 1.4 example on Intel HD4400 Driver 10.18.15.4279 (https://github.com/openscad/openscad/files/426063/OpenCSG.1.4.example.Intel.HD4400.Driver.10.18.15.4279.zip)

trayracing commented 8 years ago

I sent a short description of the situation and a video clip to the OpenCSG e-mail address.

kintel commented 8 years ago

@trayracing thx

trayracing commented 8 years ago

Good news! Florian of Openscad fame responded and has been able to reproduce the issue inside the test app. While Florian believes it to be a driver bug encountered by changes in the last OpenCSG release, Florian developed a workaround. Portability testing now with the intent of releasing an update very shortly.

kintel commented 8 years ago

@trayracing Cool! Please keep us updated!

trayracing commented 8 years ago

I confirmed Florian's change works locally in the OpenCSG example on my Intel GPU.