Skip to content

Tmin tmax #678

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

Merged
merged 9 commits into from
Jul 27, 2020
Merged

Tmin tmax #678

merged 9 commits into from
Jul 27, 2020

Conversation

hollasch
Copy link
Collaborator

Resolves #418

hollasch added 6 commits July 21, 2020 00:43
Checker texture was yet another construct using t0 and t1 to have its
own unique meaning. Renaming constructor parameters to be more clear.
- Time parameters moved to the end, so it's a more incremental change
  from the original sphere constructor.
- Renamed the constructor time parameters from t0, t1 to time_start,
  time_end for clarity.
Using ray_tmin and ray_tmax for hit parameters.
@hollasch hollasch added this to the v3.3.0 milestone Jul 21, 2020
@hollasch hollasch requested review from trevordblack and a team July 21, 2020 08:19
@hollasch hollasch self-assigned this Jul 21, 2020
@trevordblack
Copy link
Collaborator

trevordblack commented Jul 21, 2020

WAIT. Why doesn't RestOfYourLife have moving_sphere????
It's just gone

That feels like a deliberate choice on our part, was it?

double time_start, double time_end)
:
center0(ctr0), center1(ctr1), radius(r), mat_ptr(m),
time0(time_start), time1(time_end)
Copy link
Collaborator

Choose a reason for hiding this comment

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

See earlier comments re moving_sphere member variables (time_start and time_end param names may be a bad idea)

@trevordblack
Copy link
Collaborator

This PR is absolutely filled with great changes, but see inline

@hollasch
Copy link
Collaborator Author

src/TheRestOfYourLife/moving_sphere.h was removed in ac5409b, since it is unused.

hollasch added 3 commits July 25, 2020 13:58
Move camera variables above the scene switch statement, to allow them to
also be scene-specific if the user chooses.
  - time0 to time_start
  - time1 to time_end
@trevordblack
Copy link
Collaborator

Looks good to me.

@hollasch hollasch merged commit bf44fd1 into dev-minor Jul 27, 2020
@hollasch hollasch deleted the tmin-tmax branch July 27, 2020 17:12
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