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

Normalmap Importing (s3tc.stex) not working on certain Normal Map Textures in 3D graphics. #9311

Closed
Corruptinator opened this issue Jun 22, 2017 · 10 comments

Comments

@Corruptinator
Copy link
Contributor

Corruptinator commented Jun 22, 2017

Operating system or device - Godot version:

3.0 Alpha Source Code Build, Windows 10 Pro, Wacom Cintiq Companion 2

Issue description:

I was trying to import a normalmap onto an object to test the PBR shading, but unfortunately, somewhere during the import process, the s3tc.stex didn't import the texture the right way...

This link shows a screenshot with cut pieces attached of what I am talking about
normal_error_demo

The engine somehow hasn't read or imported the normalmap correctly and now the object is completely glitched. In the resource tab the imported normalmap looks glitched in the preview, and the inspector editor isn't loading the normalmap texture.

Steps to reproduce:

I've included the albedo, roughness, rim, and normalmap textures so then you can see if you're seeing the same problem.

  1. In an empty scene, create a WorldEnvironment Node and add a panorama .exr or .hdr texture.
  2. Add a Mesh Instance Node and create either a cube, cylinder, or etc in the "Mesh" option.
  3. Create a SpatialMaterial in the Materials slot, and start adding the attached textures to the object.

Let me know if you're having the same problem, because I think either I did something wrong with the normalmapping or that the import process needs a tweak for normalmapping.

powerpost_rim
powerpost_roughness
powerpost_albedo
powerpost_normal

@Corruptinator Corruptinator changed the title [3.0-Alpha] Normalmap Importing (s3tc.stex) not working on certain Normal Map Textures. [3.0-Alpha] Normalmap Importing (s3tc.stex) not working on certain Normal Map Textures in 3D graphics. Jun 22, 2017
@bojidar-bg
Copy link
Contributor

Isn't this a dupe of #9267?

@Corruptinator
Copy link
Contributor Author

Maybe, but this is a different outcome for me. Nonetheless I just wanted to point out what I encountered just so then I hopefully wasn't the only one witnessing this bug.

@karroffel
Copy link
Contributor

I didn't know there's an alpha build yet 🤔

@Corruptinator
Copy link
Contributor Author

It was a source code compilation using scons. Sorry. I should have elaborated on that.

@karroffel karroffel added this to the 3.0 milestone Jun 22, 2017
@karroffel karroffel changed the title [3.0-Alpha] Normalmap Importing (s3tc.stex) not working on certain Normal Map Textures in 3D graphics. Normalmap Importing (s3tc.stex) not working on certain Normal Map Textures in 3D graphics. Jun 22, 2017
@Corruptinator
Copy link
Contributor Author

UPDATE, I realized that one of the older 3.0 builds actually managed to load Normals appropriately:

https://github.com/godotengine/godot/tree/47b34bf79be1ba2fe4a99c8931732efac68a0b87

The link to the Tree build where Reduzio released a patch for Intel based computers: "Remove error spam on Intel, closes #8665" Allows the engine to read, load, and convert the Normals correctly into the s3tc.stex and other stex files.

With that in mind, was there any difference between this build and the most recent patch update that caused the Normalmaps to be glitched out in s3tc.stex files?

@bojidar-bg
Copy link
Contributor

git bisect, anyone? 😃

@Corruptinator
Copy link
Contributor Author

Corruptinator commented Jul 21, 2017

QUICK UPDATE: I have successfully narrowed down where the glitch was occurring using the git bisect that @bojidar-bg suggested. According to the narrowed down results, the glitch occurred in this commit:

[b19225b] -Fix freezes caused by etccomp2, closes #9183 -Normalmaps are now detected and imported as RGTC, both in S3TC and ETC2, this improves their quality.

Somehow this patch caused the normalmap glitch to occur, can somebody confirm this and that which files are affected?

P.S. I was testing textures at 4096x4096.

@bojidar-bg
Copy link
Contributor

Ping @reduz, @tagcup. I assume this is caused by the "Detect normalmaps" part 😄

@ghost
Copy link

ghost commented Jul 23, 2017

Oh, I actually had nothing to do with the normal map detection part so best ping @reduz I'll try to take a look too

@reduz
Copy link
Member

reduz commented Aug 7, 2017

this is fixed now, closing

@reduz reduz closed this as completed Aug 7, 2017
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

4 participants