Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Screen resolution bug
Re: Screen resolution bug [message #488827 is a reply to message #488826] Mon, 28 July 2014 21:18 Go to previous messageGo to previous message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma:
General (1 Star)
Omar007 wrote on Mon, 28 July 2014 19:43

Actually, what you're seeing in 3.4.4 is wrong. In 3.4.4 everything is stretched whereas in 4.X the game is actually displayed proportionally correct.
This is why the menus have black bars; the menus are created for 4:3 aspect ratios. Where 3.4.4 would just stretch the whole thing to fit, 4.X fills while maintaining the correct aspect ratio. This means black bars will be added left and right for 16:9 or 16:10 resolutions.
This also applies to ingame. 3.4.4 renders the game at a 4:3 aspect ratio and stretches that to fill the screen. 4.0 renders the game at the proper aspect ratio so no stretching occurs.

If you want to see this in action, play 3.4.4 on a 4:3 resolution and 4.X on a 16:9 or 16:10 resolution. The object sizes/shapes should be the same when you compare those.


I have no internal knowledge of the Renegade rendering code but I'm 99% sure it is something like this. TT please correct me if I'm way off Razz


Yeah, pretty much that. The ingame camera never actually set the aspect ratio to anything other than "800/600" so the horizontal FOV (which depends on the vertical FOV and aspect ratio) was incorrectly calculated. Since fixing that, I've also fixed it so that the vertical FOV is calculated instead of the horizontal one. Without that, ultra-widescreen displays (like 48:9) are rather unplayable.

ALSO: The big thing to note is that these calculations happen *before* rendering (as in, they are required to see anything at all) so incorrect values won't cause the "scaling artifacts" you'd see if it was actually rendered at a different resolution and stretched after.

[Updated on: Mon, 28 July 2014 21:23]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FPS Drop/Game Stutter at beginning of new levels
Next Topic: (Modded) C&C_Field crashdump
Goto Forum:
  


Current Time: Sun Dec 22 19:47:57 MST 2024

Total time taken to generate the page: 0.01332 seconds