Front to back and back to front two ray casting methods

Source: Internet
Author: User
I have been wondering why there are differences in computing between the two. Today I finally figured it out.
Back to front: it is a process from Ray's perspective from the background. Because its formula should be:
Li = QI + (1-ai) * Li + 1, Qi is the color and Alpha at this time.
Why? Because Qi is the existing energy, and Li + 1 is the energy that can be sent out, continue to advance.
Front to back is based on the viewpoint, because the start is the energy of 0.
Li + 1 = Qi (1-A I + 1) + Li + 1 * Ai + 1
Why? Because Li + 1 is out, we need to calculate the amount of energy that qi can emit at this time. All the energy that uses qI * (1-ai + 1) plus Li + 1 itself

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.