Skip to main content
Topic: 3D Gerber Viewer (Read 104053 times) previous topic - next topic

Re: 3D Gerber Viewer

Reply #15
On my old faithful 32 bit XP SP3 with the latest zip, I get a "C:Gerber Viewergrbv.exe is not a valid Win32 application." error box and nothing more.

Re: 3D Gerber Viewer

Reply #16
@Stuff4Pi: I'd be happy to have a look at your problem if you give me more detais.

@veryevil: I'm not sure I know how to fix this. Below is an attempt. In addition to downloading this version, you need to create a file named display.conf at the root, and in it write "use_distance_buffer = false" without the quotes.
  - grbv-20130806T1506-32bits.zip
  - grbv-20130806T1506-64bits.zip

@Squonk: Unfortunately my compiler generates binaries that won't run on XP. To resolve that I'd have to change my build setup to use an older compiler, but I cannot do that right now.


Re: 3D Gerber Viewer

Reply #18
@Stuff4Pi: I think this is a bug in the GLSL compiler of your OpenGL driver. Can you look at the file "Gerber Viewershadersentity_textured.glsl" in a text editor (Notepad for example), locate the following line:
Code: [Select]
	vec4 color = HasColorTexture ? texture(ColorTexture, ex_Color.xy) : vec4(ex_Color, 1);
and replace it with:
Code: [Select]
	vec4 color;
if (HasColorTexture)
color = texture(ColorTexture, ex_Color.xy);
else
vec4(ex_Color, 1);


Re: 3D Gerber Viewer

Reply #20
Hey, thanks for looking! Now I seem to get this with or without the display.conf file

Code: [Select]
OpenGL:
        renderer: Intel(R) HD Graphics 2000
        version: 3.1 (3.1.0 - Build 9.17.10.3062)
        GLSL: 1.4 (1.40 - Intel Build 9.17.10.3062)
grbv: ...rsStevenRichardsonDesktopGerber Viewerlua5.2nb.lua:149:
...chardsonDesktopGerber Viewerlua5.2enginerender.lua:72:
...sonDesktopGerber Viewerlua5.2enginedisplayfbo.lua:74: incomplete framebuffer (FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT)
stack traceback:
        [C]: in function 'error'
        ...sonDesktopGerber Viewerlua5.2enginedisplayfbo.lua:74: in function 'new'
        ...hardsonDesktopGerber Viewerlua5.2enginedisplay.lua:325: in main chunk
        [C]: in function 'xpcall'
        ...chardsonDesktopGerber Viewerlua5.2enginerender.lua:67: in function 'display'
        ...chardsonDesktopGerber Viewerlua5.2enginerender.lua:125: in function
<...chardsonDesktopGerber Viewerlua5.2enginerender.lua:100>
        (...tail calls...)
stack traceback:
        [C]: in function 'error'
        ...chardsonDesktopGerber Viewerlua5.2enginerender.lua:72: in function 'display'
        ...chardsonDesktopGerber Viewerlua5.2enginerender.lua:125: in function
<...chardsonDesktopGerber Viewerlua5.2enginerender.lua:100>
stack traceback:
        [C]: in function 'GetExitCodeThread'
        ...nRichardsonDesktopGerber Viewerlua5.2enginegui.lua:406: in function
<...nRichardsonDesktopGerber Viewerlua5.2enginegui.lua:404>
stack traceback:
        [C]: in function 'error'
        ...rsStevenRichardsonDesktopGerber Viewerlua5.2nb.lua:149: in function 'resume'
        ...rsStevenRichardsonDesktopGerber Viewerlua5.2nb.lua:244: in function 'run'
        C:UsersStevenRichardsonDesktopGerber Viewergrbv.lua:662: in main chunk
        [C]: in ?

Re: 3D Gerber Viewer

Reply #21
@Sleepwalker3: I fixed that particular error (the first screenshot). Assuming the second screenshot pops up just after the first (or behind), the version tagged 20130807T1521 should get you further.

@veryevil: I'm a bit disappointed the display.conf workaround doesn't work, but I have another user in exactly the same situation as you. I have to study further the possible causes of the error, I'm out of ideas right now.

Re: 3D Gerber Viewer

Reply #22
@veryevil: I just uploaded a new version (tagged 20130808T0401) that should fix that very same issue on ATI/AMD hardware, so hopefully it will also fix it on your Intel hardware.

Re: 3D Gerber Viewer

Reply #23
Still no joy on Win7/64 with the 0401 release.

