google-code-export / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

PyGlet 1.1 Sprite.draw() and batch.draw() not working #247

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Any of the examples from
http://www.pyglet.org/doc/1.1/api/pyglet.sprite-module.html will not work.
Alternatively both the "noisy" and "astraea" examples do not work.

Paste in the traceback or error message:
n/a

Paste in the output of tools/gl_info.py:

Platform instance is <pyglet.window.xlib.XlibPlatform object at 0xb771a0ec>
Display instance is <pyglet.window.xlib.XlibDisplayDevice object at 0xb771a08c>
Screens:
  XlibScreen(screen=0, x=0, y=0, width=1024, height=768, xinerama=1)
Creating default context...
GL attributes:
double_buffer=1 stereo=0 buffer_size=32 aux_buffers=0 sample_buffers=0
samples=0 red_size=8 green_size=8 blue_size=8 alpha_size=8
depth_size=24 stencil_size=8 accum_red_size=0 accum_green_size=0
accum_blue_size=0 accum_alpha_size=0
GL version: 1.3 Mesa 7.0.3
GL vendor: Tungsten Graphics, Inc
GL renderer: Mesa DRI Intel(R) 845G 20061017 x86/MMX/SSE2
GL extensions:
  GL_ARB_texture_compression GL_EXT_cull_vertex GL_IBM_rasterpos_clip
  GL_EXT_clip_volume_hint GL_MESA_window_pos GL_OES_read_format
  GL_EXT_blend_color GL_EXT_blend_subtract GL_EXT_subtexture
  GL_NV_texgen_reflection GL_EXT_stencil_wrap GL_EXT_texture_edge_clamp
  GL_EXT_texture_rectangle GL_IBM_texture_mirrored_repeat
  GL_ARB_window_pos GL_APPLE_packed_pixels GL_EXT_compiled_vertex_array
  GL_EXT_texture_object GL_ARB_texture_mirrored_repeat
  GL_ARB_vertex_program GL_EXT_histogram GL_ARB_texture_env_dot3
  GL_3DFX_texture_compression_FXT1 GL_EXT_bgra
  GL_SGIS_texture_edge_clamp GL_EXT_copy_texture
  GL_ARB_texture_env_combine GL_NV_vertex_program1_1
  GL_ARB_vertex_buffer_object GL_EXT_rescale_normal
  GL_SGIS_texture_border_clamp GL_ARB_imaging GL_EXT_point_parameters
  GL_SUN_multi_draw_arrays GL_EXT_convolution GL_APPLE_client_storage
  GL_INGR_blend_func_separate GL_EXT_separate_specular_color
  GL_NV_vertex_program GL_EXT_texture_env_add GL_EXT_texture3D
  GL_EXT_packed_pixels GL_ARB_multitexture GL_NV_blend_square
  GL_EXT_secondary_color GL_EXT_blend_func_separate GL_EXT_texture
  GL_EXT_texture_env_combine GL_ARB_texture_env_crossbar
  GL_ARB_texture_rectangle GL_EXT_texture_lod_bias GL_EXT_vertex_array
  GL_MESA_pack_invert GL_NV_texture_rectangle GL_SGI_color_table
  GL_ARB_transpose_matrix GL_EXT_abgr GL_MESA_ycbcr_texture
  GL_EXT_multi_draw_arrays GL_ARB_texture_env_add GL_ARB_multisample
  GL_SGIS_generate_mipmap GL_ARB_texture_border_clamp GL_EXT_fog_coord
  GL_EXT_polygon_offset GL_EXT_texture_filter_anisotropic
  GL_NV_light_max_exponent GL_EXT_blend_minmax GL_ARB_texture_cube_map
  GL_SGI_color_matrix GL_EXT_blend_equation_separate GL_SGIS_texture_lod
  GL_EXT_draw_range_elements GL_ATI_blend_equation_separate
  GL_ARB_point_parameters GL_EXT_texture_env_dot3
GLU version: 1.3
GLU extensions:
  GLU_EXT_nurbs_tessellator GLU_EXT_object_space_tess

Context is XlibGLContext()
GLX is direct
GLX server vendor: SGI
GLX server version: 1.2
GLX server extensions:
  GLX_ARB_multisample GLX_EXT_import_context GLX_EXT_texture_from_pixmap
  GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_copy_sub_buffer
  GLX_OML_swap_method GLX_SGI_make_current_read GLX_SGI_swap_control
  GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_visual_select_group
