Results 1 to 8 of 8

Thread: gluLookAt equivalent for Symbian?

  1. #1
    Junior Member
    Join Date
    Feb 2005
    Posts
    11

    gluLookAt equivalent for Symbian?

    Hi,
    I am wondering what I could do instead of using gluLookAt as it isn't available in OpenGL ES.

    Basically I want to be able to move a camera through a scene with an object always visible in front of the camera (third person view).

    I currently have this implemented by moving the world around, but this seems to be warping my textures, so I am looking for another way to implement it.

    Any suggestions would be greatly appreciated.

    Thanks,
    Miranda

  2. #2
    Junior Member
    Join Date
    Sep 2004
    Posts
    12

    Re: gluLookAt equivalent for Symbian?

    I answered the question already in our community forums.

    Hope this helps.

    Cheers,
    Petri
    o Petri Kero, Systems Architect
    o Hybrid Graphics, Ltd. www.hybrid.fi

  3. #3
    Member
    Join Date
    Oct 2004
    Location
    Bangalore, India
    Posts
    44

    Re: gluLookAt equivalent for Symbian?

    Hope this helps. Haven't tested this. You are welcome to copy this source. :-

    Code :
     

    [ April 04, 2005: Message edited by: gautam ]

  4. #4
    Junior Member
    Join Date
    Feb 2005
    Posts
    11

    Re: gluLookAt equivalent for Symbian?

    Hi,
    thanks for that, sorry I didn't realise these forum were linked

    I am trying to use an adapted version of mesa's code but it doesn't seem to be working. The code compiles and runs, but the view (camera) doesn't move when keys are pressed as it's supposed to.

    Here is the code:
    Code :
     

    The key press code is:
    Code :
     

    Any help would be greatly appreciated!
    Thanks,
    Miranda

    [ April 04, 2005: Message edited by: miranda2112 ]

  5. #5
    Member
    Join Date
    Oct 2004
    Location
    Bangalore, India
    Posts
    44

    Re: gluLookAt equivalent for Symbian?

    Have you tried debugging to see how the code is geting executed. I would do that first to see what exactly is happening.

  6. #6
    Junior Member
    Join Date
    Feb 2005
    Posts
    11

    Re: gluLookAt equivalent for Symbian?

    I've checked the input values, and the values of my rotate and move functions and they are all correct. I think it has something to do with the lookAt function, because if I change the initial values the view doesn't change. Does anyone have a working lookAt function in Symbian?

    [ April 05, 2005: Message edited by: miranda2112 ]

  7. #7
    Member
    Join Date
    Oct 2004
    Location
    Bangalore, India
    Posts
    44

    Re: gluLookAt equivalent for Symbian?

    Code :
     

    And you use the new values every time you call lookAt.

    Hope this helps.

    P.S. :- Is your nick miranda on gamedev as well? Just curious as I corresponded with her a couple of times on gamedev.

    [ April 05, 2005: Message edited by: gautam ]

    [ April 05, 2005: Message edited by: gautam ]

  8. #8
    Junior Member
    Join Date
    Feb 2005
    Posts
    11

    Re: gluLookAt equivalent for Symbian?

    Hi,
    yep, I'm that same Miranda! I have a bad habit of posting the same question on heaps of forums...

    I'm not sure what the Move code above is for or where it goes?
    In my game I have a move function and a rotate function where lookAt is called. Is that what it is?

    Thanks,
    Miranda

Similar Threads

  1. glDrawPixels equivalent - how to load a saved buffer
    By hypertext in forum OpenGL ES general technical discussions
    Replies: 2
    Last Post: 07-04-2010, 07:40 AM
  2. equivalent to glPushAttrib()
    By crischprolch in forum OpenGL ES general technical discussions
    Replies: 4
    Last Post: 06-30-2008, 09:22 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
  •