Closed wojciechczerniak closed 4 years ago
Hard to tell whether the lighting is correct or not. What do you expect that you are not getting?
The material texture looked stretched and the geometry lost its edges. But you're right, it's the lighting. Pretty obvious now... it's set to make the sphere look good 🤦 Sorry.
And thank you.
Describe the bug I'm not sure about this one. Looks like IsoSphere tangents are not calculated correctly?
I've tried to calculate tangents for an STL file with a code fragment from IsoSphere as suggested here https://github.com/google/filament/issues/959#issuecomment-472189487 but got some weird results with a simple
plastic.filamat
material. So I've checked more carefully the providedredball.html
demo. Looks like the material is not applied correctly to IsoSphere if it has a different geometry than the default demo value?To Reproduce Steps to reproduce the behavior:
redball.html
demonsubdivs
to0
(zero)Expected behavior I would expect that IsoSphere with low res to be correctly covered with the set material.
Screenshots Redball demo
plastic.filamat
with IsoSpherensubdivs
set to0
:IsoSphere with default
nsubdivs
set to5
for reference:Same
plastic.filamat
applied tosusanne.html
demo looks ok:Desktop (please complete the following information):