-
Notifications
You must be signed in to change notification settings - Fork 2
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
Unable to Render After Successfully Loading Volume #2
Comments
Hi, Thanks for your questions! This is a project I did many years ago. The last time I tried running it was nearly a year ago, and I didn't find any problems. So, before I can reproduce this issue, I may need to know your Linux distro, OpenGL & CUDA versions. Also, could you help me check the line you mentioned, like printing the values of |
Many Thanks for your prompt response. Here is more information about my environment: The package versions do not exactly match the test environment in readme. Maybe I should try to downgrade opengl or cuda version in this case. I print out the values of __host__ __device__ Ray Camera::generateRay(float dx, float dy) const
{
float half_fov = vertical_fov / 2;
float image_aspect_ratio = film.getAspectRatio();
float im_plane_w = tan(half_fov * PI / 180) * image_aspect_ratio;
float im_plane_h = tan(half_fov * PI / 180);
float x_cam = (2 * (dx / film.resolution.x()) - 1) * im_plane_w;
float y_cam = (2 * (dy / film.resolution.y()) - 1) * im_plane_h;
Eigen::Vector3f dir_camera(x_cam, y_cam, -1.0);
Eigen::Matrix3f view;
view.col(0) << right;
view.col(1) << up;
view.col(2) << forward;
Eigen::Vector3f dir_world = (view * dir_camera).normalized();
// print out all dir_world
printf("dir_world: %f %f %f\n", dir_world.x(), dir_world.y(), dir_world.z());
return Ray(position, dir_world);
} Thanks again for your help. |
Great to know you've resolved this issue. Probably it is due to the incompatibility of Eigen and the latest Ubuntu / CUDA. |
Thanks for your amazing implementation.
I tried to run the code. However, I encountered an issue: the rendering result is always empty even after successfully loading the volume.
The terminal output:
The GUI output:
I found that this issue may be caused by this line;, the dir_world may output [0,0,0] and initialized ray direction may be [nan,nan,nan], which result in wrong rendering results.
I would greatly appreciate any guidance or suggestions to resolve this issue. Thank you for your time in advance!
The text was updated successfully, but these errors were encountered: