• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Normal to Height

Community Beginner ,
Feb 01, 2023 Feb 01, 2023

Copy link to clipboard

Copied

Hi everyone, 

I'm trying to convert a normal map to a height map with geometric accuracy. Sampler does the job pretty well (with some minor approximation), however it limits the size to 4096 x 4096 and it stretches it into a square format. Is there a way in sampler to have the native resolution and ratio? Or is there any other adobe app that does a normal to height conversion with the same level of accuracy of sampler but preserving size and ratio?

Thanks Riccardo

PS:  does anyone know which is the exact formula sampler achieve to give this result? 

TOPICS
How to , Image to Material

Views

723

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Feb 22, 2023 Feb 22, 2023

Hi,

Can you try to enable the "preserve tiling" in the filter properties? 
It works on my end, and enabled or not it doesn't seem to influence the map quality at export. 

Screenshot 2023-02-22 at 14.43.03.png


Thank you!

Votes

Translate

Translate
Community Expert ,
Feb 02, 2023 Feb 02, 2023

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 02, 2023 Feb 02, 2023

Copy link to clipboard

Copied

Yes, and it is the best I've used so far, it preserves perfectly the real geometry and it is super robust and fast, however sampler always stretches the textures to square ratios, and it only allows to export up to 4k res is it right?

 

If adobe do not provide any solution to transform normal into height (I also consider other adobe apps if they have what I'm looking for) I might consider to rebuild the algorithm via script, but I'm not a programmer or a matematician so I would need reference bibliography for that, I've already found plenty of alternative approaces, but the sampler's one is the best one I've found in terms of geometric accuracy and speed, do you know if adobe ever published a paper explaining their approach?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 02, 2023 Feb 02, 2023

Copy link to clipboard

Copied

Hi,
You should be able to export non square maps, by click on the lock icon (in viewport and export window).
But the resolution must to be a factor of two. 

The biggest resolution we can export from 3D Sampler today is 4k.

Regards.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 02, 2023 Feb 02, 2023

Copy link to clipboard

Copied

Yea I've seen the lock icon but I needed to preserve the original size and resolution.

What are the chances to have this feature in future updates?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 03, 2023 Feb 03, 2023

Copy link to clipboard

Copied

This isn't related to the original size but the working/export size. 
It is here only to keep resolution ratio between x and y. 

Or maybe I didn't quite understand your issue?
It be best if you can share screens to help us understand.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 03, 2023 Feb 03, 2023

Copy link to clipboard

Copied

It is a hard thing to show with a screenshot, I try to explain it better, I already have a normal map with a given resolution (lets say 8000x 1216), I need to generate the height map and export the height map with the same resolution of the original normal map that generated it. At the moment it is not possible in substance I guess. I mean I can generate the height map perfectly but at the moment of export I can not preserve the original ratio and resolution because it forces you to rescale the export to a 2x1 or 1x1 ratio with maximum res of 4096 per side

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 03, 2023 Feb 03, 2023

Copy link to clipboard

Copied

Yes, this kind of custom + high resolution export are not available in 3D Sampler.
As I mentioned earlier the resolution must to be a factor of two and the biggest resolution we can export today is 4k.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

Yea, thanks  for the clarification, that was my worry, pity that sampler does not support native resolution of the textures, this is quite limiting honestly.
I add another thing: I've noticed that the calculation of the height from normal is accurate only for normal maps that have flat parameters, if the normal has not flat perimeters the height map extracted from that is geometrically very inaccurate, since it flattens the perimeter, is there any option to avoid perimeter flattening?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

You're welcome!

Can you share some files with me? The ones you encounter the issue with, or some screenshot of the issue (it really helps us to understand and help)?
So I can see if its a bug or if there's a workaround for you to use.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

Sure: here are the normal map and two screenshots explaining the problem:

normal_2.jpg

 normal map tested

corretta test.png

expected shape calculated with a more robust error minimization algorithm

test.png

the shape produced by substance using the normal-to-height filter, locally gives a rather correct result, but the perimeters are completely flattened thus globally the more you get closer to the perimeter the more error you get

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 22, 2023 Feb 22, 2023

Copy link to clipboard

Copied

Hi,

Can you try to enable the "preserve tiling" in the filter properties? 
It works on my end, and enabled or not it doesn't seem to influence the map quality at export. 

Screenshot 2023-02-22 at 14.43.03.png


Thank you!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 22, 2023 Feb 22, 2023

Copy link to clipboard

Copied

LATEST

thanks! I completly missed that one!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines