[g2.1.pre-496] New pixel aspect doesn't respect aiming

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Revilution
Posts: 28
Joined: Sat Feb 26, 2011 6:23
Location: In The Ninth Dimension

[g2.1.pre-496] New pixel aspect doesn't respect aiming

Post by Revilution »

I know you can't debug from a screenshot as you always say for everyone who comes here and only post screenshots, however this seems to be a constant bug with vertical aiming.
Spoiler:
Looks like the hitscan attacks doesn't follows the aim anymore in the new pixel aspect adjusment in the vertical axis, also happens to projectile weapons.

I have nothing to show other than this since it seems to happen all the time, just play the vanilla Doom and see it happen with every weapon, the aiming gots more uncentralized when looking around 45º up or down.
Powered By:
Image
Image
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: [g2.1.pre-496] New pixel aspect doesn't respect aiming

Post by Enjay »

[edit]
Forget everything I wrote earlier (spoilered). I misunderstood. I thought that you were saying the effect happens when you enable different pixel ratios as a user option. I now see that the problem manifests in an unaltered game (I tested in the tall area of E2M1 near the start as I think you did).

A screenshot of the effect when aiming down.
[spoiler]Image[/spoiler]


Also, I tested using a player class with modified viewheight and attack z offset as I initially suggested and the problem was still there. So that's not it.
Spoiler: nonsense
User avatar
Revilution
Posts: 28
Joined: Sat Feb 26, 2011 6:23
Location: In The Ninth Dimension

Re: [g2.1.pre-496] New pixel aspect doesn't respect aiming

Post by Revilution »

As well in the last characters in Hunter's Moon, they have different view and attack Z offsets due to have different sizes, seems to happen the same problem on them anyway.

The point is the angle of aiming, i know that where the player fires it's attack actually differs from where he is seeing the scene, however the attack angle always respected the angle of the view, now it looks like isn't doing anymore due to the new aspect still being calculated as if it was the old one yet?
Powered By:
Image
Image
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: [g2.1.pre-496] New pixel aspect doesn't respect aiming

Post by Enjay »

Yes, I edited my post (presumably while you were typing). My initial theory was nonsense.


As an aside, I'm trying to figure out how to use the new option in MAPINFO. Using:

Code: Select all

pixelstretch = 1.0
in a map definition gives me:

Code: Select all

Unknown property 'pixelstretch' found in map definition
I also tried it in the gameinfo section and while this didn't give me an error, I couldn't see any obvious difference (although that was just a quick test before posting).
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: [g2.1.pre-496] New pixel aspect doesn't respect aiming

Post by Graf Zahl »

I'll have to check - but it looks like the pitch angle also needs to be adjusted for the stretching.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: [g2.1.pre-496] New pixel aspect doesn't respect aiming

Post by Graf Zahl »

fixed
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: [g2.1.pre-496] New pixel aspect doesn't respect aiming

Post by Enjay »

Thank you.

I've also figured out that the MAPINFO command is "pixelratio". Been messing with it a bit and I think it will be very useful in some circumstances. Much to my surprise, increased values may also be quite useful. 1.5, for example, had quite a pleasing effect although it did make certain wall patterns and so on look a bit too stretched vertically.


From some points of view, it's a shame that models and pixel ratio are handled separately. This means that changing pixel ratio in an existing mod (or even changing your mind about what pixel ratio to use while developing a project) where models have already been matched to the traditional 1.2 ratio architecture (eg model fence posts matching up with the height of texture fences, invisible sectors being used to provide collision information for models etc) all need to be reworked. Just by way of a test, I gave my "Gene-Tech" mod a pixel ratio of 1.0 and the enemies all looked too tall, the items sitting on model structures (such as the fork lift trucks) were sinking in to the body of the trucks etc etc.


Of course, seeing as how models have always been 1:1 versus the rest of the game being 1:1.2, I guess they need to remain separate. If the option had been available when I was making "Gene-Tech" I would probably have used it from the outset and therefore none of the above things would have been issues. So, I guess it will be easiest to use for new projects rather than converting older ones.
User avatar
Rachael
Developer
Developer
Posts: 3651
Joined: Sat May 13, 2006 10:30

Re: [g2.1.pre-496] New pixel aspect doesn't respect aiming

Post by Rachael »

So Pixelratio is in the game? I wonder how long this has been. I know we could've used it a few years back with one of Rex's projects.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: [g2.1.pre-496] New pixel aspect doesn't respect aiming

Post by Enjay »

Eruanna wrote:So Pixelratio is in the game? I wonder how long this has been.
Just added yesterday.
User avatar
Rachael
Developer
Developer
Posts: 3651
Joined: Sat May 13, 2006 10:30

Re: [g2.1.pre-496] New pixel aspect doesn't respect aiming

Post by Rachael »

Oh, I see, thanks.
Locked

Return to “Closed Bugs”