Open slimbuck opened 2 years ago
Would be great to show some 1:1 examples, which highlight issues of aliasing, and how Toksvig handles them.
Hi @Maksims ,
Here's a contrived example from a test in the model viewer. I've set pixel scale to 8 so we can see the differences easily.
Sphere on the left has "modified toksvig" and on the right is none. The two spheres are identical otherwise.
As you can see, the toksvig highlights are better behaved, but also much brighter.
See possible solution here: https://www.dropbox.com/s/89pvx9obhv6m0pk/High%20Quality,%20High%20Performance%20Graphics%20in%20Filament%20(Handout).pdf?dl=0 page 29
See possible solution here: https://www.dropbox.com/s/89pvx9obhv6m0pk/High%20Quality,%20High%20Performance%20Graphics%20in%20Filament%20(Handout).pdf?dl=0 page 29
Yes! We need to move to ggx for this.
Any updates on this? We're running into issues with specular aliasing on almost every project we make. We've even had customers point it out, saying it looks bad. On high-end projects good anti aliasing is super important, so we'd really appreciate if this was fixed.
Hi @animech-sijo - this makes perfect sense, and we'll try to allocate some resources to this in the not too distant future. Thanks!
Is there any status on this? Do you have an estimate on when you think it will be released?
@animech-sijo Would you be able to post or send us some projects/scenes that have these issues please?
@yaustar You might've already gotten this, but here's a project showing specular aliasing. It's a private project, hope that works.
Toksvig specular antialiasing has been broken in the engine for the last two years.
This was unintentionally broken when detail normal maps were added to the engine (see https://github.com/playcanvas/engine/pull/1968/files#diff-dc5bc7097c897bc531ef1e99641a4b3dbd3f70b96fd0c906e264c6f540771414R5).
Toksvig factor is based on the length of the
dNormalMap
vector as read from the texture/mipmap. Thenormalise
call on this line results in length always being 1.0, effectively disabling toksvig.We must decide how to proceed: either we re-enable toksvig support in the engine or we remote it.