Problem with running samples

Hello,
I’ve installed the newest panda binary, but I have some problems running the samples.
Python simply crash with this message:

:display(error): Window wouldn’t open, abandoning window.
d
:display:wgldisplay(error): Could not share texture content between wglGraphicsStateGuardian

I’m on a AA1 with a Intel GM945 integrated card, so I knew I was going to have some problems, but the last panda3d version I used (1.5.x) ran the shadow example (one of the crashing samples). With many artifacts (I love violet shadows :laughing: ) but yet working.
Thanks in advance!

Did you install the latest drivers?

Otherwise try DirectX mode (not as well supported as OpenGL though), try editing this in C:\Panda3D-1.6.2\etc\Config.prc:

load-display pandagl

replace “pandagl” with “pandadx9” or “pandadx8”.
You can also use software rendering using “tinydisplay”.

@pro-soft: May I ask why you suggest switching to DirectX? While it may be a good idea for developers, it is not so nice for end-users IMO (not because of DirectX, because of manually switching).

The short answer is that graphics drivers suck.

Some graphics drivers work in OpenGL mode but not in DirectX mode; otherwise work well in DirectX but not in OpenGL. Some work in either, some work in neither.

Unfortunately, there’s not any real good solution to this problem other than to provide a mechanism for your end-user to select which graphics API to use. This is why so many commercial games offer this option to the user.

(If the graphics driver is so broken as to be unable to open a window in a certain API, then Panda can automatically fail over to the first API that successfully does open a window. But often the graphics driver is only partially broken, so that it does successfully open a window, but that other features like offscreen rendering don’t work properly. Panda can’t really auto-detect this situation.)

David

Related to the other post: At least Panda3D < 1.6.0 was able to render all examples and Panda3D 1.6.0+ is somewhat picky. No driver changed, nothing changed at all. I’m a bit puzzled why everything was running fine some time ago.

Are you sure that many commercial games offer this options? AFAIK most Windows games use only DirectX with the exception of all ID products. At least all games that I own (aren’t that many, so it’s a rather limited view) don’t offer an option to change the rendering API.

My personal preference is OpenGL as well, and with your addition of the callback mechanims, I was happy. Now this nicenesses are vanishing.

It’s true that if samples that used to work in previous version no longer work in 1.6.x on the same driver, then we must have introduced something recently that freaks out the driver in question. It’s important to me to track this down, but it can be really hard to do so, particularly if I don’t have the hardware and driver in question on my desk.

One of the things that can help is to isolate the problem. Changing the API is an important data point. For instance, did it stop working in OpenGL only, and does it still work in DirectX?

David

I assumed that I have the same problem like in discourse.panda3d.org/viewtopic.php?t=6088 and therefore it has only to do with 1.6.x.

See next post for results:

Also try running with “notify-level-display debug” and post the output in both versions.

With color-bits set to 0, simple samples are running with OpenGL (the shadow
example has no lighting and shadows, but besides this, it is running and the
geometry is visible). But here are the details:

Windows:

Color: 32 Bit
Resolution: 1600 x 1200
CPU: Intel Core 2
RAM: 2.13 GHz
GPU: ATI Radeon X1300

Source:

import direct.directbase.DirectStart
run()

Default Panda3D 1.6.2 Config.prc:

depth-bits 1
color-bits 1
alpha-bits 0
stencil-bits 0
multisamples 0
load-display pandadx8 # modified
notify-level-display debug # modified

Output:

DirectStart: Starting the game.
:display: loading display module: libpandadx8.dll
:display(debug): symbol of get_pipe_type_pandadx8 = 04141120
:display(debug): pipe_type_index = 638
:display(debug): pipe_type = wdxGraphicsPipe8
Known pipe types:
  wdxGraphicsPipe8
