Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Thorn on July 14, 2004, 09:56:05 am

Title: Distorted GL rendering.
Post by: Thorn on July 14, 2004, 09:56:05 am
It seems that when I use any version newer than fs2_open_C06152004 (this version works fine though) I get severely distorted rendering using OpenGL. fs2_open_Bobboau_7-10-04 or fs2_open_C07102004b_inf for instance.  It's even worse ingame (shot in next post).
Resolution or what features are enabled makes no difference.
Geforce2 MX400, XP SP1, Latest drivers and all that fun stuff... anything else I need to list?
Title: Distorted GL rendering.
Post by: Thorn on July 14, 2004, 09:56:39 am
It was even worse running Inferno. Everything was pink and purple and white.
Title: Distorted GL rendering.
Post by: Moonsword on July 14, 2004, 09:57:55 am
Yeah, I've noticed the same thing.
Title: Distorted GL rendering.
Post by: TopAce on July 14, 2004, 10:00:50 am
Bobboau has said it only 20 times: Do not use OpenGL. Expect any of the SCP staffers to write the same.
Title: Distorted GL rendering.
Post by: Thorn on July 14, 2004, 10:05:49 am
Yeah, well when I used the search it didnt come up with anything useful like that :wtf:
Title: Distorted GL rendering.
Post by: TopAce on July 14, 2004, 10:10:44 am
here it is:
http://www.hard-light.net/forums/index.php/topic,24544.0.html

:ha:
Title: Distorted GL rendering.
Post by: Thorn on July 14, 2004, 10:20:50 am
Yes.. and that didnt even show in the search results.
Problem solved. No more need of this.
Title: Distorted GL rendering.
Post by: Bobboau on July 14, 2004, 10:25:21 am
why one of the OGL people hasn't fixed this I don't know.
Title: Distorted GL rendering.
Post by: Thorn on July 14, 2004, 10:28:13 am
The only reason I really evn bothered posting this is because GL shinemapping looks sooooo much better than D3D. D3D is ****ing hideous. It's like someone cranked the gamma.
Title: Distorted GL rendering.
Post by: Bobboau on July 14, 2004, 10:43:15 am
post comparasons, I've been thinking about changeing the way it's rendered, but it might upset some exsisting textures
Title: Distorted GL rendering.
Post by: Nico on July 14, 2004, 10:50:55 am
Quote
Originally posted by Thorn
The only reason I really evn bothered posting this is because GL shinemapping looks sooooo much better than D3D. D3D is ****ing hideous. It's like someone cranked the gamma.


