Results 1 to 8 of 8

Thread: Noob OpenGL ES Android Question

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

    Noob OpenGL ES Android Question

    Hi,

    I'm just getting my headround using OpenGL ES for Android... I'm wanting to use it for 2d graphics so have a produced a simple example program which puts a square on the screen with a texture on it... After a long time I got this to work fine but I'm having problems understanding how to know where like the screen edges are if that makes any sense?

    So I draw the texture in the middle of the screen, but as I see I'm moving in 3d space, how can I know where the edge of the screen is? I obviously need to know this for 2d games. So if you've got a square with 4 points in 3d space, if I moved the square, how would I know when it hits the edge of the screen? Or indeed the dimensions of the screen reltive to the squares position?

    Thanks a lot, I hope that makes sense.

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

    Re: Noob OpenGL ES Android Question

    Mind me asking how you put a texture on the square? I can draw all sorts of shapes but cant figure out how to draw textures yet.

    Sorry for being of no assistance to you with your problem.

  3. #3
    Junior Member
    Join Date
    Oct 2010
    Posts
    2

    Re: Noob OpenGL ES Android Question

    Blimey hehe, this seems like years ago when I did this... Quick questions, are you using Android and are you making a 2d game? As I found a much better way of doing things... Where you can basicly just churn out 2d images.

    Cheers

  4. #4
    Junior Member
    Join Date
    Apr 2010
    Posts
    3

    Re: Noob OpenGL ES Android Question

    so for 2d Games ur using usual SurfaceView and not GLSurfaceView?

  5. #5
    Junior Member
    Join Date
    May 2011
    Posts
    1

    Re: Noob OpenGL ES Android Question

    I'm interested in figuring out the textures too.. I'm new to the programs and struggling hopefully it wont be too hard to get it together for my first project.

  6. #6
    Administrator khronos's Avatar
    Join Date
    Jun 2002
    Location
    Montreal
    Posts
    56

    Re: Noob OpenGL ES Android Question

    The link you supplied doesn't seem to work.

  7. #7

    Re: Noob OpenGL ES Android Question

    I would like to create game in opengl on Android, but I don't know how. I can make an application on Android, so I am not noob Can you give me a link to tutorial: how can I make a 3d game in OpenGl? I read a jayway tutorial but it isn't about making games.

  8. #8
    Senior Member
    Join Date
    May 2008
    Posts
    104

    Re: Noob OpenGL ES Android Question

    There's lot of great docs at:

    http://developer.android.com/index.html

Similar Threads

  1. OpenGL 1.x android 3d surface plot
    By info4project in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 03-08-2012, 02:03 PM
  2. Android SDK // Eclipse // OPENGL ES 2.0 -> Shader Question
    By DerTherion in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 2
    Last Post: 09-10-2011, 09:03 PM

Posting Permissions

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