Add Player.ViewX and Player.ViewY

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

Moderator: GZDoom Developers

Add Player.ViewX and Player.ViewY

Postby Caligari87 » Wed Jan 03, 2018 11:06 am

We already have Player.ViewZ, it would be really nice if we could set Player.ViewX (left/right) and Player.ViewY (forward/back) for custom offsets. Obviously these would have to rotate with the player's angle. The primary reason I'm thinking about this, ViewZ can be adjusted on-the-fly which allows for easy custom movement bobbing. There are a multitude of related effects that would otherwise only be possible by actually moving the player, which isn't always optimal.

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: Add Player.ViewX and Player.ViewY

Postby RaveYard » Wed Jan 03, 2018 1:49 pm

This would be really handy for leaning over corners.
RaveYard
 
Joined: 12 Apr 2013

Re: Add Player.ViewX and Player.ViewY

Postby Caligari87 » Wed Jan 03, 2018 7:20 pm

Indeed, that's one of the things I want to use it for. Without this, such a feature would involve spawning separate hitboxes for the player and making their collision very narrow. This way, it naturally works to keep the player's normal bounding box partially hidden while still allowing sight around corners.

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: Add Player.ViewX and Player.ViewY

Postby nazakomu » Wed Jan 03, 2018 9:33 pm

If I recall correctly, this wasn't possible in software and the implementation is A_Roll (which doesn't change the player's position), and that is exclusively for the OpenGL renderer.
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: Add Player.ViewX and Player.ViewY

Postby Rachael » Wed Jan 03, 2018 10:16 pm

That's still the case when using the classic software renderer mode, but the softpoly renderer can handle A_Roll. Nevertheless, supporting A_Roll or not has nothing to do with exporting Player.ViewX/Y ;)
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
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: Add Player.ViewX and Player.ViewY

Postby nazakomu » Thu Jan 04, 2018 5:43 am

Rachael wrote:That's still the case when using the classic software renderer mode


This is interesting. I know Duke 3D tilts the camera at the player's death. And there was also a camera feature exclusive for it as well, which allowed you to look to your left or your right. Is there something that BUILD can do with the camera that just isn't ever going to be possible whatsoever for the software renderer to do on QZDoom?
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: Add Player.ViewX and Player.ViewY

Postby Rachael » Thu Jan 04, 2018 6:31 am

I think Duke cheats and simply draws the screen first and then rotates the buffer, itself. There are no plans to do that in QZDoom at this time, that I know of.
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
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 0 guests