Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GS: What to do when LOD is very large (Q == 0 may be culprit) #435

Open
refractionpcsx2 opened this issue Jul 27, 2020 · 1 comment
Open

Comments

@refractionpcsx2
Copy link
Contributor

With Ratchet and Clank when drawing the menu items it has these values

Value of LOD 993.000000 K -6.875000 Q 0.000000 L 0 MMIN 4 MAXL 2

The game expects the MIP level/LOD to be 0 for drawing the menu items.

The questions are:

When the LOD is greater than 6, is it interpreted as zero?
or
When Q is 0 (causing a Divide by Zero error on LOD = (log2(1/Q)<<L) + K ), is LOD calculation omitted and MIP level is set to 0?

A GS Hardware test will be required to check what exactly should happen here.

@refractionpcsx2
Copy link
Contributor Author

Update on this situation:

Ratchet & Clank is using UV texture mapping, so the log2(1/Q) method is impossible. After tests on my PS2 it will forcefully use the LOD = K method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant