Pages: [1]
Auteur Sujet: [Résolu] Ecran noir sur le menu.  (Lu 15390 fois)
leonsulivan
Administrateur
Moyen
*****
Messages: 68



Voir le profil WWW Courriel
« le: 27 Juillet 2009 à 16:36:51 »

size=16pt]--
[color=red]Le 26 Juillet :[/color]
--Code:
[OK]           LangManager @ charger : The lang file is loaded
[OK]           Jeu @ initSDL : SDL initialized
[OK]           Jeu @ initSons : Sounds initialized
[OK]           Jeu @ initGL : OpenGL initialized
[OK]           Jeu @ initTexture : Textures initialized
[OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Fonts/High/font1.tga
[OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
[OK]           TexturesManager @ LoadTexture : Texture loaded  2
[OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Fonts/High/font2.tga
[OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
[OK]           TexturesManager @ LoadTexture : Texture loaded  3
[OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Fonts/High/font3.tga
[OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
[OK]           TexturesManager @ LoadTexture : Texture loaded  4
[OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Fonts/High/font4.tga
[OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
[OK]           TexturesManager @ LoadTexture : Texture loaded  5
[OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Fonts/High/font5.tga
[OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
[OK]           TexturesManager @ LoadTexture : Texture loaded  6
[OK]           SonsManager @ chargerMusique : Ask for loading a music
[OK]           SonsManager @ chargerMusique : The music is loaded correctly
[OK]           SonsManager @ jouerMusique : Ready to play a music
[OK]           SonsManager @ jouerMusique : The function is over
[OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Menus/premenu.tga
[OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
[OK]           TexturesManager @ LoadTexture : Texture loaded  7
[OK]           SonsManager @ jouerSon : A Sound is played
[OK]           SonsManager @ chargerMusique : Ask for loading a music
[OK]           SonsManager @ chargerMusique : The music is loaded correctly
[OK]           SonsManager @ jouerMusique : Ready to play a music
[OK]           SonsManager @ jouerMusique : The function is over
[OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Menus/High/Ratio-4-3/menu.tga
[OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
[OK]           TexturesManager @ LoadTexture : Texture loaded  8

--
Le 27 Juillet :
--<
  • Version Sans Sons (uniquement le menu)
  • Version Sans Texture (uniquement le menu)
  • Version Sans Curseur (uniquement le menu)
  • Version Sans Textes (uniquement le menu)
  • <--
    Le 28 Juillet :
    --quarante-sept<Le 26 Juillet :
    Code:
    [OK]           LangManager @ charger : The lang file is loaded
    [OK]           Jeu @ initSDL : SDL initialized
    [OK]           Jeu @ initSons : Sounds initialized
    [OK]           Jeu @ initGL : OpenGL initialized
    [OK]           Jeu @ initTexture : Textures initialized
    [OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Fonts/High/font1.tga
    [OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
    [OK]           TexturesManager @ LoadTexture : Texture loaded  2
    [OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Fonts/High/font2.tga
    [OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
    [OK]           TexturesManager @ LoadTexture : Texture loaded  3
    [OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Fonts/High/font3.tga
    [OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
    [OK]           TexturesManager @ LoadTexture : Texture loaded  4
    [OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Fonts/High/font4.tga
    [OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
    [OK]           TexturesManager @ LoadTexture : Texture loaded  5
    [OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Fonts/High/font5.tga
    [OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
    [OK]           TexturesManager @ LoadTexture : Texture loaded  6
    [OK]           SonsManager @ chargerMusique : Ask for loading a music
    [OK]           SonsManager @ chargerMusique : The music is loaded correctly
    [OK]           SonsManager @ jouerMusique : Ready to play a music
    [OK]           SonsManager @ jouerMusique : The function is over
    [OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Menus/premenu.tga
    [OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
    [OK]           TexturesManager @ LoadTexture : Texture loaded  7
    [OK]           SonsManager @ jouerSon : A Sound is played
    [OK]           SonsManager @ chargerMusique : Ask for loading a music
    [OK]           SonsManager @ chargerMusique : The music is loaded correctly
    [OK]           SonsManager @ jouerMusique : Ready to play a music
    [OK]           SonsManager @ jouerMusique : The function is over
    [OK]           TexturesManager @ LoadTexture : Chargement de la texture :  Images/Menus/High/Ratio-4-3/menu.tga
    [OK]           TexturesManager @ LoadTexture : The texture doesn't already exists
    [OK]           TexturesManager @ LoadTexture : Texture loaded  8

    --
    Le 27 Juillet :
    --<
  • Version Sans Sons (uniquement le menu)
  • Version Sans Texture (uniquement le menu)
  • Version Sans Curseur (uniquement le menu)
  • Version Sans Textes (uniquement le menu)
  • <--
    Le 28 Juillet :
    --quarante-sept
    « Dernière édition: 27 Septembre 2009 à 17:00:14 par leonsulivan » Journalisée


    quarante-sept
    Dbutant
    *
    Messages: 6



    Voir le profil Courriel
    « Répondre #1 le: 27 Juillet 2009 à 17:36:08 »

    quote author="GLIntercept"]ExtensionFunction::AddFunction - Function glGetString does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glBegin does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glBindTexture does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glBlendFunc does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glColor4f does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glDisable does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glEnable does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glEnd does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glFlush does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glGenTextures does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glGetString does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glLoadIdentity does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glMatrixMode does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glOrtho does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPixelStorei does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPopAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPopClientAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPopMatrix does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPushAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPushClientAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPushMatrix does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexCoord2f does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexEnvf does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexImage2D does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexParameteri does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexSubImage2D does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glVertex2i does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glViewport does not match previous lookup (multiple OpenGL devices?)
    et glTrace
    Citation de: GLTrace
    glGetString extension NOT found
    glBegin extension NOT found
    glBindTexture extension NOT found
    glBlendFunc extension NOT found
    glColor4f extension NOT found
    glDisable extension NOT found
    glEnable extension NOT found
    glEnd extension NOT found
    glFlush extension NOT found
    glGenTextures extension NOT found
    glGetString extension NOT found
    glLoadIdentity extension NOT found
    glMatrixMode extension NOT found
    glOrtho extension NOT found
    glPixelStorei extension NOT found
    glPopAttrib extension NOT found
    glPopClientAttrib extension NOT found
    glPopMatrix extension NOT found
    glPushAttrib extension NOT found
    glPushClientAttrib extension NOT found
    glPushMatrix extension NOT found
    glTexCoord2f extension NOT found
    glTexEnvf extension NOT found
    glTexImage2D extension NOT found
    glTexParameteri extension NOT found
    glTexSubImage2D extension NOT found
    glVertex2i extension NOT found
    glViewport extension NOT found
    Code:
    Operating System: Windows Vista (TM) Home Premium* , Service Pack 1 (6.0.6001)
    Processor:     Intel(R) Core(TM) 2 Duo CPU   T5750 @2.0GHz
    Physical Memory: 2037 MB
    Minimum Graphics Memory: 8 MB
    Maximum Graphics Memory: 358 MB
    Graphics Memory in Use: 130 MB

    Accelerator in Use: Mobile Intel(R) 965 Express Chipset Family
    Driver Version: 7.15.10.1666
    Video BIOS: 1533.0
    Current Graphics Mode: 1280 x 800 True Color (60 Hz)

    DirectX* Version: 10.0
    OpenGL version    : 2.0.0 - Build 7.15.10.1666
    OpenGL extensions : GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_blend_color GL_EXT_abgr GL_EXT_texture3D GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_SGIS_texture_edge_clamp GL_SGIS_generate_mipmap GL_EXT_draw_range_elements GL_SGIS_texture_lod GL_EXT_rescale_normal GL_EXT_packed_pixels GL_EXT_separate_specular_color GL_ARB_multitexture GL_EXT_texture_env_combine GL_EXT_bgra GL_EXT_blend_func_separate GL_EXT_secondary_color GL_EXT_fog_coord GL_EXT_texture_env_add GL_ARB_texture_cube_map GL_ARB_transpose_matrix GL_ARB_texture_env_add GL_IBM_texture_mirrored_repeat GL_EXT_multi_draw_arrays GL_NV_blend_square GL_ARB_texture_compression GL_3DFX_texture_compression_FXT1 GL_EXT_texture_filter_anisotropic GL_ARB_texture_border_clamp GL_ARB_point_parameters GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_env_crossbar GL_EXT_texture_compression_s3tc GL_ARB_shadow GL_ARB_window_pos GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_ARB_vertex_program GL_EXT_texture_rectangle GL_ARB_fragment_program GL_EXT_stencil_two_side GL_ATI_separate_stencil GL_ARB_vertex_buffer_object GL_EXT_texture_lod_bias GL_ARB_occlusion_query GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_non_power_of_two GL_ARB_vertex_shader GL_NV_texgen_reflection GL_ARB_point_sprite GL_EXT_blend_equation_separate GL_ARB_depth_texture GL_ARB_texture_rectangle GL_ARB_draw_buffers GL_ARB_pixel_buffer_object GL_WIN_swap_hint GL_EXT_framebuffer_object
    [/code
    Citation de: GLIntercept
    ExtensionFunction::AddFunction - Function glGetString does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glBegin does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glBindTexture does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glBlendFunc does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glColor4f does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glDisable does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glEnable does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glEnd does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glFlush does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glGenTextures does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glGetString does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glLoadIdentity does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glMatrixMode does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glOrtho does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPixelStorei does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPopAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPopClientAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPopMatrix does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPushAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPushClientAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPushMatrix does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexCoord2f does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexEnvf does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexImage2D does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexParameteri does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexSubImage2D does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glVertex2i does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glViewport does not match previous lookup (multiple OpenGL devices?)[/quote]
    et glTrace
    [quote author="GLTrace"]
    glGetString extension NOT found
    glBegin extension NOT found
    glBindTexture extension NOT found
    glBlendFunc extension NOT found
    glColor4f extension NOT found
    glDisable extension NOT found
    glEnable extension NOT found
    glEnd extension NOT found
    glFlush extension NOT found
    glGenTextures extension NOT found
    glGetString extension NOT found
    glLoadIdentity extension NOT found
    glMatrixMode extension NOT found
    glOrtho extension NOT found
    glPixelStorei extension NOT found
    glPopAttrib extension NOT found
    glPopClientAttrib extension NOT found
    glPopMatrix extension NOT found
    glPushAttrib extension NOT found
    glPushClientAttrib extension NOT found
    glPushMatrix extension NOT found
    glTexCoord2f extension NOT found
    glTexEnvf extension NOT found
    glTexImage2D extension NOT found
    glTexParameteri extension NOT found
    glTexSubImage2D extension NOT found
    glVertex2i extension NOT found
    glViewport extension NOT found
    [/quote]

    EDIT : pour aider au dbug, merci de signaler si vous avez aussi le problme en donnant votre config

    [code]
    Operating System: Windows Vista (TM) Home Premium* , Service Pack 1 (6.0.6001)
    Processor:     Intel(R) Core(TM) 2 Duo CPU   T5750 @2.0GHz
    Physical Memory: 2037 MB
    Minimum Graphics Memory: 8 MB
    Maximum Graphics Memory: 358 MB
    Graphics Memory in Use: 130 MB

    Accelerator in Use: Mobile Intel(R) 965 Express Chipset Family
    Driver Version: 7.15.10.1666
    Video BIOS: 1533.0
    Current Graphics Mode: 1280 x 800 True Color (60 Hz)

    DirectX* Version: 10.0
    OpenGL version    : 2.0.0 - Build 7.15.10.1666
    OpenGL extensions : GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_blend_color GL_EXT_abgr GL_EXT_texture3D GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_SGIS_texture_edge_clamp GL_SGIS_generate_mipmap GL_EXT_draw_range_elements GL_SGIS_texture_lod GL_EXT_rescale_normal GL_EXT_packed_pixels GL_EXT_separate_specular_color GL_ARB_multitexture GL_EXT_texture_env_combine GL_EXT_bgra GL_EXT_blend_func_separate GL_EXT_secondary_color GL_EXT_fog_coord GL_EXT_texture_env_add GL_ARB_texture_cube_map GL_ARB_transpose_matrix GL_ARB_texture_env_add GL_IBM_texture_mirrored_repeat GL_EXT_multi_draw_arrays GL_NV_blend_square GL_ARB_texture_compression GL_3DFX_texture_compression_FXT1 GL_EXT_texture_filter_anisotropic GL_ARB_texture_border_clamp GL_ARB_point_parameters GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_env_crossbar GL_EXT_texture_compression_s3tc GL_ARB_shadow GL_ARB_window_pos GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_ARB_vertex_program GL_EXT_texture_rectangle GL_ARB_fragment_program GL_EXT_stencil_two_side GL_ATI_separate_stencil GL_ARB_vertex_buffer_object GL_EXT_texture_lod_bias GL_ARB_occlusion_query GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_non_power_of_two GL_ARB_vertex_shader GL_NV_texgen_reflection GL_ARB_point_sprite GL_EXT_blend_equation_separate GL_ARB_depth_texture GL_ARB_texture_rectangle GL_ARB_draw_buffers GL_ARB_pixel_buffer_object GL_WIN_swap_hint GL_EXT_framebuffer_object
    « Dernière édition: 27 Juillet 2009 à 18:27:06 par quarante-sept » Journalisée

    leonsulivan
    Administrateur
    Moyen
    *****
    Messages: 68



    Voir le profil WWW Courriel
    « Répondre #2 le: 27 Juillet 2009 à 18:36:06 »

    quote]ExtensionFunction::AddFunction - Function glBindTexture does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glGenTextures does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPopClientAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPushClientAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexSubImage2D does not match previous lookup (multiple OpenGL devices?)Code:
    Operating System: Windows Vista Professionnel (6.0 version 6001)
    Processor:     AMD X2 4800+ ~2.5 Ghz
    Physical Memory: 2046 MB
    Accelerator in Use: NVidia GeForce 7600 GT
    Current Graphics Mode: 1680 x 1050 (32bit) (60 Hz)[/code
    Citation
    ExtensionFunction::AddFunction - Function glBindTexture does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glGenTextures does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPopClientAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glPushClientAttrib does not match previous lookup (multiple OpenGL devices?)
    ExtensionFunction::AddFunction - Function glTexSubImage2D does not match previous lookup (multiple OpenGL devices?)[/quote]

    J'en ai donc sensiblement moins, mais il n'empche que c'est tout de mme pas normal.

    Ma config est la suivante :

    [code]Operating System: Windows Vista Professionnel (6.0 version 6001)
    Processor:     AMD X2 4800+ ~2.5 Ghz
    Physical Memory: 2046 MB
    Accelerator in Use: NVidia GeForce 7600 GT
    Current Graphics Mode: 1680 x 1050 (32bit) (60 Hz)
    « Dernière édition: 28 Juillet 2009 à 17:03:02 par leonsulivan » Journalisée


    quarante-sept
    Dbutant
    *
    Messages: 6



    Voir le profil Courriel
    « Répondre #3 le: 27 Juillet 2009 à 20:14:28 »

    « Dernière édition: 27 Juillet 2009 à 20:21:42 par quarante-sept » Journalisée

    leonsulivan
    Administrateur
    Moyen
    *****
    Messages: 68



    Voir le profil WWW Courriel
    « Répondre #4 le: 27 Juillet 2009 à 20:41:49 »

    code]
    glDisable( GL_TEXTURE_2D );
    glColor4d(0.0,0.0,0.0,0.3);

    // Dessine le curseur
    glBegin(GL_QUADS);
    glVertex2d( 0.0 , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .14);
    glVertex2d( 0.0 , .14);
    glVertex2d( (( etat ) / (double) nbEtats) , .29);
    glVertex2d( 1.0 , .29);
    glVertex2d( 1.0 , .14);
    glVertex2d( (( etat ) / (double) nbEtats) , .14);
    glEnd();

    glColor3d(1.0,1.0,1.0);
    glEnable( GL_TEXTURE_2D );
    [/code]

    J'avoue ne pas bien voir ce qui pourrait mal se passer dans cette section de code ..
    Code:
    glDisable( GL_TEXTURE_2D );
    glColor4d(0.0,0.0,0.0,0.3);

    // Dessine le curseur
    glBegin(GL_QUADS);
    glVertex2d( 0.0 , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .14);
    glVertex2d( 0.0 , .14);
    glVertex2d( (( etat ) / (double) nbEtats) , .29);
    glVertex2d( 1.0 , .29);
    glVertex2d( 1.0                  , .14);    
          glVertex2d( (( etat ) / (double) nbEtats)      , .14);
       glEnd();

       glColor3d(1.0,1.0,1.0);
       glEnable( GL_TEXTURE_2D );


    J'avoue ne pas bien voir ce qui pourrait mal se passer dans cette section de code ...
    Journalisée


    quarante-sept
    Dbutant
    *
    Messages: 6



    Voir le profil Courriel
    « Répondre #5 le: 28 Juillet 2009 à 09:37:26 »

    Journalisée

    flo0627
    Dbutant
    *
    Messages: 2


    Voir le profil Courriel
    « Répondre #6 le: 28 Juillet 2009 à 10:20:08 »

    code]Operating System: Windows XP Edition familliale (build 2600) Service Pack 3
    Processor:     Intel Pentium 4 3000MHz
    Physical Memory: 1024 MB
    Accelerator in Use: Ati Radeon X1300 (512 Mo)
    Current Graphics Mode: 1280 x 1024 (32bit)[/code
    Code:
    Operating System: Windows XP Edition familliale (build 2600) Service Pack 3
    Processor:     Intel Pentium 4 3000MHz
    Physical Memory:    1024 MB
    Accelerator in Use:      Ati Radeon X1300 (512 Mo)
    Current Graphics Mode:      1280 x 1024 (32bit)
    Journalisée

    leonsulivan
    Administrateur
    Moyen
    *****
    Messages: 68



    Voir le profil WWW Courriel
    « Répondre #7 le: 28 Juillet 2009 à 16:17:36 »

    L'alpha blending est en effet actif pour tout ce qui est 2D, j'utilise par ailleurs la fonction suivante :

    Code:
    glEnable(GL_BLEND);
    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

    // ...

    glDisable(GL_BLEND);
    « Dernière édition: 28 Juillet 2009 à 17:05:01 par leonsulivan » Journalisée


    quarante-sept
    Dbutant
    *
    Messages: 6



    Voir le profil Courriel
    « Répondre #8 le: 28 Juillet 2009 à 16:39:03 »

    les deux premiers fonctionnent, Pas l'alpha-bending... Color changes tu fais quoi dedans exactement ?
    Journalisée

    leonsulivan
    Administrateur
    Moyen
    *****
    Messages: 68



    Voir le profil WWW Courriel
    « Répondre #9 le: 28 Juillet 2009 à 16:45:31 »

    code]glDisable( GL_TEXTURE_2D );
    glColor4d(0.0,0.0,0.0,0.3);

    // Dessine le curseur
    glBegin(GL_QUADS);
    glVertex2d( 0.0 , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .14);
    glVertex2d( 0.0 , .14);
    glVertex2d( (( etat ) / (double) nbEtats) , .29);
    glVertex2d( 1.0 , .29);
    glVertex2d( 1.0 , .14);
    glVertex2d( (( etat ) / (double) nbEtats) , .14);
    glEnd();

    glColor3d(1.0,1.0,1.0);
    glEnable( GL_TEXTURE_2D );[/code]

    Color changes :
    [code]glDisable( GL_TEXTURE_2D );
    glColor4d(0.0,0.0,0.0,0.3);

    // Dessine le curseur
    glBegin(GL_QUADS);
    glVertex2d( 0.0 , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .14);
    glVertex2d( 0.0 , .14);
    glVertex2d( (( etat ) / (double) nbEtats) , .29);
    glVertex2d( 1.0 , .29);
    glVertex2d( 1.0 , .14);
    glVertex2d( (( etat ) / (double) nbEtats) , .14);
    glEnd();

    glColor4d(1.0,1.0,1.0,1.0); // <------------ Color4d au lieu de Color3d
    glEnable( GL_TEXTURE_2D );[/code]

    Jtais parti sur le principe que si je choisissait un Color3 aprs un Color4 l'alpha serait 1.0 ... mais peut-tre pas partout :p

    --

    EDIT : J'ai rpercut ceci partout o je devais le faire, la version suivante "risque" donc d'tre pas trop loin d'une version corrigeant le bug.

    Allez je croise les doigts voici le lien : http://www.battlejump.com/Download/Battle_Jump_v072_Debug_Windows.zi
    Code:
    glDisable( GL_TEXTURE_2D );
    glColor4d(0.0,0.0,0.0,0.3);

    // Dessine le curseur
    glBegin(GL_QUADS);
    glVertex2d( 0.0 , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .14);    
          glVertex2d( 0.0                  , .14);
          glVertex2d( (( etat ) / (double) nbEtats)      , .29);
          glVertex2d( 1.0                  , .29);
          glVertex2d( 1.0                  , .14);    
          glVertex2d( (( etat ) / (double) nbEtats)      , .14);
       glEnd();

       glColor3d(1.0,1.0,1.0);
       glEnable( GL_TEXTURE_2D );


    Color changes :
    Code:
    glDisable( GL_TEXTURE_2D );
    glColor4d(0.0,0.0,0.0,0.3);

    // Dessine le curseur
    glBegin(GL_QUADS);
    glVertex2d( 0.0 , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .29);
    glVertex2d( (( etat - 1 ) / (double) nbEtats) , .14);
    glVertex2d( 0.0 , .14);
    glVertex2d( (( etat ) / (double) nbEtats) , .29);
    glVertex2d( 1.0 , .29);
    glVertex2d( 1.0 , .14);
    glVertex2d( (( etat ) / (double) nbEtats) , .14);
    glEnd();

    glColor4d(1.0,1.0,1.0,1.0); // <------------ Color4d au lieu de Color3d
    glEnable( GL_TEXTURE_2D );
    « Dernière édition: 28 Juillet 2009 à 17:04:55 par leonsulivan » Journalisée


    quarante-sept
    Dbutant
    *
    Messages: 6



    Voir le profil Courriel
    « Répondre #10 le: 28 Juillet 2009 à 17:13:29 »

    Journalisée

    leonsulivan
    Administrateur
    Moyen
    *****
    Messages: 68



    Voir le profil WWW Courriel
    « Répondre #11 le: 28 Juillet 2009 à 17:24:23 »

    « Dernière édition: 28 Juillet 2009 à 19:17:12 par leonsulivan » Journalisée


    Pages: [1]
    Imprimer
     
    Aller à: