Hi mates!
I cannot figure out how to lock a camera at the horizon level, no matter how its parent is changing turnAngle/pitchAngle/rollAngle. It's a camera on a moving ship and it needs to be locked at the horizon, the camera is a child of the ship.
How do I force a global pitchAngle := 0 on the camera?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, not clear can you explain better Your Camera is a a child of your chip, i 'm right ? so choose a second camera. And choose the view you want from outside or inside the ship.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yeah, I need a stabilizer function to my optics on top of the ship. A video says more than 1000 * 25fps * 60sec words: https://www.youtube.com/watch?v=Wy7JH7-RErQ&feature=youtu.be
As you see, I need to lock the camera at the horizon, and my current code is a bit shaky. I think there
should be a simple setVector to keep the camera looking at the horizon but still be movable vertically.
Any ideas?
Last edit: Daniel 2017-07-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello again why don't you detach the camera from your boat and after update the position at the same time and or depending of the position of the boat. The camera will be totally independant like this. You'll can set position angle.. like you need. It will be the quick trick i hope ;)
Last edit: Jerome.D (BeanzMaster) 2017-07-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Jerome!
Thank you again for the help!
The reason I have the camera as a child is because I need the realtive bearing for aiming, in other words the cameras turnAngle compared to the ships heading.
I will try to detach the camera and see if I can manage!
Cheers!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Daniel, Ok i understand so it's normal behaviours so, if you know your bearing or aiming angle you can easly adjust Camera's RollAngle/PichAngle with a sub ? no ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi mates!
I cannot figure out how to lock a camera at the horizon level, no matter how its parent is changing turnAngle/pitchAngle/rollAngle. It's a camera on a moving ship and it needs to be locked at the horizon, the camera is a child of the ship.
How do I force a global pitchAngle := 0 on the camera?
Thanks!
Hi, not clear can you explain better Your Camera is a a child of your chip, i 'm right ? so choose a second camera. And choose the view you want from outside or inside the ship.
Yeah, I need a stabilizer function to my optics on top of the ship. A video says more than 1000 * 25fps * 60sec words: https://www.youtube.com/watch?v=Wy7JH7-RErQ&feature=youtu.be
As you see, I need to lock the camera at the horizon, and my current code is a bit shaky. I think there
should be a simple setVector to keep the camera looking at the horizon but still be movable vertically.
Any ideas?
Last edit: Daniel 2017-07-05
Hello again why don't you detach the camera from your boat and after update the position at the same time and or depending of the position of the boat. The camera will be totally independant like this. You'll can set position angle.. like you need. It will be the quick trick i hope ;)
Last edit: Jerome.D (BeanzMaster) 2017-07-05
Hi Jerome!
Thank you again for the help!
The reason I have the camera as a child is because I need the realtive bearing for aiming, in other words the cameras turnAngle compared to the ships heading.
I will try to detach the camera and see if I can manage!
Cheers!
Hi Daniel, Ok i understand so it's normal behaviours so, if you know your bearing or aiming angle you can easly adjust Camera's RollAngle/PichAngle with a sub ? no ?