DUE DATE:. Nov. 19, 2017. Purpose:. Practice in OpenGL.

Added on - 16 Sep 2019

  • Dissertation

    type

  • 3

    pages

  • 847

    words

  • 56

    views

  • 0

    downloads

Showing pages 1 to 1 of 3 pages
DUE DATE:Nov. 19, 2017Purpose:Practice in OpenGL.Convert your assignment 05 program to use OpenGL (You MUST use OpenGLfor this assignment).When you start your program it should automatically read a file called"cameras_06.txt". This file contains the information about cameras.Notes:"cameras_06.txt' file may include information about multiple cameras.The format of "cameras_06.txt" is different from the previousassignment.Detail format for the "cameras_05.txt" file:c// Start the definition of a new camera.icamera_name//Name of the camera. Default=""t Parallel / Perspective// Define camera type. Default= parallele <x> <y><z>//Define Eye (WC)l <x> <y><z>//Define Look at point (WC)u <x> <y><z>//Define VUP (WC)w <umin><umax><vmin><vnax><nmin><nmax>//Define View Volume(VRC). Default= -1 , 1, -1, 1, -1, 1s <xmin><ymin><xmax><ymax.//Define viewport (normalizedcoordinates). Default=0.1, 0.1, 0.9, 0.9Since using Tkinter with OpenGL is complicated, This assignment does notrequire that you create interactive buttons or menu items. All commandsmay be performed by key strokes. You will get an extra 20 points if youimplement Tkinter interactive buttons in the same window with OpenGL.Commands for this lab include:Input File Name:This command loads all the data and parameters from a text file. Hitting the"n" key should prompt the user for the name of the file. (The default valuefor the file name should be "pyramid_05.txt")Load and Display:This command should load and display the input file. Hitting the "d" keyshould load the input file and and redisplay all the viewports. Notice that thiscommand should reload the "cameras_05.txt" file and reset all the viewingcoordinates.
desklib-logo
You’re reading a preview
card-image

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Unlock This Document