Camera offset vector for actors

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Camera offset vector for actors

Postby Marisa Kirisame » Sun Aug 19, 2018 3:40 pm

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
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Camera offset vector for actors

Postby nazakomu » Tue Aug 21, 2018 1:29 am

I second and favor this strongly. I have been waiting on this for quite some time now.
User avatar
nazakomu
apathetic
 
Joined: 30 Nov 2016
Discord: Nazakomu#2197
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Camera offset vector for actors

Postby Caligari87 » Tue Aug 21, 2018 6:54 am

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
Caligari87
I'm just here for the community
User Accounts Assistant
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Re: Camera offset vector for actors

Postby nazakomu » Tue Aug 21, 2018 8:40 am

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
nazakomu
apathetic
 
Joined: 30 Nov 2016
Discord: Nazakomu#2197
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest