dilevin / computer-graphics-bounding-volume-hierarchy

Computer Graphics Assignment about Bounding Volume Hierarchies
6 stars 5 forks source link

Error while trying to test the code #70

Open tl07172 opened 11 months ago

tl07172 commented 11 months ago

Hi I have just finished the first seven cpp files according to the order in the Readme file, but when I try to run the command “ ./rays ../data/rubber-ducky.obj” under /build directory to test my code I keep getting a lot of errors. Am I supposed to only test with this command once I finished all the files? Or did I make a mistake somewhere? Thanks in advance.

Zhecheng-Wang commented 11 months ago

If you implemented the first seven files then it should run the rays example.

What are the errors?

tl07172 commented 11 months ago

@Zhecheng-Wang It is showing me this whenever I run the command: image

Zhecheng-Wang commented 11 months ago

It seems you are using the Windows CMD terminal. As the error suggests, there isn't an executable called ./rays. Check if it is built, and double-check the name of the built executable.

tl07172 commented 11 months ago

Resolved, thank you so much.

lyfuuoo commented 11 months ago

Would you mind to share how to tackle this problem? thanks

lyfuuoo commented 11 months ago

Did you change anything in your ray.cpp? I tried to use the path of ray.exe and object to execute it, but I got results like it has multiple errors in the tree_hit algorithm. I debugged a lot and does not seem to find problems on my tree algorithm. So I wanna check if I made wrong here. Thanks

tl07172 commented 11 months ago

@lyfuuoo I just did not realize that the "rays.exe" is outputted to /build/Debug by default. So I changed the coomand to " ./Debug/rays ../data/rubber-ducky.obj” which works for me, and I did not modify ray.cpp.

But it looks like your issue is casued by the algorithm so I am not sure what really happened in your case.

lyfuuoo commented 11 months ago

Thanks!