Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help3003


This forum is provided to promote discussion amongst students enrolled in Graphics and Animation (CITS3003).
 
Options:
RSS cloud
Jump to:

Project Jumpy Camera

11 of 306 articles shown, currently no other people reading this forum.
photo
From: ANONYMOUS
Date: Tue 7th Apr 2020, 10:14pm
Actions: 
        Login-to-reply

 

Hi, while working on solution for question 1, I have noticed that camera jumps to new position with every click. Is it something that we need to fix? It makes rotation process fairly uncomfortable. However, most of the mouse handling is in the provided header.
Thanks

Project Jumpy Camera

photo
From: ANONYMOUS
Date: Mon 13th Apr 2020, 1:41pm
Actions: 
        Login-to-reply

 

Did you ever solve this?  

I'm having a similar problem both with A and B.  I can get the rotation working but it appears the scene or object is rotated 180 degrees at the initiation of a mouse down event.

Project Jumpy Camera

photo
From: ANONYMOUS
Date: Mon 13th Apr 2020, 2:25pm
Actions: 
        Login-to-reply

 

I have this problem as well. Pretty annoying. 
Feel like it could be something to do with the matrix modifier in the setToolCallbacks...

Project Jumpy Camera

photo
From: ANONYMOUS
Date: Mon 13th Apr 2020, 4:16pm
Actions: 
        Login-to-reply

 

Same, Im using VM
Does the problem only occur in the VM?

Project Jumpy Camera

photo
From: ANONYMOUS
Date: Mon 13th Apr 2020, 5:13pm
Actions: 
        Login-to-reply

 

Nah, I'm not using a VM.  

Out of curiosity is everyone using Linux though or is this an issue on Mac also?

Project Jumpy Camera

photo
From: ANONYMOUS  O.P.
Date: Mon 13th Apr 2020, 5:14pm
Actions: 
        Login-to-reply

 

I did end up solving it. I had to change something in the header file that was provided 
I don't believe that it was intentional for us to fix. Because its not even inside the scene.cpp file
So I will happily share my solution to this issue if the unit coordinator will give me a heads up that I am allowed to share this fix. 
Personally I think it was just a versioning mismatch between the solutions (from youtube clips) and the code that we have got to work on
Took me almost 2 hours to figure that one out.. 

Project Jumpy Camera

photo
From: ANONYMOUS
Date: Mon 13th Apr 2020, 9:57pm
Actions: 
        Login-to-reply

 

Hey op do you think you can give some vague hints as to how to solve this? which headerfile did you look into?

Project Jumpy Camera

photo
From: ANONYMOUS  O.P.
Date: Mon 13th Apr 2020, 10:23pm
Actions: 
        Login-to-reply

 

ANONYMOUS wrote:

> Hey op do you think you can give some vague hints as to how to solve this? which headerfile did you look into?

Yeah, it’s in gnatidread.h file. Basically what is happening 
When you select a new tool it keeps original coordinates for some reason 
Instead of using new coordinates of the mouse. So that’s why you can sort of
see if you have done previous parts correctly after you get over that first “jump” 
But once you release the left mouse button it will reset back to “broken” coordinates
so next click and drag will be broken  

Project Jumpy Camera

photo
From: ANONYMOUS
Date: Tue 14th Apr 2020, 3:43pm
Actions: 
        Login-to-reply

 

After thoroughly investigating the gnatiread.h file, and using your hints,
I was able to apply the fix!

The camera is so wonderfully smooth now and its so much easier to control!
Thanks so much OP!

The unit coordinator should definitely allow the solution to be released.

Project Jumpy Camera

photo
From: Naveed A.
Date: Wed 15th Apr 2020, 9:15am
Actions: 
        Login-to-reply

 

Thanks guys for pointing out this issue. You are allowed to share the fix.

Regards,
Unit Coordinator.

Project Jumpy Camera

photo
From: ANONYMOUS
Date: Wed 15th Apr 2020, 11:30am
Actions: 
        Login-to-reply

 

Thanks Naveed

Here is how you apply the fix:
1. Open gnatiread.h in an editor
2. Find the activateTool() function
3. Replace “clickPrev” with “prevPos”
4. The "clickPrev" declaration can be removed
This Page


Program written by: [email protected]
Feedback welcome
Last modified: 11:27am Sep 21 2020