Triplanar mapped bump problem - gamma issue?

Forums: Triplanar mapped bump problem - gamma issue?
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Triplanar mapped bump problem - gamma issue?

Postby AWOLism » Tue Apr 13, 2021 9:42 am

AWOLism Tue Apr 13, 2021 9:42 am
Hello!

Whenever I have been using triplanar mapped bump maps I have always felt that there is something off, so I wanted to do a proper test.

I have set up two test scenes with two spheres and two planes, one of the planes and one of the spheres are using UV mapping, and the others are using triplanar mapping.
I used a UV test grid map to make sure the scale of the mapping is the same, and a simple image of some noise as bump.

When comparing the results, you can clearly see a huge difference in the bump map result. The UV mapped objects look as expected, but the triplanar mapped ones look very odd, rough and lacking highlights.
At first, I couldn't figure out why, but then I tried applying a Color Correction Node to the triplanar mapped image. With a gamma value of around 3.1, suddenly the result is looking more like the reference UV mapped noise.

Is this a bug, or intended result? The albedo map does not seem to be affected, as it looks the same regardless of mapping type.

Attaching renders and a ZIP with the test scenes.

Triplanar VS UV - No gamma correction.png

Triplanar VS UV - With gamma correction.png
Attachments
Triplanar VS UV.zip
(1.74 MiB) Downloaded 180 times
C4D R2023 + Octane 2022.1 | Windows 10 Pro | 64 gb ram | 1 x RTX3090
AWOLism
Licensed Customer
Licensed Customer
 
Posts: 70
Joined: Thu Aug 30, 2018 12:10 pm

Re: Triplanar mapped bump problem - gamma issue?

Postby AWOLism » Fri Apr 16, 2021 3:25 pm

AWOLism Fri Apr 16, 2021 3:25 pm
*Bump* (pun intended)
C4D R2023 + Octane 2022.1 | Windows 10 Pro | 64 gb ram | 1 x RTX3090
AWOLism
Licensed Customer
Licensed Customer
 
Posts: 70
Joined: Thu Aug 30, 2018 12:10 pm

Re: Triplanar mapped bump problem - gamma issue?

Postby AWOLism » Thu Apr 29, 2021 12:52 pm

AWOLism Thu Apr 29, 2021 12:52 pm
It would be great if someone at Otoy, Bepe or Aoktar for instance, could have a look at this and offer some insight.

Thanks
Andreas
C4D R2023 + Octane 2022.1 | Windows 10 Pro | 64 gb ram | 1 x RTX3090
AWOLism
Licensed Customer
Licensed Customer
 
Posts: 70
Joined: Thu Aug 30, 2018 12:10 pm

Re: Triplanar mapped bump problem - gamma issue?

Postby jayroth2020 » Thu Apr 29, 2021 6:49 pm

jayroth2020 Thu Apr 29, 2021 6:49 pm
Hi Andreas, the images cannot match, based upon the way you have it set up. The UV cube and sphere image maps are scaled at 1.0, but the Triplanar cube and sphere image maps are scaled at 0.05. That scaling is significant, and you will see some differences as a result. Your gamma correction attempts to resolve the differences, and that is a reasonable approach to take in this scenario.
CaseLabs Mercury S8 / ASUS Z10PE-D8 WS / Crucial 64GB 2133 DDR4 / 2 XEON E5-2687W v3 3.1 GHz / EVGA 1600 P2 / 1 EVGA RTX 3090Ti FTW3 Hybrid / 2 EVGA RTX 2080Ti FTW3 Hybrid/ Cinema 4D
jayroth2020
OctaneRender Team
OctaneRender Team
 
Posts: 469
Joined: Mon May 04, 2020 7:30 pm

Re: Triplanar mapped bump problem - gamma issue?

Postby AWOLism » Sat May 01, 2021 1:52 pm

AWOLism Sat May 01, 2021 1:52 pm
jayroth2020 wrote:Hi Andreas, the images cannot match, based upon the way you have it set up. The UV cube and sphere image maps are scaled at 1.0, but the Triplanar cube and sphere image maps are scaled at 0.05. That scaling is significant, and you will see some differences as a result. Your gamma correction attempts to resolve the differences, and that is a reasonable approach to take in this scenario.



Thanks for the reply, Jay. I appreciate it.

However, I don't feel much wiser. :)

Yes, you are correct that the triplanar texture is numerically significantly smaller scaled, but visually it's the same scale as the UV mapped material, as you can clearly tell from the colored checker map I used as scale reference.
Triplanar mapping set to a scale of 1 is huge, so to match the scale of the UV mapped object I have to scale down massively.

So my follow up question is, how should I be approaching this to avoid the rather unpredictable result from the neccessary downscaling and then needing to compensate with gamma correction?

Thanks
Andreas
C4D R2023 + Octane 2022.1 | Windows 10 Pro | 64 gb ram | 1 x RTX3090
AWOLism
Licensed Customer
Licensed Customer
 
Posts: 70
Joined: Thu Aug 30, 2018 12:10 pm

Re: Triplanar mapped bump problem - gamma issue?

