EmuNewz Network
Does "enable decoding of indexed textures ( using CLUT ) have to make graphic ugly ? - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: General discussion (https://www.emunewz.net/forum/forumdisplay.php?fid=57)
+---- Thread: Does "enable decoding of indexed textures ( using CLUT ) have to make graphic ugly ? (/showthread.php?tid=92187)

Pages: 1 2 3 4


? - RyviusRan - 01-14-2013

Will this ever be fixed?


Does "enable decoding of indexed textures ( using CLUT ) have to make graphic ugly ? - gid15 - 04-16-2013

A first implementation has been added in r3106. It is not yet implemented for all CLUT methods but could you test it on different games and different graphic cards to check OpenGL driver compatibility?


Dissidia 012 / AMD Mobility Radeon 545v - Sarisa81 - 04-17-2013

For Dissidia 012, the picture is less pixellated now, but the missing texture problem is far worse. The screenshots don't precisely match but they should show the issue.

My graphics card is AMD Mobility Radeon 545v (4500 series) and I'm using these settings:
[ ] Disable VBO (automatically disabled if not supported)
[X] Only GE graphics (not recommended for homebrew)
[X] Use vertex cache
[X] Use shaders
[X] Use a Geometry Shader for 2D rendering (only relevant when using shaders)
[X] Disable UBO (automatically disabled if not supported, only relevant when using shaders)
[ ] Enable VAO (only relevant when using shaders and vertex cache)
[X] Enable saving GE screen to Textures instead of Memory
[X] Enable decoding of indexed textures (using CLUT) in shader (only relevant when using shaders)
[X] Enable dynamic shader generation (only relevant when using shaders, recommended for AMD/ATI)
[ ] Enable the shader implementation for the "Stencil Test" (more accurate but slower)
[ ] Enable the shader implementation for the "Color Mask" (more accurate but slower)
[ ] Disable optimized VertexInfo reading (may improve compatibility)
[ ] Save Stencil to Memory (more accurate but slower)
[ ] Use Software Rendering (very experimental, not yet complete, slow)

My driver version is 8.97.100.7 and my Catalyst version is 13.1.


RE: - digiadventures - 04-17-2013

I can only test on geforce since I don't have any radeon cards.
I tested about 10 games from my collection, main issue is fixed-no more pixalated graphic, but a lof of games experience bugs with the option turned on, there are no such bugs in r3105.
For example, graphic missing in final fantasy crisis core, characters turning black in brave story, or some kind of bugged graphic floating at the tactics ogre title screen.
Is this expected behaviour because it's not yet implemented for all clut methods ?


RE: - gid15 - 04-18-2013

(04-18-2013, 07:10 PM)gid15 Wrote:
(04-17-2013, 08:37 PM)digiadventures Wrote: I can only test on geforce since I don't have any radeon cards.
I tested about 10 games from my collection, main issue is fixed-no more pixalated graphic, but a lof of games experience bugs with the option turned on, there are no such bugs in r3105.
For example, graphic missing in final fantasy crisis core, characters turning black in brave story, or some kind of bugged graphic floating at the tactics ogre title screen.
Is this expected behaviour because it's not yet implemented for all clut methods ?
The change I've implemented was to provide less pixelated graphics when using the CLUT option. I've first implemented it for some cases so that it could be tested for correctness and compatibility with all kind of video drivers. For the other cases, the old implementation stayed unchanged.
So, obviously the change is not yet perfect as it should not break something working before... I'm working further on it.
Thank you for the reports!
I've found an error with the implementation of the bilinear interpolation: the texture wrapping was not considered. This should be fixed in r3109.
Could you retest and post screenshots with and without CLUT decoding?


RE: - digiadventures - 04-18-2013

(04-18-2013, 07:10 PM)gid15 Wrote: I've found an error with the implementation of the bilinear interpolation: the texture wrapping was not considered. This should be fixed in r3109.
Could you retest and post screenshots with and without CLUT decoding?

Some bugs are fixed, for example missing graphic in Crisis Core, however some bugs still remain.

Tactics Ogre with CLUT decoding OFF:
[Image: XEdOstFl.jpg]

Tactcs Ogre with CLUT decoding ON:
[Image: TVjZaQ0l.jpg]

Brave Story with CLUT decoding OFF:
[Image: 7UpC28pl.jpg]

Brave Story with CLUT decoding ON:
[Image: 3C4WYPUl.jpg]


Dissidia 012 / AMD Mobility Radeon 545v - Sarisa81 - 04-19-2013

The textures are a mixed bag in r3109, but some are still missing both with and without CLUT.

Dissidia 012 with CLUT decoding OFF:
   

Dissidia 012 with CLUT decoding ON:
   


Dissidia 012 / AMD Mobility Radeon 545v - Sarisa81 - 04-20-2013

After a bit more poking, r3110 fixed whatever in r3109 broke whatever textures Dissidia 012 uses to provide the "skin" for spell effects if you use "Save GE screen to Textures instead of Memory" and/or "Enable decoding of indexed textures (using CLUT) in shader"; now they're back to being broken only if you use "Enable decoding of indexed textures..." This does not render the game unplayable, but makes Garland's Cyclone and possibly other spell effects nearly invisible.

All these pictures are from r3110.

The familiar Flare on Order's Sanctuary scene, without "Enable decoding of indexed textures (using CLUT) in shader":
   

Cyclone ( "Save GE screen to Textures" and "Enable decoding of indexed textures (using CLUT) in shader" disabled):
   

Cyclone ( "Save GE screen to Textures" enabled, "Enable decoding of indexed textures (using CLUT) in shader" disabled):
   

Cyclone ("Enable decoding of indexed textures (using CLUT) in shader enabled):
   

I'd be happy to provide logs if I'm told what's needed.


Quick notes - Sarisa81 - 04-24-2013

I grabbed r3115 and tried again. I have UBO disabled due to the severe drop in framerate I have when it's enabled, and I noticed some scattered improvements. Terra's Blizzard Combo doesn't have textures, but Blizzard does. Other attacks randomly re-acquire their textures, especially when an assist is called. Terra's Tornado (which has an animation extremely similar to Garland's Cyclone from the last set of screenshots) is completely invisible.

Will provide screenshots later.


Dissidia 012 / AMD Mobility Radeon 545v - Sarisa81 - 04-29-2013

New rev r3128, same old graphical glitches for Duodecim. It's the only game I play with JPCSP, so I don't know if the changes fixed other games.

The picture isn't the usual setting, but it's still Garland's Cyclone attack.