Author Topic: Renderer status  (Read 2546 times)

0 Members and 1 Guest are viewing this topic.

Offline Scuddie

  • gb2/b/
  • 28
  • I will never leave.
I'm curious what is going on with D3D8 and OpenGL as far as progress and dependability.  The reason I ask is because the last time I heard anything official about either of these was back in the 3.6 days, where OpenGL was pushing the limits of everybody's video, while D3D8 was having real bad memory leaks.  Since then, much has happened, but what has as far as I know is unknown.

What I see now is very different from back in the 3.6 days.  With everything turned on, OpenGL runs at 120FPS at 1024x768x32 with 4x AA and 4X AF.  Meanwhile, D3D8 seems to run flawlessly, although bringing my system to it's knees with the same setup.  Also, env mapping doesn't seem to work on either renderer.

So basicly what I am asking is what is the progress on OpenGL as compared to D3D8?
Bunny stole my signature :(.

Sorry boobies.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
OpenGL is missing envmapping so that's why that doesn't work.  Other than that most everything else works.  OpenGL is the only renderer that Linux and OSX use so I've spent a lot of time working on it, performance testing and optimizing as best I can.  The new render-to-bitmap functions don't work in OpenGL yet as that is platform specific and I haven't had time to come up with a good method to do it three ways (Windows, Linux, OSX) that doesn't require a ton of code for each.  Various rendering problems with 2d graphics in 3d space have been fixed as well.  That was most noticeable in nebula missions when -2d_poof was used but would show up when us coders made mistakes as well.

I stay away from the D3D code as much possible since it's not something I know and as a Linux user, not something I use, so I can't reliably comment on changes/features there.

 

Offline Inquisitor

I'm not sure I would be sad if D3D went away entirely :)

Oops, did I say that out loud?
No signature.

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
Careful, you might anger Bob ;)
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 
Well... I'm a OGL-"Fan", too...
But I think I am and will be very glad if /when D3D and OpenGL have the same features...

 

Offline Scuddie

  • gb2/b/
  • 28
  • I will never leave.
I'm also a pretty big OpenGL fan, which is why I have the question.  I have no idea why OpenGL is so much faster than D3D8, but I bet it might have something to do with the draw distance.  For example, I get "polygon rip" in OpenGL that is dependant upon the distance of the object from the view.  The farther away it is, the thicker the line, or "rip".  This rip has the appearance of a textured, but non-shaded polygon; meaning whatever effects the rendering engine is supposed to pass upon that polygon (including obstruction from other polygons), has no effect within the thickness of the rip.  The way it passes thru is somewhat mysterious.  It seems to rotate, but not hub of a wheel, more like the face of a wheel.  Ugh, just trying to explain it gives me a headache.  I don't know how to describe it without making myself confused.  It's not a VSync thing either.  Oh well, maybe someone else can explain what I mean...

