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

D3D11 Normal map problem #2

Closed
Ybalrid opened this issue Jan 4, 2018 · 0 comments
Closed

D3D11 Normal map problem #2

Ybalrid opened this issue Jan 4, 2018 · 0 comments

Comments

@Ybalrid
Copy link
Owner

Ybalrid commented Jan 4, 2018

The current code that load the normal map data into a texture is a bit janky. And it's working only with OpenGL.

Here's how it's looking like with the GL3+ RenderSystem

ogre_gltf_test_2018-01-04_02-14-13

And here's what we are currently getting with the D3D11 RenderSystem

ogre_gltf_test_2018-01-04_02-14-30

From what I understand, it seems that Ogre expect the texture to be in an "SNORM" pixel format.

The only info I currently have on the issue is this tweet exchange :

https://twitter.com/matiasgoldberg/status/948332133998874624

The relative section of the code is the Ogre_glTF_textureImporter::getNormalSNORM(int gltfTextureSourceID)method

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

No branches or pull requests

1 participant