Results 1 to 7 of 7

Thread: Alpha Transparency Support

  1. #1
    Jurai2 Guest

    Alpha Transparency Support

    you have to enable pixel blending via GCM (disabled by default). inb4 someone says i stole it even though cover managers still the only manager using it

    Code:
    	cellGcmSetBlendFunc(gCellGcmCurrentContext,CELL_GCM_SRC_ALPHA, CELL_GCM_ONE_MINUS_SRC_ALPHA,CELL_GCM_SRC_ALPHA, CELL_GCM_ONE_MINUS_SRC_ALPHA);
    	cellGcmSetBlendEquation(gCellGcmCurrentContext,CELL_GCM_FUNC_ADD, CELL_GCM_FUNC_ADD);
    	cellGcmSetBlendEnable(gCellGcmCurrentContext,CELL_GCM_TRUE);

  2. #2
    drizzt84 Guest
    Thanks mate, useful as usual!

  3. #3
    dogie721 Guest

    Wink

    Quote Originally Posted by Jurai2 View Post
    you have to enable pixel blending via GCM (disabled by default). inb4 someone says i stole it even though cover managers still the only manager using it

    Code:
    	cellGcmSetBlendFunc(gCellGcmCurrentContext,CELL_GCM_SRC_ALPHA, CELL_GCM_ONE_MINUS_SRC_ALPHA,CELL_GCM_SRC_ALPHA, CELL_GCM_ONE_MINUS_SRC_ALPHA);
    	cellGcmSetBlendEquation(gCellGcmCurrentContext,CELL_GCM_FUNC_ADD, CELL_GCM_FUNC_ADD);
    	cellGcmSetBlendEnable(gCellGcmCurrentContext,CELL_GCM_TRUE);
    So where is supposed to go this code? Make another shader?

    Thanks for you help!

  4. #4
    deank Guest
    Thank You, Jurai!

  5. #5
    Jurai2 Guest
    you should also turn off depth testing

  6. #6
    deank Guest
    When I turn it off I can't use depth for different objects like the mouse pointer or the overlaying 'squares' and the images get dimmed.

    Current addon which you suggested works fine for game ICONS...

    I wanted to use the transparency for filemanager icons and custom (proportional) font.

    //

    Hint: A full 1920x1080 PNG can hold a lot of objects just like with BD-J BDMV discs with java menus and 'custom' labels.

  7. #7
    dogie721 Guest
    Quote Originally Posted by Jurai2 View Post
    you should also turn off depth testing
    Code:
    //cellGcmSetDepthTestEnable(gCellGcmCurrentContext, CELL_GCM_TRUE);
        //cellGcmSetDepthFunc(gCellGcmCurrentContext, CELL_GCM_LESS);
    
    	cellGcmSetBlendFunc(gCellGcmCurrentContext, CELL_GCM_SRC_ALPHA, CELL_GCM_ONE_MINUS_SRC_ALPHA, CELL_GCM_SRC_ALPHA,
    						CELL_GCM_ONE_MINUS_SRC_ALPHA);
    	cellGcmSetBlendEquation(gCellGcmCurrentContext, CELL_GCM_FUNC_ADD, CELL_GCM_FUNC_ADD);
    	cellGcmSetBlendEnable(gCellGcmCurrentContext, CELL_GCM_TRUE);
    I turn off depth test but not show the icon after this!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •