ryzom / ryzomcore

Ryzom Core is the open-source project related to the Ryzom game. This community repository is synchronized with the Ryzom Forge repository, based on the Core branch.
https://wiki.ryzom.dev
GNU Affero General Public License v3.0
333 stars 90 forks source link

white/black textures with intel gpu opengl/windows #310

Closed ryzom-pipeline closed 4 years ago

ryzom-pipeline commented 7 years ago

Original report by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).


Nvidia/AMD have these OpenGL extensions GL_NV_texture_env_combine4, GL_ATI_texture_env_combine3.

Intel/windows drivers does not report those (intel/linux/mesa does) and so fallback is used in CDriverGL::setupSpecularPass() function.

If lines 1428 to 1459 are disabled, then textures show up normally. I'm not the right person to comment how screwed up the lighting is.

I did my tests on linux by disabling both extensions on driver.

ryzom-pipeline commented 7 years ago

Original comment by Cédric Ochs (Bitbucket: [Cédric OCHS](https://bitbucket.org/Cédric OCHS), ).


Thanks :)

Perhaps there is an ARB or EXT equivalent extension :)

ryzom-pipeline commented 7 years ago

Original comment by Meelis Mägi (Bitbucket: [Meelis Mägi](https://bitbucket.org/Meelis Mägi), ).


I was able to check this under win10/intel and it seems fine when the specular is disabled.

Unfortunately no progress on finding out what exactly breaks it, so workaround is in b62b45b. There is also two new cmake options to help turning things on/off for debugging.