Adding triangle mesh support for my Cuda Renderer!

Source: Internet
Author: User

During this time, I became familiar with Cuda and added the triangle mesh model for my experiment Renderer,

We initially transplanted the original KD-tree to the GPU, but the structure of the KD-tree is still in the CPU.

From simple smallpt (all of which are sphere) to the present,ProgramThe structure has been modified several times. Currently

We still haven't found a good model. Cuda needs to inline all call functions, which causes me to only

Take a big kernel that contains all the required files, and the compilation speed is also slow.

For the lighting system and material system, the switch-case method is used for expansion and comparison.

Excuse me, which of the following experts knows better Cuda models!

 

MACHINE: pd820 + gts250

Speed: 1.5fps

Max-depth: 9

Total: 800spp

As an implementation that has not been optimized, the speed is acceptable.

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.