Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Monder

Simple Ray tracing

This topic is 5237 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been reading the stuff on ray tracing here. I understand how it all works but I was wondering how you generate the primary rays in the first place? Do you just do several per pixel that fire in certain directions or is it something more complicated? [edited by - Monder on March 21, 2004 11:32:57 AM]

Share this post


Link to post
Share on other sites
Advertisement

/o
/|,o
c¯ |-o
¯\|`o
\o


You can imagine the | being the screen. Just fire w*h pixels.


--
You're Welcome,
Rick Wong

- sitting in his chair doing the most time-consuming thing..

[edited by - Pipo DeClown on March 21, 2004 12:52:10 PM]

Share this post


Link to post
Share on other sites
No, the rays should not be perpendicular to the screen but instead originate from the same eyepoint or center (denoted c in Pipo''s drawing).

Share this post


Link to post
Share on other sites
a ray is taken from the viewer''s eye, (which is an estimated position using calculated field of view), projected to each pixel on the screen, and then into the world. This is not always enough detail, sometimes multiple rays are traced for each pixel and then averaged together.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!