EDIT:  Oh yeah, this doesn't happen in D3D.
Bunny stole my signature :(.

Sorry boobies.

 

Offline Ransom

  • M. Night Russel
  • 210
  • It will not wait.
    • Rate of Injury
I like OpenGL, the problem is it seems to crash during loading for random missions, even though the mission loads fine in D3D. It also seems to run a lot slower and have various disturbing bugs that D3D doesn't.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
@Scuddie: Got a screenshot?  And what build are you using (cmdline too)?

 

Offline Scuddie

  • gb2/b/
  • 28
  • I will never leave.
Shot 1
Shot 2
Notice how far the distortion moved in 44 meters.  It is this way no matter which recent build, and no matter which flags.  However, for the record:
C:\Games\FreeSpace2\fs2_open_ex.exe -spec -glow -pcx32 -jpgtga -2d_poof -rlm -pcx2dds -dualscanlines -ship_choice_3d -targetinfo -3dwarp -ballistic_gauge -smart_shields -snd_preload -decals -fps -stats -show_mem_usage
Bunny stole my signature :(.

Sorry boobies.

 

Offline FireCrack

  • 210
  • meh...
fix the urls on those pics, we cant see anything.
actualy, mabye not.
"When ink and pen in hands of men Inscribe your form, bipedal P They draw an altar on which God has slaughtered all stability, no eyes could ever soak in all the places you anoint, and yet to see you all at once we only need the point. Flirting with infinity, your geometric progeny that fit inside you oh so tight with triangles that feel so right."
3.141592653589793238462643383279502884197169399375105820974944 59230781640628620899862803482534211706...
"Your ever-constant homily says flaw is discipline, the patron saint of imperfection frees us from our sin. And if our transcendental lift shall find a final floor, then Man will know the death of God where wonder was before."

 

Offline Scuddie

  • gb2/b/
  • 28
  • I will never leave.
That seems to be your problem.  I can see them fine.
Bunny stole my signature :(.

Sorry boobies.

  

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
I think what he means is that from the pics you posted there's not much to see.  I see a little bit of clipping on the thrusters, but that's hardly unusual for a model with the glowpoints on the surface of the engines.  Plus, you've got the pics there hyperlinking to Imageshack, but the link doesn't take us to a larger version of the image, as we all would expect.  If it weren't for the fact that you've got target info displayed, I wouldn't know what on earth you were trying to show.  Can you replicate this with the hud off at least?

EDIT: Actually, the best way to get a good screenshot of the effect would be to make the FOV insanely small so that the defects are larger and more clearly identified.  Because that just looks like a z-buffer imperfection.
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 

Offline Scuddie

  • gb2/b/
  • 28
  • I will never leave.
Well, I figure it must be a ZBuffer problem, because when I made the FOV .15, it was just as far away from the view as it was with the default FOV value.  I didnt notice any problems until it was 8 clicks away.  Plus, that would explain why D3D doesn't do that.  So is there a problem on my end?  Or is FS2Open OpenGL unfinished in regards to buffering?  Or is ZBuffer issues just the nature of the beast for OpenGL entirely?
Bunny stole my signature :(.

Sorry boobies.

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Zbuffer issues are just the nature of the beast in ALL 3D
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Scuddie

  • gb2/b/
  • 28
  • I will never leave.
I just thought of something.  Is the ZBuffer for 32bit OpenGL 24bit or 32bit?  I may as well bring that up, because I realized by accident that the GeForce4 / Raideon 8xxx cards and older can only support a 24bit ZBuffer, and the other 8bits are reserved for stencil.  I did some research, and it has shown that 32bit ZBuffer on older DX8 cards had problems with flickering whenever stenciling was present.  Also if a stencil was not present, the ZBuffer wouldn't work right in 24-bit.  I thought I might bring it up, perhaps to get a workaround for it, like maybe a -Z24 commandline flag or something :nervous:.
Bunny stole my signature :(.

Sorry boobies.

 

Offline Flipside

  • əp!sd!l£
  • 212
Wouldn't dropping DirectX close certain doors in the graphical enhancement department though? I'm pretty much a DirectX only user, simply because most games that offer a choice will default to that, so I don't know much about the abilities of OGL.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
I wouldn't mind seeing D3D go either but the truth is that most of the new graphics features are done by the people who know D3D and not OGL.  It means that the OGL code always has to play catch-up but the new features get in that way.  I don't know of anything that D3D can do that OGL can't and in fact D3D keeps picking up new features from OGL.  The same goes the other way as well.  OGL is still a little behind in this case because I don't think there is anyone on the SCP team that really knows OGL that great.  Most stuff, yes, but my experience pretty much ends with version 1.2 and everything else is learn as I go.  Makes things a little slow going.  Also ATI drivers in OGL (in general if not in practive) suck fat a$$ which means more time troubleshooting graphics bugs that could be wasted on other things, such as new features.

@Scuddie: It's been 24-bit but I recently changed it to 32-bit to test fixes for ATI cards.  It was done per stuff I read on MSDN and Google searches.  I don't have an ATI card myself and can't reproduce the errors with my NVIDIA card so it's hit or miss on the fixes.  It's only been like that only on builds this month though so if you don't have that same graphics glitch on earlier builds then it's not related.

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
d3d cannot do anything openGL cannot do
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Scuddie

  • gb2/b/
  • 28
  • I will never leave.
Quote
Originally posted by taylor
@Scuddie: It's been 24-bit but I recently changed it to 32-bit to test fixes for ATI cards.  It was done per stuff I read on MSDN and Google searches.  I don't have an ATI card myself and can't reproduce the errors with my NVIDIA card so it's hit or miss on the fixes.  It's only been like that only on builds this month though so if you don't have that same graphics glitch on earlier builds then it's not related.
Bingo.  I just downloaded and ran your Jan 3 build (T-20050103), and there were nothing to see whatsoever.  I tried while close, I tried while far away, and not a single rip, tear, artifact, or any other abnormality occured.  At all.  I'd call this a big confirmation.  Unless it would require a re-write of the OpenGL renderer, I believe a commandline flag is in order.
Bunny stole my signature :(.

Sorry boobies.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Quote
Originally posted by Scuddie
Bingo.  I just downloaded and ran your Jan 3 build (T-20050103), and there were nothing to see whatsoever.  I tried while close, I tried while far away, and not a single rip, tear, artifact, or any other abnormality occured.  At all.  I'd call this a big confirmation.  Unless it would require a re-write of the OpenGL renderer, I believe a commandline flag is in order.

Well there have been other thruster rendering changes since that build too so it could be a combination of stuff.  Try and find a build as close to March 3rd as possible without getting anything newer and see if the problem occurs there as well.  Either way I am just going to go back to 24-bit since changing it to 32 didn't seem to help any with the ATI problems.  You can just wait for any build after today to test again if you want.  If it really doesn't fix it in a newer build then make sure I know so that I can search for the real problem.  If it does turn out to be needed later on it will be a cmdline to go with 32-bit since 24-bit worked for a couple of years without issue.