Author Topic: Widescreen/fov misalignment fix  (Read 11514 times)

0 Members and 1 Guest are viewing this topic.

Offline Murleen

  • Perspective Perfector
  • 21
Re: Widescreen/fov misalignment fix

Thanks! Glad to help :)

Now if only there were a simple way to get aspect-correct scaling on the HUD...

Will this work properly for 5:4 aspect ratio as well as 16:9 and 16:10?

Should work with pretty much any ratio - though I noticed a couple of areas not fixed by my patch (probably what Taylor had mentioned) - the skybox seems to zoom in the wider the screen gets, and the indicators around the reticle that point at targets seem to point the wrong way now.

That's a great news!
Just need to wait opengl version of softh and i ll be able to play fs2 with my 3screens   :yes:
That fix , the track ir suppport and virtual cockpit that are coming both, scp engine open his way to simulator's immersion feeling!

I had a go running over three screens - just run in windowed mode, and set the resolution in the registry. It's not very playable however, since the UI and HUD are stretched across three screens (the reticle ends up about one screen wide). I've been poking about with the dirtiest of dirty hacks to get the UI/HUD to only display on the centre monitor, but it's kinda nasty at the moment...

 
Re: Widescreen/fov misalignment fix
Doesn't fov command correct that ?
Did you try with softh?

anyway softh is not the perfect solution as long as it do not support opengl yet, but it's on it's way!

I wonder if there is any possibility to modify fso to handle triple screen by it's own?
'cause with softh, the perfomance were quite horrible... maybe because it use direct x mode  :confused:
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Bob-san

  • Wishes he was cool
  • 210
  • It's 5 minutes to midnight.
Re: Widescreen/fov misalignment fix
yeah, but do common CRT monitors support that? what would you need that ratio for anyway?
I've not seen a brand new CRT in over a decade that doesn't support it. Most CRT's (17" especially) run highest at 1280x1024. Anyways--as far as I know, the GUI and in-mission indicators and boxes always wants to stretch over the entire available screen area. Unfortunate--it would be nice if you could change that so you can dock certain elements to different parts of the screen.
NGTM-1R: Currently considering spending the rest of the day in bed cuddling.
GTSVA: With who...?
Nuke: chewbacca?
Bob-san: The Rancor.

 
Re: Widescreen/fov misalignment fix
By support, i meant if you get a distorted or stretched picture when running at 1280X1024.
Fun while it lasted.

Then bitter.

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
Re: Widescreen/fov misalignment fix
Thanks a lot Murleen!

I really need a second monitor at home too. And now it might just be a widescreen. :)
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 

Offline Admiral Nelson

  • Resurrecter of Campaigns
  • 211
  • The GTA expects that every man will do his duty.
Re: Widescreen/fov misalignment fix
Just another note to say thank you for this fix.  This will help me a great deal!  :yes:
If a man consults whether he is to fight, when he has the power in his own hands, it is certain that his opinion is against fighting.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Widescreen/fov misalignment fix
* WMCoolmon uses a widescreen too...this will come in handy.
-C

 
Re: Widescreen/fov misalignment fix
I use one too, got a 1280x800 lappy.

Itching for the build.

 
 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Widescreen/fov misalignment fix
My eyes thank you Murleen.  :yes:
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Widescreen/fov misalignment fix
Actually, nobody's commented on the best part of this fix -

It works in FRED too. :D

I'll have a windows build posted shortly.
-C

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
-C

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: Widescreen/fov misalignment fix
That seems to work marvellously... the retail stars and suns are no longer wandering around the skybox/nebula background! Huzzah!

But I want MOAR. Would it be possible to make a normal map enabled build with this fix included? I've kinda grown attached to them... Too much of a good thing I guess. :p
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 
Re: Widescreen/fov misalignment fix
Dear sweet baby jesus it's beautiful.

However with this build I have a weird pausing problem. My framerates are fine but the first thing anything loads I have horrible stuttering. I didn't have this problem using the fs2_open_3_6_10-20071007T build with the -no_glsl flag, however this build doesn't recognise that flag.

My specs:

Core 2 Duo T5450
2Gb RAM
Geforce 8600M GS using 169.09 drivers
Vista Home Premium

Also I can't see engine glows on larger ships in this build.

My command line is D:\Games\FreeSpace 2\fs2_open_C02182008.exe -mod mediavps -spec -glow -env -mipmap -no_vsync -cache_bitmaps -dualscanlines -orbradar -rearm_timer -ballistic_gauge -3dwarp -warp_flash -snd_preload  -ambient_factor 90

I installed using Turey's installer, and I have the latest media vps except adveffects as provided by the installer.
« Last Edit: February 19, 2008, 03:25:36 pm by SuperCoolAl »

 
Re: Widescreen/fov misalignment fix
Does this fix the 16:10 ship pop-in/out at the edges?

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Widescreen/fov misalignment fix
The build I released isn't based on Taylor's Xt builds, so that's almost certainly the reason for the bugs and lagging.

