Skip to content
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

Intersect a ray with triangulate using gpu #203

Open
jieeeeeeeeeee opened this issue Sep 18, 2019 · 2 comments
Open

Intersect a ray with triangulate using gpu #203

jieeeeeeeeeee opened this issue Sep 18, 2019 · 2 comments

Comments

@jieeeeeeeeeee
Copy link

jieeeeeeeeeee commented Sep 18, 2019

Hello, i am a student interesting in ray intersection. I desires to know how can i intersect a ray with triangulate using gpu. Is there any code abort ray intersection in this project?

@Agorath
Copy link

Agorath commented Sep 18, 2019

Hi, the code you are looking for is in the OpenCL kernels (.cl files) in the following subdirectory:
RadeonRays_SDK/RadeonRays/src/kernels/CL/%.cl
You will find the code for the ray triangle intersection in common.cl in the function:
INLINE float fast_intersect_triangle(ray r, float3 v1, float3 v2, float3 v3, float t_max)
The other files (intersect_%.cl) contain the code used for the traversal of the different bounding volume hierarchy variants supported by RadeonRays.
One word of warning though: At the moment it looks like AMD likely abandoned this project. So you probably won't get any "official" responses/support from AMD.

@jieeeeeeeeeee
Copy link
Author

I appreciate your help. Thank you so much.

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

No branches or pull requests

2 participants