(all display modules loaded.)
:display:windisplay: begin QueryPerformanceFrequency
:display:windisplay: QueryPerformanceFrequency: 2128050000
:display:windisplay: CPU frequency: 2128050040
:display:windisplay: start CPU ID
:display:windisplay(debug): 1|a|756e6547|49656e69|6c65746e|6f2|20800|e3bd|bfebfb
ff|80000008|0|0|0|0|0|1|20100000|65746e49|2952286c|726f4320|4d542865|43203229|20
205550|20202020|20202020|30303436|20402020|33312e32|7a4847|0|0|8006040|0|3024|0|
0|0
CPUID
  vendor = GenuineIntel
  brand string Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz
  maximum_cpu_id_input = 10
  maximum extended information = 0x80000008
  MMX  = 1
  SSE  = 1
  SSE2 = 1
  SSE3 = 1
  EST  = 1
  version_information
    stepping_id 2
    model 15
    family 6
    processor_type 0
    extended_model_id 0
    extended_family_id 0
    brand_index 0
    clflush 8
    maximum_logical_processors 2
    initial_apic_id 0
  l1_data_cache_line_size 0
  l1_data_associativity 0
  l1_data_cache_size 0K
  l1_code_cache_line_size 0
  l1_code_associativity 0
  l1_code_cache_size 0K
  l2_cache_line_size 64
  l2_associativity 6
  l2_cache_size 2048K
:display:windisplay: end CPU ID
:display:windisplay: GetLogicalProcessorInformation is not supported.
:display:windisplay: OS version: 5.1.2.2600
:display:windisplay:   Service Pack 2
:display:windisplay: max Mhz 2128000000, current Mhz 2128000000
:display:wdxdisplay8: GetAvailableVidMem (including AGP) returns Total: 51815622
4, Free: 518135744 for device #0
:display:wdxdisplay8: GetAvailableVidMem (no AGP) returns Total: 260239360, Free
: 260218880 for device #0
:display:wdxdisplay8: SetLowVidMem flag to 0 based on adjusted VidMemTotal: 2684
35456
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): Creating new window window1
:display(debug): Created wdxGraphicsWindow8 00EDA22C
:display(debug): Windows resorted: window1(0)
 window1(0)
