Sponsored Links

Sponsored Links

Page 11 of 41 FirstFirst ... 91011121321 ... LastLast
Results 101 to 110 of 409



Thread: Sexy Manager

  1. #101
    Registered User w4r10ck's Avatar
    Join Date
    Oct 2010
    Posts
    2
    Sponsored Links
    Sponsored Links
    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
    Registered User Jurai2's Avatar
    Join Date
    Sep 2010
    Posts
    352
    Sponsored Links
    Sponsored Links
    yeah the put_texture_vertex function is never used
    Last edited by Jurai2; 10-06-2010 at 06:33 PM

  3. #103
    Registered User w4r10ck's Avatar
    Join Date
    Oct 2010
    Posts
    2
    Sponsored Links
    Sponsored Links
    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
    Registered User Pay87's Avatar
    Join Date
    Sep 2010
    Posts
    1
    Great stuff Jurai

  5. #105
    Registered User Jurai2's Avatar
    Join Date
    Sep 2010
    Posts
    352
    updated source with w4r10cks fixes
    Attached Files Attached Files

  6. #106
    Banned User JonahUK's Avatar
    Join Date
    Jun 2008
    Posts
    56
    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
    Contributor LioMajor's Avatar
    Join Date
    Apr 2005
    Posts
    105
    This is my contribution for a proper Background

    Have Fun with it ^^
    Attached Images<br><br> Attached Images


  8. #108
    Senior Member farenheit's Avatar
    Join Date
    Jun 2007
    Posts
    295
    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<br><br> Attached Images


  9. #109
    Registered User NinjaOptimus's Avatar
    Join Date
    Aug 2010
    Posts
    53
    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<br><br> Attached Images


  10. #110
    Registered User Jurai2's Avatar
    Join Date
    Sep 2010
    Posts
    352
    I didn't include some source since it was (c) sony

 

Sponsored Links

Page 11 of 41 FirstFirst ... 91011121321 ... LastLast
Affiliates - Contact Us - PS3 Downloads - Privacy Statement - Site Rules - Top - © 2014 PlayStation 3 News