On Feb 18, 2:23 pm, "Alex Holkner" <[EMAIL PROTECTED]> wrote:
> On 2/18/08, Abdul <[EMAIL PROTECTED]> wrote:
>
>
>
> > Very nice effect!
> > I have only a problem: I see all the images with colors swapped (RGB -
> > > BGR).
> > How can I avoid this?
>
> Sounds like a bug in pyglet.  Please let me know your operating system
> and video hardware details.  If you are running Linux, post the output
> of `glxinfo`.  Otherwise, please download the pyglet source zip or
> tar.gz and run tools/gl_info.py (and post the output).
>

Well, I've tested it on Windows XP (two different machines) finding
the same funny effect.
This is the output of glinfo.py

------------------

Platform instance is <pyglet.window.win32.Win32Platform object at
0x01D191D0>
Display instance is <pyglet.window.win32.Win32Display object at
0x00DA3230>
Screens:
  Win32Screen(x=0, y=0, width=1440, height=900)
Creating default context...
GL attributes:
double_buffer=True stereo=False 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: 2.0.6956 WinXP Release
GL vendor: ATI Technologies Inc.
GL renderer: Radeon X1950 Pro x86/MMX/3DNow!/SSE2
GL extensions:
  GL_ARB_texture_compression GL_EXT_blend_color GL_EXT_blend_subtract
  GL_EXT_stencil_wrap GL_EXT_vertex_array
  GL_EXT_texture_compression_s3tc GL_ATI_separate_stencil
  GL_ARB_depth_texture GL_ARB_vertex_blend
  GL_ATI_texture_compression_3dc GL_EXT_texture_object
  GL_EXT_vertex_shader GL_EXT_blend_func_separate
  GL_ATI_shader_texture_lod GL_EXT_texture_cube_map
  GL_ARB_occlusion_query GL_ARB_transpose_matrix
  GL_ARB_texture_border_clamp GL_EXT_fog_coord GL_SGIS_multitexture
  GL_ARB_texture_cube_map GL_ARB_point_parameters
  GL_EXT_texture_env_dot3 GL_ATI_texture_env_combine3
  GL_EXT_multi_draw_arrays GL_HP_occlusion_test
  GL_ATIX_texture_env_combine3 GL_ATIX_vertex_shader_output_point_size
  GL_ARB_vertex_program GL_ARB_texture_env_dot3 GL_EXT_bgra
  GL_SGIS_texture_edge_clamp GL_ATI_fragment_shader
  GL_ARB_texture_env_combine GL_ARB_vertex_buffer_object
  GL_EXT_shadow_funcs GL_EXT_separate_specular_color
  GL_EXT_texture_env_add GL_EXT_texture_mirror_clamp
  GL_SGIS_texture_border_clamp GL_ATI_vertex_attrib_array_object
  GL_ARB_point_sprite GL_EXT_framebuffer_object GL_ARB_vertex_shader
  WGL_EXT_swap_control GL_ARB_draw_buffers
  GL_ARB_fragment_program_shadow GL_ATI_element_array
  GL_SGI_color_matrix GL_ATI_texture_mirror_once
GL_NV_texgen_reflection
  GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array
  GL_EXT_point_parameters GL_WIN_swap_hint GL_ARB_texture_float
  GL_ARB_fragment_shader GL_ATI_texture_float GL_ARB_fragment_program
  GL_ARB_shader_objects GL_ARB_shading_language_100
  GL_ATI_vertex_streams GL_NV_blend_square GL_ATI_envmap_bumpmap
  GL_EXT_texture_env_combine GL_EXT_texgen_reflection
  GL_EXT_texture_lod_bias GL_ARB_shadow_ambient GL_EXT_abgr
  GL_ARB_texture_rectangle GL_ARB_multisample GL_SGIS_generate_mipmap
  GL_ATI_map_object_buffer GL_EXT_texture_filter_anisotropic
  GL_EXT_blend_minmax GL_ARB_texture_env_crossbar GL_SGIS_texture_lod
  GL_ATIX_texture_env_route GL_EXT_texture_rectangle
  GL_EXT_texture_edge_clamp GL_ARB_window_pos GL_ARB_shadow
  GL_ARB_texture_mirrored_repeat GL_SUN_multi_draw_arrays GL_S3_s3tc
  GL_EXT_texture3D GL_ARB_multitexture GL_EXT_secondary_color
  GL_EXT_draw_range_elements GL_ATI_draw_buffers
  WGL_EXT_extensions_string GL_ATI_vertex_array_object
  GL_NV_occlusion_query GL_ARB_texture_env_add GL_EXT_packed_pixels
  GL_EXT_rescale_normal GL_ARB_pixel_buffer_object
GLU version: 1.2.2.0 Microsoft Corporation
GLU extensions:
  GL_EXT_bgra

Context is Win32Context()
WGL extensions:
 WGL_ARB_extensions_string WGL_ARB_make_current_read
 WGL_ARB_multisample WGL_ARB_pbuffer WGL_ARB_pixel_format
 WGL_ARB_render_texture WGL_ATI_pixel_format_float
 WGL_EXT_extensions_string WGL_EXT_swap_control
 WGL_ATI_render_texture_rectangle

------------------


> (I'm assuming other pyglet applications, such as the example programs,
> also have the colors swapped on images).

No, the other application run normally :)

Thanks to You!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to