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

eyden-tracer-01 (makeup) #7

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

Conversation

sabyrrakhim06
Copy link

My environmental camera was not implemented correctly, but I did my best.

@@ -18,7 +18,8 @@ class IPrim
* @brief Constructor
*/
IPrim(void) = default;
IPrim(const IPrim&) = delete;
// IPrim(const IPrim&) = delete;
IPrim(const IPrim&) = default;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not modify this file...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, professor, but it was giving me an error that function I was referencing does not exist.

@@ -31,7 +31,28 @@ class CPrimTriangle : public IPrim
virtual bool intersect(Ray& ray) const override
{
// --- PUT YOUR CODE HERE ---
return false;
Vec3f n_ab = (m_b - ray.org).cross(m_a - ray.org);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suspicion for plagiarism

// --- IMPLEMENT class CPrimDisc ---
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suspicion for plagiarism

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just corrected the typo.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant the whole implementation for disc primitive

@@ -3,5 +3,37 @@
#include "ICamera.h"
#include "ray.h"

// --- IMPLENET class CCameraEnvironmental ---
// --- IMPLEMENT class CCameraEnvironmental ---
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suspicion for plagiarism

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