Code: [Select]
C:UsersMatsDesktopGerber Viewer>grbv.com
OpenGL:
        vendor: Intel
        renderer: Intel(R) HD Graphics Family
        version: 3.1 (3.1.0 - Build 8.15.10.2462)
        GLSL: 1.4 (1.40  - Intel Build 8.15.10.2462)
grbv: C:UsersMatsDesktopGerber Viewerlua5.2nb.lua:149: ...ersMatsDesktopGerber Viewerlua5.2enginerender.lua:72: ...De
sktopGerber Viewerlua5.2enginedisplayshader.lua:72: GLSL compilation error:
        while compiling ./shadersentity_textured.glsl:
        ERROR: 3:55: 'inverse' : no matching overloaded function found (using implicit conversion)
stack traceback:
        [C]: in function 'error'
        ...DesktopGerber Viewerlua5.2enginedisplayshader.lua:72: in function 'compile'
        ...DesktopGerber Viewerlua5.2enginedisplayshader.lua:179: in function 'load'
        ...DesktopGerber Viewerlua5.2enginedisplayshader.lua:227: in function 'new'
        ...rsMatsDesktopGerber Viewerlua5.2enginedisplay.lua:233: in main chunk
        [C]: in function 'xpcall'
        ...ersMatsDesktopGerber Viewerlua5.2enginerender.lua:67: in function 'display'
        ...ersMatsDesktopGerber Viewerlua5.2enginerender.lua:125: in function <...ersMatsDesktopGerber Viewerlua5.2engi
nerender.lua:100>
        (...tail calls...)
stack traceback:
        [C]: in function 'error'
        ...ersMatsDesktopGerber Viewerlua5.2enginerender.lua:72: in function 'display'
        ...ersMatsDesktopGerber Viewerlua5.2enginerender.lua:125: in function <...ersMatsDesktopGerber Viewerlua5.2engi
nerender.lua:100>
stack traceback:
        [C]: in function 'GetExitCodeThread'
        C:UsersMatsDesktopGerber Viewerlua5.2enginegui.lua:421: in function <C:UsersMatsDesktopGerber Viewerlua5.2eng
inegui.lua:419>
stack traceback:
        [C]: in function 'error'
        C:UsersMatsDesktopGerber Viewerlua5.2nb.lua:149: in function 'resume'
        C:UsersMatsDesktopGerber Viewerlua5.2nb.lua:244: in function 'run'
        C:UsersMatsDesktopGerber Viewergrbv.lua:670: in main chunk
        [C]: in ?

Re: 3D Gerber Viewer

Reply #24
I could upgrade to a OpenGL version newer than the 3.1, but it might be "betterer" if you found a solution to your software instead.  I'm sure there's many like me that doesn't play games and haven't bothered to upgrade to 4.x.

 

Re: 3D Gerber Viewer

Reply #25
Hey, thanks again. Think it got a little further!

Was FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT now FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT

Code: [Select]
OpenGL:
        vendor: Intel
        renderer: Intel(R) HD Graphics 2000
        version: 3.1 (3.1.0 - Build 9.17.10.3062)
        GLSL: 1.4 (1.40 - Intel Build 9.17.10.3062)
grbv: ...rsStevenRichardsonDesktopGerber Viewerlua5.2nb.lua:149:
 ...chardsonDesktopGerber Viewerlua5.2enginerender.lua:72:
 ...sonDesktopGerber Viewerlua5.2enginedisplayfbo.lua:90:
incomplete framebuffer (FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT)
stack traceback:
        [C]: in function 'error'
        ...sonDesktopGerber Viewerlua5.2enginedisplayfbo.lua:90: in function 'new'
        ...hardsonDesktopGerber Viewerlua5.2enginedisplay.lua:325: in main chunk
        [C]: in function 'xpcall'
        ...chardsonDesktopGerber Viewerlua5.2enginerender.lua:67: in function 'display'
        ...chardsonDesktopGerber Viewerlua5.2enginerender.lua:125: in function
<...chardsonDesktopGerber Viewerlua5.2enginerender.lua:100>
        (...tail calls...)
stack traceback:
        [C]: in function 'error'
        ...chardsonDesktopGerber Viewerlua5.2enginerender.lua:72: in function 'display'
        ...chardsonDesktopGerber Viewerlua5.2enginerender.lua:125: in function
<...chardsonDesktopGerber Viewerlua5.2enginerender.lua:100>
stack traceback:
        [C]: in function 'GetExitCodeThread'
        ...nRichardsonDesktopGerber Viewerlua5.2enginegui.lua:421: in function
