Results 1 to 6 of 6

Thread: Few quick questions

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2011
    Posts
    21

    Few quick questions

    I've got what I can call the beginnings of the 3D game in this java binding of OpenGL LWJGL. I've made a simple scene with a few items in it, one of which is the character. How it works now is that the camera is static and stays in the same place while I press keys, which changes the character's x and z coordinates and then re-renders the screen. I'm not really sure how I'd go about making the camera move with the actor. If I'm completely going down the wrong path I'd appreciate any help or guidance you could offer.

    EDIT: also, do you also know how to stop thing beyond a certain perimeter from rendering. I know it's done through a clipping volume. Have I already done this? Because it doesn't seem to stop after the cut off point.

    Thanks in advance!

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2011
    Posts
    21

    Re: Few quick questions

    I've included the source just so you can see what I've done so far.

  3. #3
    Senior Member OpenGL Pro BionicBytes's Avatar
    Join Date
    Mar 2009
    Location
    UK, London
    Posts
    1,161

    Re: Few quick questions

    : also, do you also know how to stop thing beyond a certain perimeter from rendering. I know it's done through a clipping volume. Have I already done this? Because it doesn't seem to stop after the cut off point.
    Try enabling glScissorTest. Might be what you need.

  4. #4
    Junior Member Newbie
    Join Date
    Nov 2011
    Posts
    21

    Re: Few quick questions

    I'll have a read up on that function, thanks! Do you know how I can move the camera? Also, whether I should be.

  5. #5
    Senior Member OpenGL Pro BionicBytes's Avatar
    Join Date
    Mar 2009
    Location
    UK, London
    Posts
    1,161

    Re: Few quick questions

    By building a modelview matrix. Google the functionality of gluLookat and build some matricies like that function.

  6. #6
    Junior Member Newbie
    Join Date
    Nov 2011
    Posts
    21

    Re: Few quick questions

    I've heard about gluLookAt and forgive me for my ignorance, but would I be able to achieve the same or similar effects by manipulating the scene using glRotate, glTranslate, etc?

Similar Threads

  1. A few quick questions from a newbie
    By omgi in forum OpenCL
    Replies: 3
    Last Post: 07-06-2011, 04:43 PM
  2. 4 Quick questions
    By Berserk in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 05-23-2007, 12:21 PM
  3. quick question
    By ArchMiffo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-16-2002, 01:48 PM
  4. Quick question
    By in forum OpenGL: User Software
    Replies: 0
    Last Post: 11-01-2000, 03:13 AM
  5. I NEED MENTAL HELP!!!....2 Quick newbie questions...
    By Y-T in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-15-2000, 05:47 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
  •  
Proudly hosted by Digital Ocean