michael-fadely / sadx-dc-lighting

Sonic Adventure 1 palette lighting for SADX PC.
MIT License
39 stars 3 forks source link

Sonic's Character Model visible polygons #25

Closed Sonikko closed 7 years ago

Sonikko commented 7 years ago

I noticed this imperfection various times, I'm pretty sure it happens in Emerald Coast and Windy Valley too, or every time the camera gets closer anyway. Zoom the picture to see it, it's not easy to notice. screenshot 2017-01-05 23 03 402 screenshot 2017-01-05 23 03 40

michael-fadely commented 7 years ago

Hmm, this is a strange one. It appears to be on the seams of the base texture. Since the palette textures are used as vertex colors, it seems unlikely that the (unfiltered) palette texture could be causing that kind of artifact. The question is then: what am I doing in the shader that's causing it to break the base texture?

Strange indeed. Thanks for the report; I'll see what I can do.

michael-fadely commented 7 years ago

This appears to be an issue with vanilla SADX; it could just be that the palette lighting makes it more noticeable. I imagine it's a precision issue in the conversion from the original integer UV coordinates to standard Direct3D floating point UV coordinates.