Camera offset vector for actors

Moderator: GZDoom Developers

Post Reply
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Camera offset vector for actors

Post by Marisa the Magician »

This came up in conversation recently and I think it'd be handy to have it. Basically, rather than be limited to just a view height, we could also have a vector that applies an additional offset to the camera. This would allow implementing features such as leaning, or more elaborate forms of view bob beyond a simple up/down motion.
User avatar
nazakomu
Posts: 131
Joined: Wed Nov 30, 2016 12:51 am
Graphics Processor: nVidia with Vulkan support

Re: Camera offset vector for actors

Post by nazakomu »

I second and favor this strongly. I have been waiting on this for quite some time now.
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Camera offset vector for actors

Post by Caligari87 »

Just noting I also requested this here back in January. I think Player.ViewX (left-right), and Player.ViewY (front-back) would fit best with the the current player.ViewZ (up-down) paradigm.

8-)
User avatar
nazakomu
Posts: 131
Joined: Wed Nov 30, 2016 12:51 am
Graphics Processor: nVidia with Vulkan support

Re: Camera offset vector for actors

Post by nazakomu »

I'm not entirely sure if this has much to do with what is being suggested here. While the ViewZ can currently be toyed around with, the up-and-down motion when the player lands from a jump/fall is hardcoded. The intensity of that motion seen is automatically determined by taking the player's vertical velocity and dividing it by 8. But if this is scriptified, we could manually change the intensity of it as well as altering camera movement such as the pitch or roll. But then again, I don't know if this suggestion would be taking care of this matter along the way or not.
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Camera offset vector for actors

Post by Marisa the Magician »

Already covered by ViewPos.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”