GLX client vendor: SGI
GLX client version: 1.4
GLX client extensions:
  GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_import_context
  GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_allocate_memory
  GLX_MESA_copy_sub_buffer GLX_MESA_swap_control
  GLX_MESA_swap_frame_usage GLX_OML_swap_method GLX_OML_sync_control
  GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGI_video_sync
  GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer
  GLX_SGIX_visual_select_group GLX_EXT_texture_from_pixmap
GLX extensions:
  GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_import_context
  GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_allocate_memory
  GLX_MESA_copy_sub_buffer GLX_MESA_swap_control
  GLX_MESA_swap_frame_usage GLX_OML_swap_method
  GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGI_video_sync
  GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_visual_select_group

python -m pyglet.info:

Python
------------------------------------------------------------------------------
sys.version: 2.5.2a0 (r251:54863, Feb 10 2008, 01:31:28) 
[GCC 4.2.3 (Debian 4.2.3-1)]
sys.platform: linux2
os.getcwd(): /home/selsine/python/pyglet/pyglet/tools

pyglet
------------------------------------------------------------------------------
pyglet.version: 1.1alpha1
pyglet.__file__: /usr/lib/python2.5/site-packages/pyglet/__init__.pyc
pyglet.options['audio'] = ('directsound', 'openal', 'alsa', 'silent')
pyglet.options['xsync'] = True
pyglet.options['shadow_window'] = True
pyglet.options['debug_win32'] = False
pyglet.options['debug_x11'] = False
pyglet.options['debug_font'] = False
pyglet.options['debug_media'] = False
pyglet.options['debug_graphics_enable_vbo'] = True
pyglet.options['debug_lib'] = False
pyglet.options['vsync'] = None
pyglet.options['debug_gl'] = True
pyglet.options['debug_graphics_batch'] = False
pyglet.options['font'] = ('gdiplus', 'win32')

pyglet.window
------------------------------------------------------------------------------
platform: <pyglet.window.xlib.XlibPlatform object at 0x83fe98c>
display: <pyglet.window.xlib.XlibDisplayDevice object at 0x83f3a8c>
screens[0]: XlibScreen(screen=0, x=0, y=0, width=1024, height=768, xinerama=1)
config['double_buffer'] = 1
config['stereo'] = 0
config['buffer_size'] = 32
config['aux_buffers'] = 0
config['sample_buffers'] = 0
config['samples'] = 0
config['red_size'] = 8
config['green_size'] = 8
config['blue_size'] = 8
config['alpha_size'] = 8
config['depth_size'] = 24
config['stencil_size'] = 8
config['accum_red_size'] = 0
config['accum_green_size'] = 0
config['accum_blue_size'] = 0
config['accum_alpha_size'] = 0
context: XlibGLContext()

pyglet.gl.gl_info
------------------------------------------------------------------------------
gl_info.get_version(): 1.3 Mesa 7.0.3
gl_info.get_vendor(): Tungsten Graphics, Inc
gl_info.get_renderer(): Mesa DRI Intel(R) 845G 20061017 x86/MMX/SSE2
gl_info.get_extensions():
   GL_3DFX_texture_compression_FXT1
   GL_APPLE_client_storage
   GL_APPLE_packed_pixels
   GL_ARB_imaging
   GL_ARB_multisample
   GL_ARB_multitexture
   GL_ARB_point_parameters
   GL_ARB_texture_border_clamp
   GL_ARB_texture_compression
   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_mirrored_repeat
   GL_ARB_texture_rectangle
   GL_ARB_transpose_matrix
   GL_ARB_vertex_buffer_object
   GL_ARB_vertex_program
   GL_ARB_window_pos
   GL_ATI_blend_equation_separate
   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_convolution
   GL_EXT_copy_texture
   GL_EXT_cull_vertex
   GL_EXT_draw_range_elements
   GL_EXT_fog_coord
   GL_EXT_histogram
   GL_EXT_multi_draw_arrays
   GL_EXT_packed_pixels
   GL_EXT_point_parameters
   GL_EXT_polygon_offset
   GL_EXT_rescale_normal
   GL_EXT_secondary_color
   GL_EXT_separate_specular_color
   GL_EXT_stencil_wrap
   GL_EXT_subtexture
   GL_EXT_texture
   GL_EXT_texture3D
   GL_EXT_texture_edge_clamp
   GL_EXT_texture_env_add
   GL_EXT_texture_env_combine
   GL_EXT_texture_env_dot3
   GL_EXT_texture_filter_anisotropic
   GL_EXT_texture_lod_bias
   GL_EXT_texture_object
   GL_EXT_texture_rectangle
   GL_EXT_vertex_array
   GL_IBM_rasterpos_clip
   GL_IBM_texture_mirrored_repeat
   GL_INGR_blend_func_separate
   GL_MESA_pack_invert
   GL_MESA_window_pos
   GL_MESA_ycbcr_texture
   GL_NV_blend_square
   GL_NV_light_max_exponent
   GL_NV_texgen_reflection
   GL_NV_texture_rectangle
   GL_NV_vertex_program
   GL_NV_vertex_program1_1
   GL_OES_read_format
   GL_SGIS_generate_mipmap
   GL_SGIS_texture_border_clamp
   GL_SGIS_texture_edge_clamp
   GL_SGIS_texture_lod
   GL_SGI_color_matrix
   GL_SGI_color_table
   GL_SUN_multi_draw_arrays

pyglet.gl.glu_info
------------------------------------------------------------------------------
glu_info.get_version(): 1.3
glu_info.get_extensions():
   GLU_EXT_nurbs_tessellator
   GLU_EXT_object_space_tess

pyglet.gl.glx_info
------------------------------------------------------------------------------
context.is_direct(): 1
glx_info.get_server_vendor(): SGI
glx_info.get_server_version(): 1.2
glx_info.get_server_extensions():
   GLX_ARB_multisample
   GLX_EXT_import_context
   GLX_EXT_texture_from_pixmap
   GLX_EXT_visual_info
   GLX_EXT_visual_rating
   GLX_MESA_copy_sub_buffer
   GLX_OML_swap_method
   GLX_SGI_make_current_read
   GLX_SGI_swap_control
   GLX_SGIS_multisample
   GLX_SGIX_fbconfig
   GLX_SGIX_visual_select_group
glx_info.get_client_vendor(): SGI
glx_info.get_client_version(): 1.4
glx_info.get_client_extensions():
   GLX_ARB_get_proc_address
   GLX_ARB_multisample
   GLX_EXT_import_context
   GLX_EXT_visual_info
   GLX_EXT_visual_rating
   GLX_MESA_allocate_memory
   GLX_MESA_copy_sub_buffer
   GLX_MESA_swap_control
   GLX_MESA_swap_frame_usage
   GLX_OML_swap_method
   GLX_OML_sync_control
   GLX_SGI_make_current_read
   GLX_SGI_swap_control
   GLX_SGI_video_sync
   GLX_SGIS_multisample
   GLX_SGIX_fbconfig
   GLX_SGIX_pbuffer
   GLX_SGIX_visual_select_group
   GLX_EXT_texture_from_pixmap
glx_info.get_extensions():
   GLX_ARB_get_proc_address
   GLX_ARB_multisample
   GLX_EXT_import_context
   GLX_EXT_visual_info
   GLX_EXT_visual_rating
   GLX_MESA_allocate_memory
   GLX_MESA_copy_sub_buffer
   GLX_MESA_swap_control
   GLX_MESA_swap_frame_usage
   GLX_OML_swap_method
   GLX_SGI_make_current_read
   GLX_SGI_swap_control
   GLX_SGI_video_sync
   GLX_SGIS_multisample
   GLX_SGIX_fbconfig
   GLX_SGIX_visual_select_group

pyglet.media
------------------------------------------------------------------------------
driver: pyglet.media.drivers.openal

pyglet.media.avbin
------------------------------------------------------------------------------
AVbin not available.

pyglet.media.drivers.openal
------------------------------------------------------------------------------
Library: <CDLL 'libopenal.so.0', handle 8b78b80 at 890482c>
Version: (1, 0)
Extensions:

   weird vorbid_get

Original issue reported on code.google.com by sels...@gmail.com on 10 Mar 2008 at 3:54

GoogleCodeExporter commented 9 years ago
Whoops forgot to describe the issue. Basically for me both of those methods do 
not
draw anything on the screen. I can use the blit() method to draw the images 
that I
load for the spites.

I also noticed that if I tried to
use the sprite or batch draw, and then use the blit() method that the
image gets drawn by the blit but it appears to be washed out. 

I also talked about this on the mailing list here:

http://groups.google.com/group/pyglet-users/browse_thread/thread/bf570549ff8e1b9
4

Original comment by sels...@gmail.com on 10 Mar 2008 at 3:58

GoogleCodeExporter commented 9 years ago
Same hardware and driver as issue 245, probably a related problem.

Original comment by Alex.Hol...@gmail.com on 10 Mar 2008 at 4:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm closing this bug since it is rather old and we need a clean list to follow 
new issues. If you think this is still a problem, can you retest the problem 
with a recent version and add the issue again?

Original comment by winstonw...@gmail.com on 22 Jun 2012 at 9:55