Postby bepeg4d » Mon May 03, 2021 7:48 am

bepeg4d Mon May 03, 2021 7:48 am
Hi Andreas,
Jay's answer is more than wiser!
The Scale is crucial in Octane, and by default, it is designed to render at 100cm.
If you have a small object, and you also reduce a lot the scale, you go out of range for Octane.
Look at what happens if you change the Scale to 10, and the UV Transform to 0.5:
0008FA00-1E95-40C6-BBBB-8B5A0FB985B1.jpeg


ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9951
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Triplanar mapped bump problem - gamma issue?

Postby AWOLism » Tue May 04, 2021 11:37 am

AWOLism Tue May 04, 2021 11:37 am
bepeg4d wrote:Hi Andreas,
Jay's answer is more than wiser!
The Scale is crucial in Octane, and by default, it is designed to render at 100cm.
If you have a small object, and you also reduce a lot the scale, you go out of range for Octane.
Look at what happens if you change the Scale to 10, and the UV Transform to 0.5:
0008FA00-1E95-40C6-BBBB-8B5A0FB985B1.jpeg


ciao Beppe


Hi Beppe!

I understand. It probably makes perfect sense from a programmer/technical perspective. I understand that there must be some kind of scaling/interpolating/filtering going on in the engine for this type of thing, and that there might be limits or problems with massive scaling.
But from my user perspective I found it kind of confusing, as I had not encountered the same problem back when I was using for instance Vray. And it makes using Triplanar maps a little less appealing.

Is it possible to add it to some sort of wishlist for things that could be "improved"? If it can be improved?

Anyway, thanks for the reply!
C4D R2023 + Octane 2022.1 | Windows 10 Pro | 64 gb ram | 1 x RTX3090
AWOLism
Licensed Customer
Licensed Customer
 
Posts: 70
Joined: Thu Aug 30, 2018 12:10 pm

Re: Triplanar mapped bump problem - gamma issue?

Postby bepeg4d » Wed May 05, 2021 8:01 am

bepeg4d Wed May 05, 2021 8:01 am
You are welcome :)

Please consider that OctaneRender is not like other render engines, the Scale is crucial, due to its unbiased physically based nature.
This is why we have the Ray Epsilon value in the Kernel, that defines the precision of the rays, in relation with the scale of the project.

Anyway, since this technical limitation is not related to a single plugin, but to the general core SDK, the best way to inform the core devs is to use the following form, and have some votes from other users:
https://render.otoy.com/requests/?qa=ask

Happy GPU rendering,
ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9951
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Triplanar mapped bump problem - gamma issue?

Postby AWOLism » Wed May 05, 2021 9:49 am

AWOLism Wed May 05, 2021 9:49 am
bepeg4d wrote:You are welcome :)

Please consider that OctaneRender is not like other render engines, the Scale is crucial, due to its unbiased physically based nature.
This is why we have the Ray Epsilon value in the Kernel, that defines the precision of the rays, in relation with the scale of the project.

Anyway, since this technical limitation is not related to a single plugin, but to the general core SDK, the best way to inform the core devs is to use the following form, and have some votes from other users:
https://render.otoy.com/requests/?qa=ask

Happy GPU rendering,
ciao Beppe


Cool, thanks! I will make a request there.

Cheers
Andreas
C4D R2023 + Octane 2022.1 | Windows 10 Pro | 64 gb ram | 1 x RTX3090
AWOLism
Licensed Customer
Licensed Customer
 
Posts: 70
Joined: Thu Aug 30, 2018 12:10 pm

Re: Triplanar mapped bump problem - gamma issue?

Postby sethRichardson » Fri Aug 13, 2021 10:56 am

sethRichardson Fri Aug 13, 2021 10:56 am
bepeg4d wrote:You are welcome :)

Please consider that OctaneRender is not like other render engines, the Scale is crucial, due to its unbiased physically based nature.
This is why we have the Ray Epsilon value in the Kernel, that defines the precision of the rays, in relation with the scale of the project.

Anyway, since this technical limitation is not related to a single plugin, but to the general core SDK, the best way to inform the core devs is to use the following form, and have some votes from other users:
https://render.otoy.com/requests/?qa=ask

Happy GPU rendering,
ciao Beppe



Scale is crucial, so what happens when you are working to scale and Octane is still wrong lol. You are breaking your own rules. Say I have a product that is 50mm x 100mm x 25mm. I cant properly texture the plastic texture on it NO MATTER WHAT YOU DO. The only way I can do it is if I scale the scene by 10x so that the dimensions of the product are now 500mm x 1000mm x 250mm, of course this breaks things like oh I dont know DOF, sss, etc etc. Because you are no longer working to the correct scale but having to cheese. This means anything else you add to the scene will also need to be scaled up even though its not physically accurate anymore.

Perhaps you just dont understand the actual problem?
sethRichardson
Licensed Customer
Licensed Customer
 
Posts: 91
Joined: Thu Feb 27, 2014 2:16 am
Next

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 27 guests

Tue Apr 16, 2024 10:16 pm [ UTC ]