Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8859337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:02:09+00:00 2026-06-14T15:02:09+00:00

Ray refraction and how to keep track of the environment type? Should my Ray

  • 0

Ray refraction and how to keep track of the environment type?

Should my Ray object know about the environment it is in? For example is it
air, glass, or else? By knowing the environment, i mean knowing the refraction index.
That way, when it hits a surface I can get the hit surface refraction index, and I can
compute the refracted ray.

Any suggestions how to manage this whole thing, the ray moving through different environments?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:02:10+00:00Added an answer on June 14, 2026 at 3:02 pm

    The question is really about code design finding the simplest answer for your needs. You might find this answer useful,

    How to deal with refraction when the rays start inside of a nested object

    It solves the same problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I'm trying to do is cast a ray from my camera. I know
I'm attempting ray casting an octree on the CPU (I know the GPU is
I want to know if a ray from an arbitrary point will strike a
The book iOS6 by Tutorials by Ray Wenderlich has a very nice chapter about
Im following Ray Wenderlich tutorial for instruments , but I don't know why the
data Ray = Ray Vector Vector or type Ray = (Vector, Vector) Which is
Cathode Ray Tube? C RunTime? Neither makes much sense to me; something else entirely?
So in my ray tracer that I'm building I've gotten refraction to work for
I'm doing ray casting in the fragment shader. I can think of a couple
I’ve completely stuck with camera in ray tracing. Please, take a look at my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.