Latest PS3 News Forum Updates

  • News
  • Posts
  • PS3 CFW
  • PS3 Files
  • PS3 Hacks
  • PS3 Help
  • PS3 Releases
  • PS3 Themes
  • PS3 Trophies
  • PS Vita Trophies
Closed Thread
Page 11 of 41 FirstFirst ... 9 10 11 12 13 21 ... LastLast
  1. #101
    you don`t need 3 functions of setRenderTexture and display_png

    only use setRenderTexture and change display_png to:

    Code:
    void display_png(int x, int y, int width, int height, int tx, int ty)
    {
        vertex_text[vert_texture_indx].x= ((float) ((x)*2))/((float) 1920)-1.0f;
        vertex_text[vert_texture_indx].y= ((float) ((y)*-2))/((float) 1080)+1.0f;
        vertex_text[vert_texture_indx].z= 0.0f;
        vertex_text[vert_texture_indx].tx= 0.0f;
        vertex_text[vert_texture_indx].ty= 0.0f;
    
        vertex_text[vert_texture_indx+1].x= ((float) ((x+width)*2))/((float) 1920)-1.0f;
        vertex_text[vert_texture_indx+1].y= ((float) ((y)*-2))/((float) 1080)+1.0f;
        vertex_text[vert_texture_indx+1].z= 0.0f;
        vertex_text[vert_texture_indx+1].tx= ((float) tx)/1920.0f;
        vertex_text[vert_texture_indx+1].ty= 0.0f;
    
        vertex_text[vert_texture_indx+2].x= ((float) ((x)*2))/((float) 1920)-1.0f;
        vertex_text[vert_texture_indx+2].y= ((float) ((y+height)*-2))/((float) 1080)+1.0f;
        vertex_text[vert_texture_indx+2].z= 0.0f;
        vertex_text[vert_texture_indx+2].tx= 0.0f;
        vertex_text[vert_texture_indx+2].ty= ((float) ty)/1080.0f;
    
        vertex_text[vert_texture_indx+3].x= ((float) ((x+width)*2))/((float) 1920)-1.0f;
        vertex_text[vert_texture_indx+3].y= ((float) ((y+height)*-2))/((float) 1080)+1.0f;
        vertex_text[vert_texture_indx+3].z= 0.0f;
        vertex_text[vert_texture_indx+3].tx= ((float) tx)/1920.0f;
        vertex_text[vert_texture_indx+3].ty=((float) ty)/1080.0f;
    
        cellGcmSetDrawArrays( gCellGcmCurrentContext, CELL_GCM_PRIMITIVE_TRIANGLE_STRIP, vert_texture_indx, 4 );
        vert_texture_indx+=4;
    }
    now you can kick out:
    setRenderTextureh
    setRenderTexturebg
    display_pngbg
    vertex_textbg
    vert_texturebg_indx
    display_pngh
    vertex_texth
    vert_textureh_indx


    and i think put_texture_vertex from orginal source is useless too


  2. #102
    yeah the put_texture_vertex function is never used


    Last edited by Jurai2; 10-06-2010 at 06:33 PM

  3. #103
    yes its tested code

    Jurai (or anyone else) do you know a way to display transparent png´s ? When I try load those png`s they have all white borders


  4. #104
    Great stuff Jurai


  5. #105
    updated source with w4r10cks fixes

    Attached Files

  6. #106
    Quote Originally Posted by Jurai2 View Post
    PAMF support is more complicated than

    Code:
    LoadMovie("file.pam", &pamfile);
    PlayMovie(pamfile, x, y, rx, ry);
    And here's me thinking it would be easy as adding that piece of code


  7. #107
    This is my contribution for a proper Background

    Have Fun with it ^^

    Attached Images


  8. #108
    Quote Originally Posted by LioMajor View Post
    This is my contribution for a proper Background

    Have Fun with it ^^
    Very Nice!
    Any chance of the .psd or .pdn
    Or can you add this image as the background...

    Attached Images


  9. #109
    Hm, tried to compiled the 5m ago released source.

    are these warnings normal?, but there are errors too, i think something's wrong.

    Attached Images


  10. #110
    I didn't include some source since it was (c) sony


Closed Thread
Page 11 of 41 FirstFirst ... 9 10 11 12 13 21 ... LastLast