<...nRichardsonDesktopGerber Viewerlua5.2enginegui.lua:419>
stack traceback:
        [C]: in function 'error'
        ...rsStevenRichardsonDesktopGerber Viewerlua5.2nb.lua:149: in function 'resume'
        ...rsStevenRichardsonDesktopGerber Viewerlua5.2nb.lua:244: in function 'run'
        C:UsersStevenRichardsonDesktopGerber Viewergrbv.lua:670: in main chunk
        [C]: in ?

Re: 3D Gerber Viewer

Reply #26
Hi Doub,
Yes that was two screenshots, the second was up after I closed the first one.
Tried again with grbv-20130808T0401-32bits.zip and have the following error. Thanks for your efforts with this, I don't need it myself, I already have a suitable setup, but I figure it may be useful sometime and others can benefit from it, so I'll try to help out :)
Again this is Vista Ultimate 32. If it's possible, it would be handy if it came up with the version number in the error message, would save a minute or two when posting these screenshots. Not sure how hard that would be for you.

Re: 3D Gerber Viewer

Reply #27
@all: The version number is actually a date and time in the form yyyymmddThhmm. At the moment it's OK to use only the last 4 digits, but as I build more versions it might get confusing so please report the whole tag.

@matseng: Can you create a file named display.conf in the tool directory, and write the following line in it?
Code: [Select]
cast_shadows = false
I added some detection code, but it seems it's not enough. Tell me if it works like that, and please report the console output next time so I can see what previse OpenGL version you have. I'm targeting 3.x to reach a wide audience, so you don't need to upgrade your drivers.

@veryevil: Thanks for the report, I'll study that further. It's a bit surprising, but I have an idea where to look at.

