Goal: to Familiarize Yourself with the Basics Ofopenglandglutby Creating a Simple Opengl

Goal: to Familiarize Yourself with the Basics Ofopenglandglutby Creating a Simple Opengl

<p> Home Work 1</p><p>Goal: To familiarize yourself with the basics of OpenGL and GLUT by creating a simple OpenGL application.</p><p>Due Date: March 24, 2010 at 15:59pm. </p><p>Note that it is a DEADLINE. You will grade as zero if you return your report and code after the deadline unless you have good reasons and let me now in advance. </p><p>Steps</p><p>1. Download and setup OpenGL and GLUT with your development environment</p><p> Getting OpenGL Set Up on Windows: http://www.videotutorialsrock.com/opengl_tutorial/get_opengl_setup_windows/text.php</p><p> Getting OpenGL Set Up on Mac OS X http://www.videotutorialsrock.com/opengl_tutorial/get_opengl_setup_mac_osx/text.php</p><p> Getting OpenGL Set Up on linux: http://www.videotutorialsrock.com/opengl_tutorial/get_opengl_setup_linux/text.php Note: if you use the computer provided by the work station of the University of Oulu, OpenGL and GLUT have been setup and the Operating system is Linux. You can login in using your account and pin code, and connect st-cn0001. Remote rendering can also be tested on Windows by installing Xming X Server from http://www.straightrunning.com/XmingNotes/, starting it and then connecting to st-cn0001 with Putty (X11 forwarding needs to be enabled!) 2. Download and run the program (http://www.ee.oulu.fi/~jiechen/Course/Hw-1/cube.zip). Note: Remember to edit the BMP image “vtr.bmp” unzipped from the package “cube.zip”, and put your name and studentID in the image. After run this program, print the screen and return the snapped image (an example is shown in the following figure).</p><p>1. Draw one of the following shapes: </p><p>Note: you should DRAW each primitive (lines or triangles) in the picture rather than treating it as a texture image.</p><p>You can also draw something other shapes you like, but your completed program should be at a minimum:</p><p>. Draw using at least two primitives (e.g. lines and triangles) . Draw using colors 2.Write up and submit your program. Your write up should contain the snapped image (it should contain your name and studentID) and any notes we should know about running your program.</p><p>Inspiration for What to Draw (except the given shapes above)</p><p>You may draw anything interesting, but here are some ideas to get you started.</p><p>. Spirographs (http://mathworld.wolfram.com/Spirograph.html) or similar functions (note the "See Also" pages too). . Fractals, drawn to a certain level, see e.g. the Koch Snowflake (http://en.wikipedia.org/wiki/Koch_snowflake) . Simple space filling curves (http://en.wikipedia.org/wiki/Space-filling_curve ) . Simple L-systems (http://en.wikipedia.org/wiki/L-system), e.g. use them to create simple trees (lines for branches, triangles for leaves) . Conway's game of life (http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) . XScreenSaver (http://www.jwz.org/xscreensaver/screenshots/) has many good examples</p><p>Grading Scale On this assignment you can receive:</p><p>. 8 points for a complete or interesting or creative assignment . 2 points if you give only the snapped image (it should contain your name and studentID) . 0 points otherwise (after deadline)</p><p>How to submit</p><p>. Send me an email, with the title CG_HW_1_X_Y, where CG and HW are the shortage for computer graphic and home work; X is your name; Y is the studentID. . Attach your snapped image and any notes we should know about running your program. . Attach your code you have created.</p><p>. My email: </p><p>FAQ</p><p>Q: Which kind of Operating system and complier can I use? A: you can use any Operating system and complier at your hand, but you need to mention the complier and Operating system in the return report.</p><p>Q: what is meant with texture image in the third section of the introduction? Does this mean one can't for example draw the star with three overlapping triangles? Or was this meant that one can't draw a picture of a star by hand and at add it into the program?</p><p>A: you can refer to the lecture slides (http://www.ee.oulu.fi/~jiechen/Course/Lecture%205- %20OpenGL-2/OpenGL_2.pdf) from Page 53-55. It shows how to draw each primitive (lines or triangles). You are not allowed generate a texture image (the image I gave to you) by commands of OpenGL. You can refer to the following website about how to generate a texture image using an existing image (http://www.nullterminator.net/gltexture.html). Although it is a good way to use OpenGL, it is beyond my goal to help you practise on how to use the primitives to draw geometric shapes. Or in other means that one can't draw a picture of a star by hand and add it into the program. It is not exact, but it is also not allowed.</p><p>Q: I just want to make the scoring clear to me. So is it really worth eight points if one just draws two shapes with different primitives and uses colors? I tested OpenGL yesterday and did the cross (or flag) with two quadrilaterals and the star with three triangles and used color for both. Is this enough for the full points or did we need to be more innovative? Do you also want to see the whole code for evaluation or does the end product only matter to you? In other words, does the .exe (and the image) suffice?</p><p>A: it is the first homework and I do not know the level of all the students. If you think the three shapes are easy, you can draw something more interesting or creative. Some ideas to get you started are shown in “Inspiration for What to Draw” (http://www.ee.oulu.fi/~jiechen/Course/Hw-1/HW1.pdf). You can also find the "How to submit" in this PDF, which tells you how to submit your works.</p><p>Honor Code</p><p>The honor code applies to all work turned in for this course. In particular, all code and documentation should be entirely your own work. You may consult with other students about high-level design strategies related to programming assignments, but you many not copy code or use the structure or organization of another students program. Said another way, you may talk with one another about your programs, but you cannot ever look at another student's code nor let another student look at your own code for any reason. You must write and debug your own code.</p><p>If you ever find yourself looking at another student's code for any reason, you are in violation of this policy (unless explicitly allowed).</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    3 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us