-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assignment 4 submission #2
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is very difficult to check when you resubmit the whole files and all the files!
@@ -2,7 +2,7 @@ | |||
**Dealine**: 12.11.2020 | |||
|
|||
Please put your name here: | |||
**Name:** ....... | |||
**Name:** Adnan Abu Ramadan | |||
## Problem 1 | |||
### Sphere Solid (Points 25) | |||
In this assignment we will continue working with _compound objects_: solids. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explanations in problem 2 ?
float phi = atan2(hitPoint.val[2], hitPoint.val[0]); // [-Pif; Pif] | ||
if (isnan(phi)) phi = 0; | ||
|
||
return Vec2f((Pif + phi) / (2 * Pif), theta / Pif); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The texture of the earth appears to be mirrored
for (int h = 0; h < height_segments - 1; h++) | ||
{ | ||
float h1 = static_cast<float>(h + 1) / height_segments;// Next height: [1/height_segments; 1] | ||
add(std::make_shared<CSolidQuad>(pShader, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quads are not needed for this assignment!
No description provided.