:display:wdxdisplay8: D3D8.1 Adapter[0]: Radeon X1300 Series , Driver: ati2dvag.
dll, DriverVersion: (6.14.10.6618)
VendorID: 0x00001002 DeviceID: 0x00007183 SubsysID: 0x0D021002 Revision: 0x00000
000
:display:wdxdisplay8(debug): _wcontext._window is 00000000
:display:windisplay(debug): ClearToBlack(0070081A, origin=(50, 50) size=(800, 60
0) title="Panda" !undecorated !fullscreen !minimized open !cursor_hidden absolut
e )
:display(debug): system_changed_properties(foreground !minimized )
:display:windisplay(debug): setfocus
:display:wdxdisplay8(debug): _wcontext._window is 0070081A
:display:wdxdisplay8(debug): device is null or fullscreen
:display:wdxdisplay8(debug): device width 800
:display:wdxdisplay8(debug): Display Width 800 and PresParam Width 0
:display:wdxdisplay8(debug): _d3d8 has refcnt = 1 at c:\p\p3d\panda3d-1.6.2\pand
a\src\dxgsg8\wdxGraphicsWindow8.cxx:551
attempting D3DFMT_X8R8G8B8
:display:wdxdisplay8: FindBestDepthFmt: bSelectOnly16bpp: 0
:display:wdxdisplay8: FindBestDepthFmt: ChkDevFmt returns NotAvail for D3DFMT_D3
2
:display:wdxdisplay8: FindBestDepthFmt returns fmt D3DFMT_D24X8
:display:wdxdisplay8(debug): _wcontext._d3d_device has refcnt = 1 at c:\p\p3d\pa
nda3d-1.6.2\panda\src\dxgsg8\wdxGraphicsWindow8.cxx:726
:display:windisplay(debug): ClearToBlack(0070081A, origin=(50, 50) size=(800, 60
0) title="Panda" !undecorated !fullscreen foreground !minimized open !cursor_hid
den absolute )
:display:gsg:dxgsg8(debug):
HwTransformAndLight = 1
MaxTextureWidth = 4096
MaxTextureHeight = 4096
MaxVolumeExtent = 1024
MaxTextureAspectRatio = 2048
TexCoordCount = 8
MaxTextureBlendStages = 8
MaxSimultaneousTextures = 8
MaxActiveLights = 8
MaxUserClipPlanes = 6
MaxVertexBlendMatrices = 4
MaxVertexBlendMatrixIndex = 37
MaxPointSize = 256
MaxPrimitiveCount = 5592405
MaxVertexIndex = 16777215
MaxStreams = 16
MaxStreamStride = 508
D3DTEXOPCAPS_MULTIPLYADD = 1
D3DTEXOPCAPS_LERP = 1
D3DPMISCCAPS_TSSARGTEMP = 1
VertexShaderVersion = 1.1
PixelShaderVersion = 1.4
MaxVertexShaderConst = 256
:display:gsg:dxgsg8(debug): Checking for stencil; mode = D3DFMT_D24X8
:display:gsg:dxgsg8(debug): Stencils NOT supported.
:display:gsg:dxgsg8(debug): Render to Texture Support = 1
:display:gsg:dxgsg8(debug): Compressed texture format DXT1 supported
:display:gsg:dxgsg8(debug): Compressed texture format DXT2 supported
:display:gsg:dxgsg8(debug): Compressed texture format DXT3 supported
:display:gsg:dxgsg8(debug): Compressed texture format DXT4 supported
:display:gsg:dxgsg8(debug): Compressed texture format DXT5 supported
:display:gsg:dxgsg8(debug): _d3d_device has refcnt = 1 at panda/src/dxgsg8/dxGra
phicsStateGuardian8.cxx:2066
:display(debug): Creating new device using pipe 00EDA154
:display:wdxdisplay8: walla: device00EDC3B4:2
:display:wdxdisplay8(debug): Created swap chain 0032BE9C
:display:wdxdisplay8(debug): swapchain is 0032BE9C
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display: Unable to set window properties: !undecorated

...

:display:wdxdisplay8(debug): wdxGraphicsWindow8::close_window() 00EDA22C
:display:wdxdisplay8(debug): Releasing swap chain 0032BE9C
:display(debug): system_changed_properties(!foreground !minimized )
:display:windisplay(debug): killfocus
:display: Closing wdxGraphicsWindow8
:display(debug): system_changed_properties(!open )
:display(debug): 00EDB46C close_gsg DXGraphicsStateGuardian8
:display(debug): Removed wdxGraphicsWindow8 00EDA22C

Config.prc:

depth-bits 1
color-bits 1
alpha-bits 0
stencil-bits 0
multisamples 0
load-display pandagl
notify-level-display debug # modified

Output:

DirectStart: Starting the game.
:display: loading display module: libpandagl.dll
:display(debug): symbol of get_pipe_type_pandagl = 04141120
:display(debug): pipe_type_index = 643
:display(debug): pipe_type = wglGraphicsPipe
Known pipe types:
  wglGraphicsPipe
(all display modules loaded.)
:display:windisplay: begin QueryPerformanceFrequency
:display:windisplay: QueryPerformanceFrequency: 2128050000
:display:windisplay: CPU frequency: 2128050000
:display:windisplay: start CPU ID
:display:windisplay(debug): 1|a|756e6547|49656e69|6c65746e|6f2|20800|e3bd|bfebfb
ff|80000008|0|0|0|0|0|1|20100000|65746e49|2952286c|726f4320|4d542865|43203229|20
205550|20202020|20202020|30303436|20402020|33312e32|7a4847|0|0|8006040|0|3024|0|
0|0
CPUID
  vendor = GenuineIntel
  brand string Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz
  maximum_cpu_id_input = 10
  maximum extended information = 0x80000008
  MMX  = 1
  SSE  = 1
  SSE2 = 1
  SSE3 = 1
  EST  = 1
  version_information
    stepping_id 2
    model 15
    family 6
    processor_type 0
    extended_model_id 0
    extended_family_id 0
    brand_index 0
    clflush 8
    maximum_logical_processors 2
    initial_apic_id 0
  l1_data_cache_line_size 0
  l1_data_associativity 0
  l1_data_cache_size 0K
  l1_code_cache_line_size 0
  l1_code_associativity 0
  l1_code_cache_size 0K
  l2_cache_line_size 64
  l2_associativity 6
  l2_cache_size 2048K
