depth texture (shadows) problems for x600 on both winows and linux
running the Tut-Shadow-Mapping gives me
“Shadow Demo: Video driver cannot create an offscreen buffer.”
i have put outputs in the source and compiled. This is what happen it gets to the 10 try loop “for (int retry=0; retry<10; retry++) {” in graphicsEngine.cxx it passes it on the first time and takes 2nd return statement. It fails the first one " if ((precertify) && (gsg != 0) && (window->get_gsg()==gsg)) {"
but “do_add_window(window, threading_model); open_windows();” the “window->is_valid()” and i get the value of the window being some thing like (0x85368f8:6) - just a pointer an a “is_valid()” one at that. But when it gets to python it is None. I think the window is created correctly but not outputted properly to python. i did “print LBuffer,type(LBuffer)” > “None <type ‘NoneType’>” its a true none not just some thing that just == None because id(LBuffer) == id(None) so its the same memory address.
If i try to create more windows after in the same manner i get the " Sanity check everything failed" then the 10 tries and “Could not create a window to the user’s specs.” and clearly returns Null unlike the 1st time. But the result is always the same : None.
Here is my log:
Known pipe types:
glxGraphicsPipe
(all display modules loaded.)
:display(debug): enterd GraphicsEngine::make_output .
:display(debug): If a gsg or host was supplied, and either is not yet initialized: .
:display(debug): Ask the pipe to create a window. (10 tries) .
: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 glxGraphicsWindow 0x85368f0
:display(debug): Windows resorted: window1(0)
window1(0)
:pgraph(spam): Comparing 0 to 1 result = -1
:pgraph(spam): Comparing 0 to 1 result = -1
:display:gsg:glgsg(debug): GL_VENDOR = ATI Technologies Inc.
:display:gsg:glgsg(debug): GL_RENDERER = MOBILITY RADEON X600 SE
:display:gsg:glgsg(debug): GL_VERSION = 2.0.6334 (8.34.8), decoded to 2.0.6334
:display:gsg:glgsg(debug): GLX_VENDOR (client) = ATI
:display:gsg:glgsg(debug): GLX_VERSION (client) = 1.3
:display:gsg:glgsg(debug): GLX_VENDOR (server) = SGI
:display:gsg:glgsg(debug): GLX_VERSION (server) = 1.2
:display:gsg:glgsg(debug): GLX_VERSION = 1.2
:display:gsg:glgsg(debug): GL Extensions:
:display:gsg:glgsg(debug): GLX_ARB_get_proc_address
:display:gsg:glgsg(debug): GLX_ARB_multisample
:display:gsg:glgsg(debug): GLX_EXT_import_context
:display:gsg:glgsg(debug): GLX_EXT_visual_info
:display:gsg:glgsg(debug): GLX_EXT_visual_rating
: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_pixel_buffer_object
: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_float
:display:gsg:glgsg(debug): GL_ARB_texture_mirrored_repeat
:display:gsg:glgsg(debug): GL_ARB_texture_rectangle
: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_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_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): HAS EXT GLX_ARB_get_proc_address 1
: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): HAS EXT GL_ARB_depth_texture 1
:display:gsg:glgsg(debug): HAS EXT GL_EXT_packed_depth_stencil 0
:display:gsg:glgsg(debug): HAS EXT GL_ARB_texture_cube_map 1
: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): 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): HAS EXT GL_ATI_draw_buffers 1
:display:gsg:glgsg(debug): HAS EXT GL_EXT_framebuffer_object 1
:display:gsg:glgsg(debug): Occlusion query counter provides 32 bits.
: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 = 2048, max 3d texture = 2048, max cube map = 2048
:display:gsg:glgsg(debug): max_elements_vertices = 2147483647, max_elements_indices = 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
: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 = 2
:display:gsg:glgsg(debug): HAS EXT GLX_SGI_swap_control 0
:display:glxdisplay(debug): Raw mice not requested.
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(spam): begin_frame(refresh): glxGraphicsWindow window1 0x85368f0
:display(spam): end_frame(refresh): glxGraphicsWindow window1 0x85368f0
:display(debug): system_changed_properties(size=(800, 600) )
:display(debug): system_changed_size(800, 600)
:display(debug): system_changed_properties(size=(800, 600) )
:display(debug): system_changed_size(800, 600)
:display(debug): system_changed_properties(!minimized )
:display(debug): system_changed_properties(foreground )
:event(debug): Throwing event window-event
:display(spam): begin_frame(refresh): glxGraphicsWindow window1 0x85368f0
:display(spam): end_frame(refresh): glxGraphicsWindow window1 0x85368f0
:display(debug): window type 2. (0x85368f0:6)
:pgraph(debug): Constructing 0x8890260, camera
:pgraph(debug): Constructing 0x8890340, cam
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:pgraph(debug): Constructing 0x8890ef8, keyboard/mouse
:pgraph(debug): Constructing 0x8891138, keyboard/mouse
:pgraph(debug): Constructing 0x88918f8, keyboard/mouse
:pgraph(debug): Constructing 0x8891bb0, trackball
:pgraph(debug): Constructing 0x8891e48, drive
:pgraph(debug): Constructing 0x8892410, mouse2cam
:pgraph(debug): Constructing 0x88925c8, timeButtons
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:pgraph(debug): Constructing 0x8892c28, cam2d
:pgraph(debug): Constructing 0x8892d90, camera2d
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:display(debug): DisplayRegion::do_compute_pixels(800, 600)
:pgraph(debug): Constructing 0x8893470, cam2d
:pgraph(debug): Constructing 0x88935d8, camera2dp
:display: Unable to set window properties: !undecorated
:display(spam): begin_frame(refresh): glxGraphicsWindow window1 0x85368f0
:display(spam): end_frame(refresh): glxGraphicsWindow window1 0x85368f0
:display(spam): begin_frame(refresh): glxGraphicsWindow window1 0x85368f0
:display(spam): end_frame(refresh): glxGraphicsWindow window1 0x85368f0
:audio(debug): create_AudioManager()
audio_library_name="p3fmod_audio"
:audio(debug): dl_name="libp3fmod_audio.so"
:audio(error): _system->init(): Error initializing output device.
:audio(debug): create_NullAudioManger()
:audio: NullAudioManager
:audio(debug): create_AudioManager()
audio_library_name="p3fmod_audio"
:audio(error): _system->init(): Error initializing output device.
:audio(debug): create_NullAudioManger()
:audio: NullAudioManager
:util(warning): Adjusting global clock's real time by 1.40461 seconds.
:pgraph(spam): find_matches pass: 0 NodePaths, 1, 7000
(dataRoot):(match_many),0
:pgraph(spam): find_matches pass: 0 NodePaths, 1, 6999
(dataRoot/keyboard/mouse):(match_many),0
(dataRoot/keyboard/mouse): solution!
:display(debug): enterd GraphicsEngine::make_output .
:display(debug): Sanity check everything faild
:display(debug): Ask the pipe to create a window. (10 tries) .
:display(debug): Ask the pipe to create a window. (10 tries) .
:display(debug): Ask the pipe to create a window. (10 tries) .
:display(debug): Ask the pipe to create a window. (10 tries) .
:display(debug): Ask the pipe to create a window. (10 tries) .
:display(debug): Ask the pipe to create a window. (10 tries) .
:display(debug): Ask the pipe to create a window. (10 tries) .
:display(debug): Ask the pipe to create a window. (10 tries) .
:display(debug): Ask the pipe to create a window. (10 tries) .
:display(debug): Ask the pipe to create a window. (10 tries) .
:display(debug): Could not create a window to the user's specs. .