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-06 #7

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

Conversation

sabyrrakhim06
Copy link

No description provided.

}

float getAngle(void) const {
(360 / Pif * atan(1 / m_focus));
Copy link
Contributor

Choose a reason for hiding this comment

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

return

private:
Vec3f m_target; ///< Camera target point in WCS
}
Vec3f m_pos;
Copy link
Contributor

Choose a reason for hiding this comment

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

position must not be here
setPosition() and setTarget() both affect the direction of the camera

// sin(66.5 deg) = 0.917
// cos(66.6 deg) = 0.399
Mat earthTransform = transform.rotate(Vec3f(0.399f, 0.917, 0), 360.0f / nFrames).get();
Mat moonTransform = transform.rotate(Vec3f(0, 1, 0), 13.2f / nFrames).get();
Copy link
Contributor

Choose a reason for hiding this comment

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

what is 13.2f ? how this number is calculated?

//Mat rotationAroundTheSun = Mat::eye(4, 4, CV_32FC1);
Vec3f ePivot = earth.getPivot();
std :: cout << "Earth pivot: " << ePivot << std :: endl;
Mat rotationAroundTheSun = transform.translate(ePivot).rotate(Vec3f(0, 1, 0), 1.0f / nFrames).translate(-ePivot).get();
Copy link
Contributor

Choose a reason for hiding this comment

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

What is 1.0f / nFrames? How this number was achieved?

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