@Sleepwalker3: Thanks for giving me your time, especially if you don't plan to use it (but I'm sure once you see it working it'll win your heart :D). Can you try to create a file named grbv.conf in the tool directory, and write the following line in it?
Code: [Select]
translucent = false
Alternatively try the version I released this afternoon, which fixes this problem (ie. turn off translucency automatically when it's not available).

I'll look into how to display the version number, but note that to save time, instead of taking screenshots, when the error popup is displayed you can simply press Ctrl-C to copy the text into the clipboard and then paste it on the forum (this is a "hidden" Windows feature that works in many popup dialogs in various apps).

Re: 3D Gerber Viewer

Reply #28
Trying grbv-20130808T1529-64bits.zip with a display.conf added containing cast_shadows = false
Code: [Select]
C:UsersMatsDesktop>cd "Gerber Viewer"

C:UsersMatsDesktopGerber Viewer>grbv.com
OpenGL:
        vendor: Intel
        renderer: Intel(R) HD Graphics Family
        version: 3.1 (3.1.0 - Build 8.15.10.2462)
        GLSL: 1.4 (1.40  - Intel Build 8.15.10.2462)
grbv: C:UsersMatsDesktopGerber Viewerlua5.2nb.lua:149: ...ersMatsDesktopGerber Viewerlua5.2enginerender.lua:72: ...De
sktopGerber Viewerlua5.2enginedisplayshader.lua:72: GLSL compilation error:
        while compiling ./shaderssky.glsl:
        ERROR: 3:35: 'inverse' : no matching overloaded function found (using implicit conversion)
stack traceback:
        [C]: in function 'error'
        ...DesktopGerber Viewerlua5.2enginedisplayshader.lua:72: in function 'compile'
        ...DesktopGerber Viewerlua5.2enginedisplayshader.lua:179: in function 'load'
        ...DesktopGerber Viewerlua5.2enginedisplayshader.lua:227: in function 'new'
        ...rsMatsDesktopGerber Viewerlua5.2enginedisplay.lua:262: in main chunk
        [C]: in function 'xpcall'
        ...ersMatsDesktopGerber Viewerlua5.2enginerender.lua:67: in function 'display'
        ...ersMatsDesktopGerber Viewerlua5.2enginerender.lua:125: in function <...ersMatsDesktopGerber Viewerlua5.2engi
nerender.lua:100>
        (...tail calls...)
stack traceback:
        [C]: in function 'error'
        ...ersMatsDesktopGerber Viewerlua5.2enginerender.lua:72: in function 'display'
        ...ersMatsDesktopGerber Viewerlua5.2enginerender.lua:125: in function <...ersMatsDesktopGerber Viewerlua5.2engi
nerender.lua:100>
stack traceback:
        [C]: in function 'GetExitCodeThread'
        C:UsersMatsDesktopGerber Viewerlua5.2enginegui.lua:424: in function <C:UsersMatsDesktopGerber Viewerlua5.2eng
inegui.lua:422>
stack traceback:
        [C]: in function 'error'
        C:UsersMatsDesktopGerber Viewerlua5.2nb.lua:149: in function 'resume'
        C:UsersMatsDesktopGerber Viewerlua5.2nb.lua:244: in function 'run'
        C:UsersMatsDesktopGerber Viewergrbv.lua:670: in main chunk
        [C]: in ?

C:UsersMatsDesktopGerber Viewer>

Here's a report for my OpenGL
Code: [Select]

Renderer: Intel(R) HD Graphics Family
Vendor: Intel
Memory: 1812 MB
Version: 3.1.0 - Build 8.15.10.2462
Shading language version: 1.40  - Intel Build 8.15.10.2462


Max texture size: 8192 x 8192
Max vertex texture image units: 16
Max texture image units: 16
Max geometry texture units: 0
Max anisotropic filtering value: 16
Max viewport size: 8192 x 8192
Max Clip Distances: 6
Max samples: 4


Extensions: 116

GL_3DFX_texture_compression_FXT1
GL_ARB_color_buffer_float
GL_ARB_compatibility
GL_ARB_copy_buffer
GL_ARB_depth_buffer_float
GL_ARB_depth_clamp
GL_ARB_depth_texture
GL_ARB_draw_buffers
GL_ARB_draw_elements_base_vertex
GL_ARB_draw_instanced
GL_ARB_fragment_coord_conventions
GL_ARB_fragment_program
GL_ARB_fragment_program_shadow
GL_ARB_fragment_shader
GL_ARB_framebuffer_object
GL_ARB_framebuffer_sRGB
GL_ARB_half_float_pixel
GL_ARB_half_float_vertex
GL_ARB_map_buffer_range
GL_ARB_multisample
GL_ARB_multitexture
GL_ARB_occlusion_query
GL_ARB_pixel_buffer_object
GL_ARB_point_parameters
GL_ARB_point_sprite
GL_ARB_sampler_objects
GL_ARB_seamless_cube_map
GL_ARB_shader_objects
GL_ARB_shading_language_100
GL_ARB_shadow
GL_ARB_sync
GL_ARB_texture_border_clamp
GL_ARB_texture_compression
GL_ARB_texture_compression_rgtc
GL_ARB_texture_cube_map
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_non_power_of_two
GL_ARB_texture_rectangle
GL_ARB_texture_rg
GL_ARB_transpose_matrix
GL_ARB_uniform_buffer_object
GL_ARB_vertex_array_bgra
GL_ARB_vertex_array_object
GL_ARB_vertex_buffer_object
GL_ARB_vertex_program
GL_ARB_vertex_shader
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_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_gpu_program_parameters
GL_EXT_multi_draw_arrays
GL_EXT_packed_depth_stencil
GL_EXT_packed_float
GL_EXT_packed_pixels
GL_EXT_rescale_normal
GL_EXT_secondary_color
GL_EXT_separate_specular_color
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_shared_exponent
GL_EXT_texture_snorm
GL_EXT_texture_sRGB
GL_EXT_texture_swizzle
GL_EXT_transform_feedback
GL_IBM_texture_mirrored_repeat
GL_INTEL_performance_queries
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_WIN_swap_hint
WGL_ARB_buffer_region
WGL_ARB_create_context
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_depth_float
WGL_EXT_extensions_string
WGL_EXT_pixel_format_packed_float
WGL_EXT_swap_control

Core features
v3.0 (100 % - 23/23)
v3.1 (100 % - 8/8)
v3.2 (60 % - 6/10)
v3.3 (10 % - 1/10)
v4.0 (0 % - 0/14)
v4.1 (0 % - 0/7)
v4.2 (0 % - 0/12)
v4.3 (0 % - 0/18)

OpenGL driver version check (Current: 3.1.0 - Build 8.15.10.2462, Latest known: 8.15.10.2462):
Outdated version of display drivers detected
According the database, you are might be not using the latest version of display drivers for your video card.

No ICD registry entry
The current OpenGL driver doesn't expose the SOFTWARE/Microsoft/Windows (NT)/CurrentVersion/OpenGLDrivers registry entry. Unable to detect the driver version, driver revision name and filename.

Few texture units found
This may slow down some applications using fragment programs or extensive texture mapping.

Extension verification:
<truncated>



Re: 3D Gerber Viewer

Reply #29
@matseng: I just got a breakthrough in my understanding of the problem. Can you modify the line of display.lua that reads:
Code: [Select]
if glsl_version < 1.4 then
and replace the 1.4 with 1.5?