:display:windisplay: end CPU ID
:display:windisplay: GetLogicalProcessorInformation is not supported.
:display:windisplay: OS version: 5.1.2.2600
:display:windisplay:   Service Pack 2
:display:windisplay: max Mhz 2128000000, current Mhz 2128000000
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): Creating new window window1
:display(debug): Created wglGraphicsWindow 00EDA20C
:display(debug): Windows resorted: window1(0)
 window1(0)
:display:windisplay(debug): ClearToBlack(00350194, origin=(50, 50) size=(800, 60
0) title="Panda" !undecorated !fullscreen !minimized open !cursor_hidden absolut
e )
:display(debug): system_changed_properties(foreground !minimized )
:display:windisplay(debug): setfocus
:display:wgldisplay(debug): Preliminary pixfmt #5 = depth_bits=24 color_bits=32
alpha_bits=8 stencil_bits=8 back_buffers=1 force_hardware=1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_pixel_format 1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_multisample 1
:display:wgldisplay(debug): Found 46 advanced formats: [ 1 2 3 4 5 6 7 8 9 10 11
 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 31 32 33 34 37 38 39 40 43 44 45 4
6 49 50 51 52 55 56 57 58 ]
:display:wgldisplay(error): SetPixelFormat(57) failed after window create
:display:gsg:glgsg(debug): GLGraphicsStateGuardian 00EDAF94 destructing
:display(debug): 00EDAF94 close_gsg GLGraphicsStateGuardian
:display(debug): system_changed_properties(!foreground !minimized )
:display:windisplay(debug): killfocus
:display: Closing wglGraphicsWindow
:display(error): Window wouldn't open; abandoning window.
:display(debug): Removed wglGraphicsWindow 00EDA20C
:ShowBase(warning): Unable to open 'onscreen' window.
Traceback (most recent call last):
  File "x.py", line 2, in <module>
    import direct.directbase.DirectStart
  File "C:\Panda3D-1.6.2\direct\directbase\DirectStart.py", line 4, in <module>
    ShowBase.ShowBase()
  File "C:\Panda3D-1.6.2\direct\showbase\ShowBase.py", line 229, in __init__
    self.openDefaultWindow(startDirect = False, props=props)
  File "C:\Panda3D-1.6.2\direct\showbase\ShowBase.py", line 726, in openDefaultW
indow
    raise StandardError, 'Could not open window.'
StandardError: Could not open window.

Config.prc:

depth-bits 1
color-bits 0 # modified
alpha-bits 0
stencil-bits 0
multisamples 0
load-display pandagl
notify-level-display debug # modified

Output:

DirectStart: Starting the game.
:display: loading display module: libpandagl.dll
:display(debug): symbol of get_pipe_type_pandagl = 04141120
:display(debug): pipe_type_index = 643
:display(debug): pipe_type = wglGraphicsPipe
Known pipe types:
  wglGraphicsPipe
