View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000792 | FSSCP | OpenGL | public | 2006-02-10 03:13 | 2007-01-02 19:03 |
Reporter | Muriac | Assigned To | taylor | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Fixed in Version | 3.6.9 | ||||
Summary | 0000792: Lighting really whacked on OS X builds (unless you set -ambient_factor) | ||||
Description | I know I mentioned this on the forum, but I figured I'd put a ticket up here because it hasn't gone away with the 20060206 build. I've found that lighting is non-existant when I don't set ambient_factor. Once I do that, the lighting looks really weird until I set noibx. | ||||
Additional Information | This problem existed in the first OS X build, and is different now (the spots of light and dark are all much much brighter). Attached is a picture of a fighter while ambient_factor is set, but noibx is not. | ||||
Tags | No tags attached. | ||||
2006-02-10 03:13
|
|
|
Can you attach one of the IBX files for the fighter as well ("figher2t-03.ibx" for the pictured fighter)? I'm not really sure why the IBX files would affect this, they shouldn't be. |
2006-02-10 13:59
|
|
|
Here it is. |
|
Try as I may, I just can't reproduce this with current code. Even using your IBX file works perfectly for me. Is this still an issue for you in the newer builds? |
|
Same as always, unfortunately. 20060228: no lighting without -ambient_factor, horrible lighting without -noibx. |
|
Oh, I just realized I should mention this: if I enable -spec but not -ambient_factor or -noibx, I get exactly the same random lighting pattern applied to the spec map. Because I haven't set -ambient_factor, there is no other lighting. So: omitting -noibx causes both regular lighting and specular highlights to screw up in the same way. This is why the lighter parts in the image I posted are so bright (because both specular maps and lighting are being applied to the same spots). Omitting -ambient_factor eliminates shaded lighting. I'm guessing these might be separate bugs. |
|
Strange. I'm not using -ambient_factor or -noibx, but I am using -spec and -glow, and it's working perfectly for me. If you don't use any special cmdline options (other than something like -window and -nograb) does it still do the lighting wrong? Were you able to get a debug log that you can attach here? And -ambient_factor is always used, specifying it only uses a different value than the default (which is set to better match retail). |
|
Ok, maybe the default value for ambient_factor is just too high for me to notice any lighting, so it appears flat. In which case, this is just one bug relating to IBX somehow. I've attached my debug log from opening the tech room with an empty cmdline file. The lighting appeared flat (due to the standard value of ambient_factor). I've attached a picture too. |
2006-03-07 22:26
|
|
2006-03-07 22:26
|
|
|
Does it make a difference if you use 32-bit color instead of 16-bit? |
|
Nope, same deal. |
|
still an issue? |
|
Yup. Still don't know why it happens though. It's by no means an isolated issue, but I haven't been able to replicate it yet. |
|
Hmm, I still can't reproduce this and no one else has come forward to tell me that they can. It's either fixed, or just plain no longer an issue. Will reopen at a later time if needed. |
|
Found it ... fixed it! It was some issue (still not sure what exactly) where reading info out of an existing IBX file would get incorrect data for the vertex normals. All other info was reading correctly, but with the normals messing up it screwed up all lighting. I changed the way in which is saves and reads this information to the IBX files and that seems to have fixed it. Or at least I was getting 100% of the time, and now I can't get it to happen at all. The fix doesn't break the IBX format, so everything is still compatible. Fixered. |
Date Modified | Username | Field | Change |
---|---|---|---|
2006-02-10 03:13 | Muriac | New Issue | |
2006-02-10 03:13 | Muriac | File Added: Picture 1.png | |
2006-02-10 04:27 | taylor | Note Added: 0004708 | |
2006-02-10 04:27 | taylor | Status | new => assigned |
2006-02-10 04:27 | taylor | Assigned To | => taylor |
2006-02-10 04:27 | taylor | Category | graphics => OpenGL |
2006-02-10 13:59 | Muriac | File Added: fighter2t-03.ibx | |
2006-02-10 13:59 | Muriac | Note Added: 0004709 | |
2006-03-07 17:58 | taylor | Note Added: 0005089 | |
2006-03-07 18:31 | Muriac | Note Added: 0005093 | |
2006-03-07 18:38 | Muriac | Note Added: 0005094 | |
2006-03-07 22:02 | taylor | Note Added: 0005099 | |
2006-03-07 22:25 | Muriac | Note Added: 0005100 | |
2006-03-07 22:26 | Muriac | File Added: fs2_open.log | |
2006-03-07 22:26 | Muriac | File Added: HerculesNoCMDoptions.png | |
2006-03-07 23:32 | taylor | Note Added: 0005101 | |
2006-03-08 02:39 | Muriac | Note Added: 0005104 | |
2006-05-01 17:31 | phreak | Note Added: 0005444 | |
2006-05-01 17:55 | taylor | Note Added: 0005446 | |
2006-11-15 11:15 | taylor | Status | assigned => resolved |
2006-11-15 11:15 | taylor | Resolution | open => unable to reproduce |
2006-11-15 11:15 | taylor | Note Added: 0007134 | |
2007-01-02 19:03 | taylor | Note Added: 0007371 | |
2007-01-02 19:03 | taylor | Resolution | unable to reproduce => fixed |
2007-01-02 19:03 | taylor | Fixed in Version | => 3.6.9 |