-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
float getAngle(void) const { | ||
(360 / Pif * atan(1 / m_focus)); |
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.
return
private: | ||
Vec3f m_target; ///< Camera target point in WCS | ||
} | ||
Vec3f m_pos; |
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.
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(); |
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.
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(); |
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.
What is 1.0f / nFrames? How this number was achieved?
No description provided.