Results 1 to 3 of 3

Thread: OpenGL ES - Is it possible to make videoplayer using opengl?

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    2

    OpenGL ES - Is it possible to make videoplayer using opengl?

    Hi All,

    I have been trying to make a video player using opengl es.
    But I have found that the image size for texture has to be 2 square. It means that the resolution I want can not be made. Is there any other way? Normally Is opengl not used for making video player? Please don't hesitate to tell me If you have any suggestion. It will be very useful for me.

  2. #2
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: OpenGL ES - Is it possible to make videoplayer using ope

    Textures can certainly be non-square, rectangular textures are absolutely OK - but the two dimensions can only be non-power-of-two under special conditions:

    1) MipMapping is not allowed.
    2) Wrap mode must be "Clamp to edge" in both axes.

    Actually, neither of those may matter to you for making a video player...but if you don't set those exact things - the texture won't work.

    For details, read:

    http://www.khronos.org/registry/gles/sp ... 2.0.24.pdf

    ...specifically, sections 3.7.11 and 3.8.2.

  3. #3
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: OpenGL ES - Is it possible to make videoplayer using ope

    Oh...and I should have mentioned...this only works under OpenGLES 2.x. OpenGLES 1.x can't cope with non-power-of-two textures unless there is an extension present that supports it...which would mean that you wouldn't have portable code without some way to make do without it.

Similar Threads

  1. Make a phone to support OpenGL ES2
    By nili0909 in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 04-29-2012, 12:46 PM
  2. how to make background of opengl window transparent
    By aditya.sen in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 3
    Last Post: 11-30-2009, 02:55 AM

Posting Permissions

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