Does this fix the 16:10 ship pop-in/out at the edges?

It seems to, but I didn't look too carefully. I did, however, also try it at 1050x1680, and that worked fine, too. :p
-C

 

Offline n0s

  • 24
  • happy to have FS2O
Re: Widescreen/fov misalignment fix
good to hear, since i use this res :)

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Widescreen/fov misalignment fix
1280x1024 has actually been around for a long time.   The reason it exists has to do with how a frame is stored in the framebuffer.  It's more memory efficient than 1280x960, even though the latter is a proper 4:3 resolution.  1280x1024 goes back to CAD days, with big CRTs in offices and old school graphics adapters.  So it's just kind of been around since then, and considered the more standard 1280 resolution.  Using 1280x960 actually wastes memory apparently, so they figured they would just increase it.  Bugs me too, but it took a college professor's explanation to at least help me understand why it even exists.  And yeah, not only do LCDs support it, but it's been the native res for a huge chunk of LCDs made over the last 5 years or so.  I really like my Sun CRT though, 20" of any-res goodness.  It even actually shows a few 16:9 resolutions, and you can fiddle with the scaling enough to make them actually look right on the monitor, like watching a widescreen movie on a boobtube.  I'll have to pull it out and thoroughly test this on it.

The only builds that are going to have normal map/shader/GLSL/-no_glsl support, etc are going to be builds directly from Taylor until he commits his code or shares it with someone else directly.  Without it, you're basically getting builds from a codebase that hasn't had a lot of graphics changes since before September I think.  I hope a lot of the recent enhancements can make it into 3.6.10, since it seems there'll probably be another huge round of bug hunting anyway.  Mmm...FOV fix, GLSL, multi updates, new scripting...this could be a very good release indeed.

Not to mention a bunch of Bob's stuff that Taylor's been adding back in :)

Hmm, on second thought, taylor's build with -no_glsl should basically be using the same rendering path as this, so that does actually seem a bit interesting to me that they would behave so differently.  I wonder what's changed in that path between October and now, besides this fix.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Widescreen/fov misalignment fix
The changes in my Xt tree are massive, with considerable effort put into not only cleanup but also performance optimization.  Some of the features are dependent on other new features which aren't complete yet, which is why it's taking so long to get the code in SVN.  Another problem has just been the bugs in the new code.  I don't like to add bugs to SVN, so I try very hard to work out as many of those as I can find before I ever commit new code.  I actually had to drop almost half of the new code that I wrote for the Xt tree just so there was less work to do in order to get the rest into SVN quicker.

Both the programmable and fixed rendering paths have changed considerably over last year so it shouldn't come as a surprise that things likely work differently.  I also work closely with some testers who not only help me work out new features for general use but also help track down and identify various slowdowns and other performance issues.  Through that collaboration I decided to completely rip out and rewrite all of the GLSL code that was in the 10/28 build, so it's 100% new and improved now.  Many other things were changed as well, such as state changes, reducing calls and many wasted CPU cycles, as well as a reworking of the fixed rendering pipeline to better streamline it.

Oh, and the other devs do have my code.  I have even released it publicly several times (even the 10/28 build had a source code release for Linux users to build from).  The devs that ask for it get it, as Bobboau and WMCoolmon have done.  But having it and being able to deal with the considerable amount of changes (upwards of 70,000+ lines last time I looked) are two very different things.  With that amount of changed code it's generally easier for other devs to simply not deal with a code tree like that and focus only on whats in SVN.  I've had a year to slowly get used to the differences, but others don't really have that luxury, so you can't blame anyone else for not releasing builds based on my code.


And so this doesn't keep to the off-topic content...
The FOV isn't in SVN just yet, as has surely been noticed.  While testing I discovered several issues that I attributed to the FOV changes, but they turned out not to be related at all.  I actually haven't found one single issue that can seriously be attributed to the FOV patch in any way, just old issues that didn't really get noticed before.  As a result I removed those non-FOV changes so as not to screw up other stuff with a freaky bug hunt.  The only change that I've made to the original patch, other than an extremely minor performance related change, was to put it with proper Cmdline_nohtl checks so as not to mess up cases where we don't actually run with projection (it's just easier to stay with retail in that area for now, even if the FOV patch doesn't appear to hurt anything).

I missed by time window for doing the commit though, and have been working on other bugs.  I will get it committed at some point in the near future however, so sorry about the delay Murleen. :)

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Widescreen/fov misalignment fix
Great to hear Taylor, I'm glad to hear so much care is going into making the next release the Best Ever.  I'm sure I can wait a while longer if it's going to be as awesome as it sounds.  And thanks again Murleen, this is awesome all around.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays