1. Calculate the plane coefficients (A,B,C and D) of 3 points in a plane defined by P1, P2 and P3, and determine if the point P4 is behind or in front of the polygon surface contained within that plane:
P1 = (10,-20,40);
P2 = (30,3,18);
P3 = (-5,-10,25);
P4 = (-10,12,-19);
Be sure to show your work. Explain why determining if Point P4 is behind or in front of the polygon surface relevant to computer graphics applications.
2. Given the following Shape, use the odd even rule to determine if points a,b,c,d are inside or outside of the object.
![549_CMSC405.png](https://secure.tutorsglobe.com/CMSImages/549_CMSC405.png)
Be sure to describe your method and show your "arrows" as needed.
3. Using Visual C++ and your OpenGL configured environment, write an application that displays a "unique" graphical scene that you designed and coded for this course. What you put in your graphical scene is up to you. But it needs to be displayed in a 800 x 600 window and include multiple shapes and include multiple text elements. You need to use Graphic output primitives as discussed in class up till this point. For example, you could create a 2D house with windows, a door and a chimney and label your house "My Dream home". You could also generate a scene with animals, fish, flowers or other objects you want to create based on the primitives. I recommend you use "Graph" paper or a model of some type as your design to make it easier to set your coordinates. Have fun and be creative.
Deliverables:
You should submit a word document that includes the results for the first 2 questions of this assignment along with a screen capture of the output of you running your Visual C++ code. You should also submit your C++ source code and header file. You should name your word assignment "yournamehw2.doc" (or .docx). You should name your C++ source code yournamehw2.cpp. Be sure to submit your homework in the WebTycho assignments folder no later than the due date listed in the syllabus.