View Issue Details

IDProjectCategoryView StatusLast Update
0000605FSSCPOpenGLpublic2005-10-26 19:57
ReporterStratComm Assigned Totaylor  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0000605: JPG textures may display incorrectly in OGL
DescriptionI've only seen this as an issue with TBP data, but I suspect it's more widespread. Basically when a JPG file is used for a blue texture (in this particular example) it is getting loaded as orange. This apparently only happens in OGL mode, and I don't know how card-specific it is. I'll be attaching a screenshot that shows what happens; the whole ship should be that bluish color, and the part that is not has a jpg texture. I'll also upload the texture itself, should it be relevant, but it's part of TBP's official data set.
Additional InformationThis is a bug brought up by another user. See the following thread for his details:
http://dynamic.gamespy.com/~freespace/forums/showthread.php?s=&postid=747302#post747302
TagsNo tags attached.

Activities

2005-10-26 06:19

 

screen0218.jpg (59,067 bytes)   
screen0218.jpg (59,067 bytes)   

2005-10-26 06:20

 

sharlin_fin4_lod0.jpg (5,368 bytes)   
sharlin_fin4_lod0.jpg (5,368 bytes)   

taylor

2005-10-26 11:22

administrator   ~0003665

I've seen this too but never could decide if it was an TBP issue or not. Pretty sure it's not but hasn't been all that high on the todo list. I'm assuming that this is an RGB->BGR issue where 24-bit TGAs were made to work with BGR but the JPGs are coming out 24-bit RGB. Everything is normally BGR which is what we tell OGL to use which would explain why it's orange in this case. I'll have a quick look at the jpeg decoder and see what I can do about it.

taylor

2005-10-26 13:56

administrator   ~0003666

Yep, that was it. Easily fixed with a RGB->BGR conversion. I need to double check that D3D didn't break before commit though. That probably won't happen until tomorrow.

taylor

2005-10-26 19:57

administrator   ~0003667

Works well in D3D too so this is going in shortly. Reopen if the problem isn't fixed 100% or if D3D ends up showing some issue with this change.

Fixered.

Issue History

Date Modified Username Field Change
2005-10-26 06:19 StratComm New Issue
2005-10-26 06:19 StratComm File Added: screen0218.jpg
2005-10-26 06:20 StratComm File Added: sharlin_fin4_lod0.jpg
2005-10-26 11:19 taylor Status new => assigned
2005-10-26 11:19 taylor Assigned To => taylor
2005-10-26 11:22 taylor Note Added: 0003665
2005-10-26 13:56 taylor Note Added: 0003666
2005-10-26 19:57 taylor Status assigned => resolved
2005-10-26 19:57 taylor Resolution open => fixed
2005-10-26 19:57 taylor Note Added: 0003667