Here is a post I made to last year's blog that might help you review how 2D transformations work. I recommend ensuring you have a very good grasp of this now so that you aren't scrambling closer to the final exam.
Before moving on to 3D transformations, you should make sure you have a
good handle on the same transformations in 2D. Earlier this year I had
made an applet that lets you play around with the basic transformation
matrices - it might be useful to you when reviewing how it all works.
In this applet, an arrow is transformed according to the matrices along
the bottom. You can imagine the points in the arrow being in a matrix
to the far right, as would be the case when working these things out on
paper. The right-most matrix is applied first, then the next one to its
left, and so on.
You can rearrange the matrices to understand exactly how order matters.
You can also play around with the raw transformation values and see how
the matrices are updated.
Press play to see the animation, and stop to reset it and allow you to make further changes.
Go to the applet now...
Wednesday, November 7, 2012
Monday, October 15, 2012
Comments on Assignments 2 and 3
Assignment 2 was well done by everyone who submitted it. Assignment 3 had some more issues, which seemed more like a matter of students rushing to get it done than anything else (i.e., sloppiness). But it was fairly well done, too.
A few things to remember for future assignments:
A few things to remember for future assignments:
- PLEASE do these changes to make sure your code compiles on all computers. Marks will be taken off in the future if your code does not compile for these reasons. Ask if you need help.
- Also, clear your warnings. I know they aren't always made by you, but when I see a list of warnings, how will I know from a glance which are yours? It's such a good habit that I will be taking marks off in the future for having warnings.
- Make sure you read the assignment carefully, and put code in the functions it wants you to put it in. I wasn't checking for that this time around, but will in the future, and will take marks off for not following the directions.
Thursday, October 11, 2012
Office Hours Friday October 12
I will be on campus tomorrow afternoon, most likely in my lab for most of the time. If you would like to visit me in person, please email ahead to make sure I will be there. I should be on campus from 1pm - 3:30pm at least.
As usual, feel free to email for help instead!
As usual, feel free to email for help instead!
Sunday, October 7, 2012
Making Assignment 2 Compile
A few of you have had issues making Assignment 2 compile. There are a couple of steps to making it work, as follow. (You may need to follow these instructions in addition to this.)
First, you will notice there are issues with some include header files. The include that has a big long path can just be commented out - the needed header file is already included in the correct way after that line. You can just remove the include for dxerr9.h as it is not needed.
Second, you'll see issues with the house class. The files you need exist, but they are not included in the project properly. If you look under "External Dependencies" in the Solution Explorer, you will find House.h. You can right click that file and add it to the project. You'll also need the source file, though. To get that, right click on the "Source Files" folder in the Solution Explorer, then Add, Existing Item... You'll find House.cpp in the first folder that pops up.
At this point everything should be compiling. Leave a comment or email me if you are still having issues.
First, you will notice there are issues with some include header files. The include that has a big long path can just be commented out - the needed header file is already included in the correct way after that line. You can just remove the include for dxerr9.h as it is not needed.
Second, you'll see issues with the house class. The files you need exist, but they are not included in the project properly. If you look under "External Dependencies" in the Solution Explorer, you will find House.h. You can right click that file and add it to the project. You'll also need the source file, though. To get that, right click on the "Source Files" folder in the Solution Explorer, then Add, Existing Item... You'll find House.cpp in the first folder that pops up.
At this point everything should be compiling. Leave a comment or email me if you are still having issues.
Sunday, September 30, 2012
Upcoming Office Hours
Hi all! I don't see office hours on the website yet, and things are a bit wonky the next couple of weeks anyway, so I wanted to let you know the current plans.
Oct 1-5: I am away at a conference all week, and won't have any office hours. However, I can answer emails, hopefully within a day or two max.
Oct 5-9: This week I have to go to a conference in Montreal, but only on Wednesday. I'll probably have office hours on Friday instead of Wednesday. You can definitely email and expect a quick response.
Rest of the term: My official office hours are going to be Wednesdays 1:00-3:30 in my lab (5317 HP). I recommend emailing to set up a time to meet me in case I can spread you out and give you individual attention. I will always be available for help via email and can usually answer within a day (often much less).
Oct 1-5: I am away at a conference all week, and won't have any office hours. However, I can answer emails, hopefully within a day or two max.
Oct 5-9: This week I have to go to a conference in Montreal, but only on Wednesday. I'll probably have office hours on Friday instead of Wednesday. You can definitely email and expect a quick response.
Rest of the term: My official office hours are going to be Wednesdays 1:00-3:30 in my lab (5317 HP). I recommend emailing to set up a time to meet me in case I can spread you out and give you individual attention. I will always be available for help via email and can usually answer within a day (often much less).
Wednesday, September 26, 2012
Resources
Here are some resources that might be useful to you now or later in the term...
- Changes to make in project properties to ensure the project builds everywhere
- Open Asset Import Library (mentioned in class)
- Two-Kings DirectX Tutorials
- Toymaker DirectX Tutorials/Information
- 2D Transformations Applet
- Diffuse, Ambient and Specular Lighting Applet
Monday, September 24, 2012
Assignment 1 Marking Scheme and Comments
Assignment 1 has now been graded in WebcT. Here are some comments and how I assigned grades and some suggestions for the future.
Here is the marking scheme I used:
In general, I want to recommend that everyone clear their warnings, even if you didn't produce them. It's a good software engineering practice to do this because a bunch of trivial warnings can obscure an important one that comes up later. I'd like to see no warnings when I compile your project, and may take marks off for having warnings in the future.
If your project folder is big, you may not have deleted the build files before zipping it. Please make sure you keep the size down by removing the build files before submitting.
Finally, please follow the advice from this post from last year to ensure I don't get build errors - I might be inclined to take marks off for having to fix it in the future. ;)
Here is the marking scheme I used:
- In Part 1:
- Worth 40 marks
- -10 if the mouse coordinates are wrong (e.g. don't start from 0,0 in the top left)
- In Part 2:
- Worth 40 marks
- -10 if the mouse coordinates are wrong (but won't take these marks off twice if also wrong in Part 1)
- -20 if both windows work with the right mouse button (instead of one working with the left)
- In Part 3:
- Worth 20 marks
- -20 if it does not appear to be implemented correctly, which includes any window closing even after saying 'no'
- -10 if you applied this part to Part 1 only, since it would be harder to do for Part 2 with the two windows
- If you applied this part to Part 2 only, but it worked right, that's ok since it's the harder part
In general, I want to recommend that everyone clear their warnings, even if you didn't produce them. It's a good software engineering practice to do this because a bunch of trivial warnings can obscure an important one that comes up later. I'd like to see no warnings when I compile your project, and may take marks off for having warnings in the future.
If your project folder is big, you may not have deleted the build files before zipping it. Please make sure you keep the size down by removing the build files before submitting.
Finally, please follow the advice from this post from last year to ensure I don't get build errors - I might be inclined to take marks off for having to fix it in the future. ;)
Subscribe to:
Posts (Atom)