nglviewer / ngl

WebGL protein viewer
http://nglviewer.org/ngl/
MIT License
666 stars 169 forks source link

Broken fog effect on big structures #513

Open giagitom opened 6 years ago

giagitom commented 6 years ago

Hi, I noticed this strange behavior zooming in on big structures like 3UNE or 1AON. screenshot from 2018-04-09 17-45-39

arose commented 6 years ago

Looks fine to me here http://nglviewer.org/ngldev/?load=rcsb://1aon, maybe a graphics driver issue.

giagitom commented 6 years ago

Try setting orthographic camera

arose commented 6 years ago

Still good for me

screen shot 2018-04-09 at 11 05 17 am

giagitom commented 6 years ago

I have made a pen

arose commented 6 years ago

I can see it now too. Did not find a solution so far, feel free to have a look yourself. It is related to the light position and the near/far camera setting.

giagitom commented 6 years ago

I tried to set light intensity to 0, but the problem persists. An other thing I observed is that the effect could be related to the background color (don't know if it's something obvious in reality). Here the pen.