Results 1 to 3 of 3

Thread: Some serious help needed, please!!!

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2001
    Posts
    16

    Some serious help needed, please!!!

    Okay, I've been sick for the last 2 weeks and have missed my CS classes, so I have no idea whats going on, but some help would REALLY be appreciated. The assignment seems basic, but I really don't quite understand it how to implement it.

    Basically someone has already written a parser file that reads in a data file with points and vectors and such as well as a view file that reads in the following information:

    For both Orthographic and Perspective views:
    Center of View point (View Reference POint)
    View Up Direction

    and for orthographic views reads in:
    Direction of View
    Scaling Factor

    and for Perspective views reads in additionally:
    Point of View (the position of the eye, Projection reference point)
    Angle of View

    I've already written the simple code to draw each of the polygons, but how do I bring all of this information together in as little code as possible? How do I implement it using gluPerspective, glOrtho, gluLookAt, and do I need any more functions other than those?

    PLEASE HELP ME!!!

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2001
    Location
    Milwaukee WI 53211
    Posts
    29

    Re: Some serious help needed, please!!!

    Well I'm not 100% sure what needs to be done, but yes those functions would be used to do those tasks.

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2001
    Location
    Milwaukee WI 53211
    Posts
    29

    Re: Some serious help needed, please!!!

    I haven't used the Orthographic functions yet so I wont say anything about that, but for the perspective the calls are as follows:
    Point of View (xyz), Angle of View (rx ry rz), View up direction (a,b,c):
    gluLookAt(x,y,z, rx, ry, rz,a,b,c); //assuming these variables were read in from the file. Hope that helps a little.

    [This message has been edited by dpgraves (edited 03-05-2001).]

    [This message has been edited by dpgraves (edited 03-05-2001).]

Similar Threads

  1. Help needed with VAR
    By Alessandro_dup1 in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 04-04-2005, 07:22 AM
  2. help needed
    By harish.aroli in forum OpenGL: General
    Replies: 2
    Last Post: 01-25-2004, 07:13 PM
  3. help needed
    By harish.aroli in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 01-22-2004, 11:11 PM
  4. HELP NEEDED!! PLEASE HELP
    By in forum OpenGL: User Software
    Replies: 1
    Last Post: 04-15-2003, 08:03 AM
  5. Help Needed.
    By MrShoe in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-27-2000, 06:07 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
  •  
Proudly hosted by Digital Ocean