Especially when you consider I don't have them anymore in d3d mode :p
Btw, have the exact same pb, wanted to post about it, but for some reason none of my screenshots were saved.
Title: Distorted GL rendering.
Post by: Thorn on July 14, 2004, 12:02:09 pm
D3D
(http://www.3dap.com/hlp/hosted/tap/Thorn/pictures/screen000.jpg)
OGL
(http://www.3dap.com/hlp/hosted/tap/Thorn/pictures/glscreen02.jpg)

Looks exactly the same ingame with default lighting.
Title: Distorted GL rendering.
Post by: taylor on July 14, 2004, 01:15:46 pm
Quote
Originally posted by Bobboau
why one of the OGL people hasn't fixed this I don't know.

I've tried to fix this already but the model only partially renders.  Don't know why but I haven't really had any time to play with it lately between the Linux version, the OSX version, the memory leak fixes that are in testing, the icculus.org version, the icculus.org OSX version, the upcoming (but not soon) Knoppix version, the AMD64 version, ...

It may take phreak to fix whatever I've done to it but I'll try to have something by the end of the week.
Title: Distorted GL rendering.
Post by: mrduckman on July 14, 2004, 02:12:35 pm
knoppix version? Will you release one for each distro?
Title: Distorted GL rendering.
Post by: taylor on July 14, 2004, 02:33:33 pm
Quote
Originally posted by mrduckman
knoppix version? Will you release one for each distro?

No the knoppix version will be a CD/DVD only version of fs2_open.  This way you get Linux on a CD that has the game ready to play and you just pop it in the computer that happens to be in front of you and have fun.  This is good for just showing off the game, LAN parties, friends house or anytime else that you may not otherwise be able to do a full install.
Title: Distorted GL rendering.
Post by: Nico on July 14, 2004, 03:10:37 pm
Quote
Originally posted by Thorn
D3D
[pics]

Looks exactly the same ingame with default lighting.


Thron: I've noticed the same, but in fact, seems the default value for the D3D shinemap has been mistyped or something ( or in fact, iirc, the scale is different), it's way too high, but you can lower it by replacing the value yourself.
Title: Distorted GL rendering.
Post by: mrduckman on July 14, 2004, 04:03:28 pm
Quote
Originally posted by taylor

No the knoppix version will be a CD/DVD only version of fs2_open.  This way you get Linux on a CD that has the game ready to play and you just pop it in the computer that happens to be in front of you and have fun.  This is good for just showing off the game, LAN parties, friends house or anytime else that you may not otherwise be able to do a full install.


Awesome
Title: Distorted GL rendering.
Post by: aldo_14 on July 14, 2004, 04:19:37 pm
Quote
Originally posted by mrduckman


Awesome


indeed :nod:
Title: Distorted GL rendering.
Post by: WMCoolmon on July 14, 2004, 05:14:51 pm
Quote
No the knoppix version will be a CD/DVD only version of fs2_open. This way you get Linux on a CD that has the game ready to play and you just pop it in the computer that happens to be in front of you and have fun. This is good for just showing off the game, LAN parties, friends house or anytime else that you may not otherwise be able to do a full install.


:eek: That's phreaking awesome!
Title: Distorted GL rendering.
Post by: Bobboau on July 14, 2004, 06:09:31 pm
you guys didn't hear we were planning this?

d3d multiplys the specular color by four, makeing it look more metalick and harsher, but you lose a lot of controle this way
Title: Distorted GL rendering.
Post by: phreak on July 14, 2004, 08:21:15 pm
Quote
Originally posted by WMCoolmon


:eek: That's phreaking awesome!


har-har.  very funny
Title: Distorted GL rendering.
Post by: WMCoolmon on July 14, 2004, 08:42:04 pm
:p
Title: Distorted GL rendering.
Post by: Thorn on July 14, 2004, 09:14:34 pm
That was pretty bad....
Title: Distorted GL rendering.
Post by: Axem on July 14, 2004, 09:29:19 pm
Nothing can compare to how awful my system renders OpenGL! :D

(http://img36.photobucket.com/albums/v109/NarfPics/NarfinPix/purple.jpg)

Don't let it fool you, its actually green and looks worse ingame. Thank goodness for Direct3D! :)
Title: Distorted GL rendering.
Post by: Kosh on July 15, 2004, 12:12:25 am
That looks kind of cool in a way......
Title: Distorted GL rendering.
Post by: taylor on July 15, 2004, 01:57:28 am
Quote
Originally posted by Bobboau
why one of the OGL people hasn't fixed this I don't know.

Holy crap, I wasn't sending all of the polys.  No wonder it didn't render the whole thing.  Works now and I'll get it commited shortly.  PhReAk can do something better later on if he wants.  Six lines on the nose though and I think that's the number you threw out ;)
Title: Distorted GL rendering.
Post by: Bobboau on July 15, 2004, 02:06:57 am
:)
/*anyway, does the happy dance*/
some of the restructureing I did alows for a rather nice optomiseation, set_buffer can bind the vertex buffer one time rather than every time you want to render it. this will also let us do some other nice restrutureing later on that will give us better flexability (I want to reduce draw_buffer's responsibility as much as posable, down to a single render pass, handeling spec mapping (and the state changes involved) at a higher level)
Title: Distorted GL rendering.
Post by: Nico on July 15, 2004, 02:12:31 am
Quote
Originally posted by taylor

Holy crap, I wasn't sending all of the polys.  No wonder it didn't render the whole thing.  Works now and I'll get it commited shortly.  PhReAk can do something better later on if he wants.  Six lines on the nose though and I think that's the number you threw out ;)


So, I understand this made the shards thing, but was it also enough to break the background, the hud, the menus ( like when you push escape in mission ), etc?
Title: Distorted GL rendering.
Post by: taylor on July 15, 2004, 02:36:03 am
Quote
Originally posted by Nico
So, I understand this made the shards thing, but was it also enough to break the background, the hud, the menus ( like when you push escape in mission ), etc?

No that was the original change and I haven't added my change to fix the original change yet.  Obviously there are too many changes going on.  Soon I think we'll agree to stop changing our minds and decide on a single set of changes to make.  Strangely, I think I'm running out ways to use change in a sentence.  I think I need to change to a new word and use that from now on.  Umm... can't think of one... no wait I think I got it. :D
Title: Distorted GL rendering.
Post by: Nico on July 15, 2004, 03:22:20 am
lol
Well, hem. Yeah.
So the HUD still won't work?
Title: Distorted GL rendering.
Post by: Bobboau on July 15, 2004, 03:29:40 am
no, I think he said he fixed that too, but he hasn't commited it yet...
Title: Distorted GL rendering.
Post by: taylor on July 15, 2004, 04:04:13 am
I spoke too soon, I'm still having some problems with it.  Models render pretty much ok but the HUD still doesn't show up right and there are some clipping problems.  Not sure what I'm missing but it should be obvious that I've been awake for a while so I'll work on this again after I get some sleep.
Title: Distorted GL rendering.
Post by: Kosh on July 15, 2004, 02:19:38 pm
Quote
the memory leak fixes that are in testing,


This is off-topic but I need to be sure, did you get my PM about my results?
Title: Distorted GL rendering.
Post by: taylor on July 15, 2004, 03:38:08 pm
Quote
Originally posted by Kosh
This is off-topic but I need to be sure, did you get my PM about my results?

Never did respond did I, sorry about that.  The results were about what I was expecting but I was hoping for more of an improvement.  Something better is in the works though.
Title: Distorted GL rendering.
Post by: phreak on July 15, 2004, 04:19:25 pm
Quote
Originally posted by taylor
PhReAk can do something better later on if he wants.


heh, i haven't touched the source the day i posted the orb picture.  im too damn tired from working.  i may have some time when school starts up (:eek:!)