dilevin / computer-graphics-shader-pipeline

Computer Graphics Assignment about the Shader Pipeline
2 stars 7 forks source link

Window zoom and orbit #70

Open elinsooon opened 4 weeks ago

elinsooon commented 4 weeks ago

I'm running into an issue when running my code where everything appears to render correctly in the glfw window, but when I try to zoom in or out, or move the view with my cursor, nothing happens. I've placed debug print statements in main, and the glfwSetCursorPosCallback and glfwSetScrollCallback functions are definitely being hit, but they don't seem to be changing the view in the window. I'm not entirely sure what to do here, the various window functions worked fine for me in the other assignments.

I'm editing this assignment in Visual Studio on Windows 11

mengf821 commented 4 weeks ago

Hello,

Are you only testing it with test-01? I don't think that test is supposed to allow you to zoom in/out and rotate.

elinsooon commented 4 weeks ago

I've tried it with both test-01 and test-02, as I've only implemented functions up until that point in the assignment, but both tests have the same behavior

mengf821 commented 4 weeks ago

When you say "the same behaviour" do you see the orbiting moon around the earth for test-02? Or do you see the exact same output for test-01 and test-02.

elinsooon commented 4 weeks ago

I mean that the zoom and cursor view movement don't work on both tests. The moon orbits and everything for test-02, and I see the expected result for test-01 as shown on the assignment page

mengf821 commented 3 weeks ago

Hello,

I'm not quite sure if this is an issue with your setup. It could be that you have applied some transformations wrong. If you think your transformations are applied correctly you can email me your source code so I can check if the same problem happens on my side. If I can zoom in and out then it might be a problem with your setup, in which case you might want to try on the school machines.