unsure on how to texture using .jpg .png file

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  warmi 4 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31204

    john lam
    Member

    Hey guys, I’m quite new to OGLES2.0 and was hoping someone could help. I’m not sure how I can load in my image files texture my quad that I created from 2 triangles. Does the SDK come with an image loader and if so how do you use it? As I know you can’t just throw the file at the API.

    Thanks in advance.

    #36946

    warmi
    Member

    There is no support for image files other than PVR in the SDK.

    If you need pixel perfect ( no compression ) images you can import your jpeg file and re-export it as a PVR file with no compression (RGB) – this will work just fine but it will significantly increase the size of your image file.
    This only matters as far as disk space is concerned – in-memory representation of your image ( regardless of the original file format) will take just as much memory – the underlying hardware can only work with GLES compatible image formats anyway ( either raw rgb images or vendor specific compression formats like PVR or ETC)

    #36947

    john lam
    Member

    Hi Warmi, thanks for the reply. How would you go about loading in .PVR files?

    #36948

    warmi
    Member

    Check out their examples directory … that’s what they are for.

    For instance ; PowerVRGraphicsSDKSDK_3.0ExamplesBeginner5_IntroducingPVRTools
    This one does exactly what you are looking for … it loads a pvr image ( which was converted from a png image included in the project) and displays it mapped to a triangle.

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.