(all display modules loaded.)
:display:windisplay: begin QueryPerformanceFrequency
:display:windisplay: QueryPerformanceFrequency: 2128050000
:display:windisplay: CPU frequency: 2128050144
:display:windisplay: start CPU ID
:display:windisplay(debug): 1|a|756e6547|49656e69|6c65746e|6f2|20800|e3bd|bfebfb
ff|80000008|0|0|0|0|0|1|20100000|65746e49|2952286c|726f4320|4d542865|43203229|20
205550|20202020|20202020|30303436|20402020|33312e32|7a4847|0|0|8006040|0|3024|0|
0|0
CPUID
  vendor = GenuineIntel
  brand string Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz
  maximum_cpu_id_input = 10
  maximum extended information = 0x80000008
  MMX  = 1
  SSE  = 1
  SSE2 = 1
  SSE3 = 1
  EST  = 1
  version_information
    stepping_id 2
    model 15
    family 6
    processor_type 0
    extended_model_id 0
    extended_family_id 0
    brand_index 0
    clflush 8
    maximum_logical_processors 2
    initial_apic_id 0
  l1_data_cache_line_size 0
  l1_data_associativity 0
  l1_data_cache_size 0K
  l1_code_cache_line_size 0
  l1_code_associativity 0
  l1_code_cache_size 0K
  l2_cache_line_size 64
  l2_associativity 6
  l2_cache_size 2048K
:display:windisplay: end CPU ID
:display:windisplay: GetLogicalProcessorInformation is not supported.
:display:windisplay: OS version: 5.1.2.2600
:display:windisplay:   Service Pack 2
:display:windisplay: max Mhz 2128000000, current Mhz 2128000000
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): Creating new window window1
:display(debug): Created wglGraphicsWindow 00EDA20C
:display(debug): Windows resorted: window1(0)
 window1(0)
:display:windisplay(debug): ClearToBlack(003A0194, origin=(50, 50) size=(800, 60
0) title="Panda" !undecorated !fullscreen !minimized open !cursor_hidden absolut
e )
:display(debug): system_changed_properties(foreground !minimized )
:display:windisplay(debug): setfocus
:display:wgldisplay(debug): Preliminary pixfmt #5 = depth_bits=24 color_bits=32
alpha_bits=8 stencil_bits=8 back_buffers=1 force_hardware=1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_pixel_format 1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_multisample 1
:display:wgldisplay(debug): Found 46 advanced formats: [ 1 2 3 4 5 6 7 8 9 10 11
 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 31 32 33 34 37 38 39 40 43 44 45 4
6 49 50 51 52 55 56 57 58 ]
:display:gsg:glgsg(debug): GL_VENDOR = ATI Technologies Inc.
:display:gsg:glgsg(debug): GL_RENDERER = Radeon X1300 Series x86/SSE2
:display:gsg:glgsg(debug): GL_VERSION = 2.0.5883 WinXP Release
:display:gsg:glgsg(debug): GL_VERSION = 2.0.5883 WinXP Release, decoded to 2.0.5
883
:display:gsg:glgsg(debug): GL Extensions:
:display:gsg:glgsg(debug): GL_ARB_depth_texture
:display:gsg:glgsg(debug): GL_ARB_draw_buffers
:display:gsg:glgsg(debug): GL_ARB_fragment_program
:display:gsg:glgsg(debug): GL_ARB_fragment_program_shadow
:display:gsg:glgsg(debug): GL_ARB_fragment_shader
:display:gsg:glgsg(debug): GL_ARB_multisample
:display:gsg:glgsg(debug): GL_ARB_multitexture
:display:gsg:glgsg(debug): GL_ARB_occlusion_query
:display:gsg:glgsg(debug): GL_ARB_point_parameters
:display:gsg:glgsg(debug): GL_ARB_point_sprite
:display:gsg:glgsg(debug): GL_ARB_shader_objects
:display:gsg:glgsg(debug): GL_ARB_shading_language_100
:display:gsg:glgsg(debug): GL_ARB_shadow
:display:gsg:glgsg(debug): GL_ARB_shadow_ambient
:display:gsg:glgsg(debug): GL_ARB_texture_border_clamp
:display:gsg:glgsg(debug): GL_ARB_texture_compression
:display:gsg:glgsg(debug): GL_ARB_texture_cube_map
:display:gsg:glgsg(debug): GL_ARB_texture_env_add
:display:gsg:glgsg(debug): GL_ARB_texture_env_combine
:display:gsg:glgsg(debug): GL_ARB_texture_env_crossbar
:display:gsg:glgsg(debug): GL_ARB_texture_env_dot3
:display:gsg:glgsg(debug): GL_ARB_texture_mirrored_repeat
:display:gsg:glgsg(debug): GL_ARB_transpose_matrix
:display:gsg:glgsg(debug): GL_ARB_vertex_blend
:display:gsg:glgsg(debug): GL_ARB_vertex_buffer_object
:display:gsg:glgsg(debug): GL_ARB_vertex_program
:display:gsg:glgsg(debug): GL_ARB_vertex_shader
:display:gsg:glgsg(debug): GL_ARB_window_pos
:display:gsg:glgsg(debug): GL_ATIX_texture_env_combine3
:display:gsg:glgsg(debug): GL_ATIX_texture_env_route
:display:gsg:glgsg(debug): GL_ATIX_vertex_shader_output_point_size
:display:gsg:glgsg(debug): GL_ATI_draw_buffers
:display:gsg:glgsg(debug): GL_ATI_element_array
:display:gsg:glgsg(debug): GL_ATI_envmap_bumpmap
:display:gsg:glgsg(debug): GL_ATI_fragment_shader
:display:gsg:glgsg(debug): GL_ATI_map_object_buffer
:display:gsg:glgsg(debug): GL_ATI_separate_stencil
:display:gsg:glgsg(debug): GL_ATI_shader_texture_lod
:display:gsg:glgsg(debug): GL_ATI_texture_compression_3dc
:display:gsg:glgsg(debug): GL_ATI_texture_env_combine3
:display:gsg:glgsg(debug): GL_ATI_texture_float
:display:gsg:glgsg(debug): GL_ATI_texture_mirror_once
:display:gsg:glgsg(debug): GL_ATI_vertex_array_object
:display:gsg:glgsg(debug): GL_ATI_vertex_attrib_array_object
:display:gsg:glgsg(debug): GL_ATI_vertex_streams
:display:gsg:glgsg(debug): GL_EXT_abgr
:display:gsg:glgsg(debug): GL_EXT_bgra
:display:gsg:glgsg(debug): GL_EXT_blend_color
:display:gsg:glgsg(debug): GL_EXT_blend_func_separate
:display:gsg:glgsg(debug): GL_EXT_blend_minmax
:display:gsg:glgsg(debug): GL_EXT_blend_subtract
:display:gsg:glgsg(debug): GL_EXT_clip_volume_hint
:display:gsg:glgsg(debug): GL_EXT_compiled_vertex_array
:display:gsg:glgsg(debug): GL_EXT_draw_range_elements
:display:gsg:glgsg(debug): GL_EXT_fog_coord
:display:gsg:glgsg(debug): GL_EXT_framebuffer_object
:display:gsg:glgsg(debug): GL_EXT_multi_draw_arrays
:display:gsg:glgsg(debug): GL_EXT_packed_pixels
:display:gsg:glgsg(debug): GL_EXT_point_parameters
:display:gsg:glgsg(debug): GL_EXT_rescale_normal
:display:gsg:glgsg(debug): GL_EXT_secondary_color
:display:gsg:glgsg(debug): GL_EXT_separate_specular_color
:display:gsg:glgsg(debug): GL_EXT_shadow_funcs
:display:gsg:glgsg(debug): GL_EXT_stencil_wrap
:display:gsg:glgsg(debug): GL_EXT_texgen_reflection
:display:gsg:glgsg(debug): GL_EXT_texture3D
:display:gsg:glgsg(debug): GL_EXT_texture_compression_s3tc
:display:gsg:glgsg(debug): GL_EXT_texture_cube_map
:display:gsg:glgsg(debug): GL_EXT_texture_edge_clamp
:display:gsg:glgsg(debug): GL_EXT_texture_env_add
:display:gsg:glgsg(debug): GL_EXT_texture_env_combine
:display:gsg:glgsg(debug): GL_EXT_texture_env_dot3
:display:gsg:glgsg(debug): GL_EXT_texture_filter_anisotropic
:display:gsg:glgsg(debug): GL_EXT_texture_lod_bias
:display:gsg:glgsg(debug): GL_EXT_texture_mirror_clamp
:display:gsg:glgsg(debug): GL_EXT_texture_object
:display:gsg:glgsg(debug): GL_EXT_texture_rectangle
:display:gsg:glgsg(debug): GL_EXT_vertex_array
:display:gsg:glgsg(debug): GL_EXT_vertex_shader
:display:gsg:glgsg(debug): GL_HP_occlusion_test
:display:gsg:glgsg(debug): GL_NV_blend_square
:display:gsg:glgsg(debug): GL_NV_occlusion_query
:display:gsg:glgsg(debug): GL_NV_texgen_reflection
:display:gsg:glgsg(debug): GL_S3_s3tc
:display:gsg:glgsg(debug): GL_SGIS_generate_mipmap
:display:gsg:glgsg(debug): GL_SGIS_multitexture
:display:gsg:glgsg(debug): GL_SGIS_texture_border_clamp
:display:gsg:glgsg(debug): GL_SGIS_texture_edge_clamp
:display:gsg:glgsg(debug): GL_SGIS_texture_lod
:display:gsg:glgsg(debug): GL_SGI_color_matrix
:display:gsg:glgsg(debug): GL_SUN_multi_draw_arrays
:display:gsg:glgsg(debug): GL_WIN_swap_hint
:display:gsg:glgsg(debug): WGL_ARB_extensions_string
:display:gsg:glgsg(debug): WGL_ARB_make_current_read
:display:gsg:glgsg(debug): WGL_ARB_multisample
:display:gsg:glgsg(debug): WGL_ARB_pbuffer
:display:gsg:glgsg(debug): WGL_ARB_pixel_format
:display:gsg:glgsg(debug): WGL_ARB_render_texture
:display:gsg:glgsg(debug): WGL_ATI_pixel_format_float
:display:gsg:glgsg(debug): WGL_ATI_render_texture_rectangle
:display:gsg:glgsg(debug): WGL_EXT_extensions_string
:display:gsg:glgsg(debug): WGL_EXT_swap_control
:display:gsg:glgsg(debug): Getting run-time PointParameter pointers
:display:gsg:glgsg(debug): HAS EXT GL_ARB_point_sprite 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_vertex_blend 1
:display:gsg:glgsg(debug): max vertex transforms = 4
:display:gsg:glgsg(debug): HAS EXT GL_ARB_matrix_palette 0
:display:gsg:glgsg(debug): Getting run-time DrawRangeElements pointers
:display:gsg:glgsg(debug): HAS EXT GL_ARB_depth_texture 1
:display:gsg:glgsg(debug): HAS EXT GL_EXT_packed_depth_stencil 0
:display:gsg:glgsg(debug): Getting run-time 3-D textures pointers
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_cube_map 1
:display:gsg:glgsg(debug): Getting run-time compressed textures pointers
:display:gsg:glgsg(debug): HAS EXT GL_EXT_bgra 1
:display:gsg:glgsg(debug): HAS EXT GL_EXT_rescale_normal 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_multisample 1
:display:gsg:glgsg(debug): HAS EXT GL_SGIS_generate_mipmap 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_non_power_of_two 0
:display:gsg:glgsg(debug): Getting run-time multitexture pointers
:display:gsg:glgsg(debug): HAS EXT GL_ARB_depth_texture 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_shadow 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_fragment_program_shadow 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_env_combine 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_env_crossbar 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_env_dot3 1
:display:gsg:glgsg(debug): Getting run-time buffer pointers
:display:gsg:glgsg(debug): HAS EXT GL_ATI_draw_buffers 1
:display:gsg:glgsg(debug): HAS EXT GL_EXT_framebuffer_object 1
:display:gsg:glgsg(debug): Getting run-time occlusion pointers
:display:gsg:glgsg(debug): Occlusion query counter provides 32 bits.
:display:gsg:glgsg(debug): Getting run-time blend pointers
:display:gsg:glgsg(debug): Getting run-time BlendColor pointers
:display:gsg:glgsg(debug): HAS EXT GL_SGIS_texture_edge_clamp 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_border_clamp 1
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_mirrored_repeat 1
:display:gsg:glgsg(debug): HAS EXT GL_EXT_texture_mirror_clamp 1
:display:gsg:glgsg(debug): max texture dimension = 4096, max 3d texture = 4096,
max cube map = 4096
:display:gsg:glgsg(debug): max_elements_vertices = 2147483647, max_elements_indi
ces = 65535
:display:gsg:glgsg(debug): vertex buffer objects are supported.
:display:gsg:glgsg(debug): Supported compressed texture formats:
  GL_COMPRESSED_RGB_S3TC_DXT1_EXT
  GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
  GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
  GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
  Unknown compressed format 0x8837
:display:gsg:glgsg(debug): HAS EXT GL_EXT_texture_filter_anisotropic 1
:display:gsg:glgsg(debug): HAS EXT GL_EXT_stencil_wrap 1
:display:gsg:glgsg(debug): HAS EXT GL_EXT_stencil_two_side 0
:display:gsg:glgsg(debug): max lights = 8
:display:gsg:glgsg(debug): max clip planes = 6
:display:gsg:glgsg(debug): max texture stages = 8
:display:gsg:glgsg(debug):
Cg vertex profile = arbvp1  id = 6150
Cg pixel profile = arbfp1  id = 7000
shader model = 4
:display:gsg:glgsg(debug): HAS EXT WGL_EXT_swap_control 1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_pbuffer 1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_pixel_format 1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_multisample 1
:display:gsg:glgsg(debug): HAS EXT WGL_ARB_render_texture 1
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display: Unable to set window properties: !undecorated

...

:display(debug): system_changed_properties(!foreground !minimized )
:display:windisplay(debug): killfocus
:display: Closing wglGraphicsWindow
:display(debug): system_changed_properties(!open )
:display(debug): 00EDAF94 close_gsg wglGraphicsStateGuardian
:display:gsg:glgsg(debug): GLGraphicsStateGuardian 00EDAF94 destructing
:display(debug): 00EDAF94 close_gsg GLGraphicsStateGuardian
:display(debug): Removed wglGraphicsWindow 00EDA20C

Ah, I think I have a theory.
There could be a bug in the code that chooses advanced pixel formats, or a bug in pixel format #57. I think the code that determines the best quality FramebufferProperties changed in 1.6.0 right? That could explain why it worked before, it simply chose a different pixel format then.

Can you try putting something like this in Config.prc?

gl-force-pixfmt 5

That will force it to use pixel format #5 - which looks good enough. Also change the Config.prc settings back, then try running. (with pandagl).

You could also carefully try other, advanced configs (if they provide enough bits to satisfy the needs set in Config.prc), maybe try <56, 58 or so.)

Config.prc default, only with the line “gl-force-pixfmt 5” seems to work. Simple examples, up to the normal mapping sample works. The shadow sample has no shadows, but besides that, everything is fine.

Tried from 39 up to 55, and none of this works.

Interesting. So pro-rsoft’s guess appears to be correct: your driver, for some reason, offers this set of advanced framebuffer formats, none of which actually work. When we added code to Panda to look through the list of advanced framebuffer formats in addition to the first-tier ones, it stopped working for your driver.

I guess the right workaround will be to automatically fall back to the “preliminary” framebuffer format, if the advanced one doesn’t work. I’ll see about putting that code in.

David