Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aaburamadan
Copy link

No description provided.

Copy link
Contributor

@ereator ereator left a 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.
Copy link
Contributor

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);
Copy link
Contributor

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,
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants