C4D sculpt displacement / normal map problems

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

simonrobson
Licensed Customer
Posts: 11
Joined: Thu May 17, 2018 1:51 am

Hi,
I'm in Octane 3.08
I can't list how many times I've tried to sculpt in C4D, bake displacement and normal maps and try to make them work in Octane. There's a couple of threads on this forum I've tried, but nothing seems to work. I've always made sure my objects are correctly UV'd, it never works.

Has anyone come up with a fool-proof way of getting baked displacement and normal maps from C4D's sculpt system to work in Octane?

If not, what do people sculpt in to create displacement and normal maps that work with Octane for C4D?

I need some help here.

Thanks,

Simon
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

Example please!
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
simonrobson
Licensed Customer
Posts: 11
Joined: Thu May 17, 2018 1:51 am

Thanks for replying Aoktar,
I'm away from my PC today but will post a detailed example tomorrow, about 24 hours from now.
Simon
simonrobson
Licensed Customer
Posts: 11
Joined: Thu May 17, 2018 1:51 am

Hi Aoktar,
I've attached an example file. A simple sculpted cube test with 4k displacement and normal maps.
Cube is correctly UV'd. Sculpt cube subdivided to 7 ande baked down to a base mesh of 3. Bake settings attached.

As you'll see, geometric artefacts occur around the sculpt and where the cube UV joins are.

I've played with the displace and normal settings, changing follow geometirc and vertexs normals. Taking UV power to 0.5 seems to help somewhat. But nothing get me near a desired result as one sees in the C4D material displace.

Any help much appreciated
baking tab 1.PNG
baking tab 2.PNG
baking tab 3.PNG
octane_sculpt_test05.zip
(95.12 MiB) Downloaded 301 times
Attachments
UVs.PNG
UVs.PNG (5.65 KiB) Viewed 3993 times
subdivided and sculpted.PNG
simonrobson
Licensed Customer
Posts: 11
Joined: Thu May 17, 2018 1:51 am

Hi Aoktar
Any thoughts on this?
Thanks,
Simon
User avatar
bepeg4d
Octane Guru
Posts: 10371
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi Simon,
the issue is in the way is calculated the normal map:
Screen Shot 2018-07-16 at 16.32.03.png
after roughly change it in Photoshop:
Screen Shot 2018-07-16 at 16.31.29.png
the issue is almost gone:
Screen Shot 2018-07-16 at 16.36.06.png
Please, try to calculate the normal map in tangent mode, with purple background.
Here is the modified scene:
octane_sculpt_test05b.zip
ciao Beppe
simonrobson
Licensed Customer
Posts: 11
Joined: Thu May 17, 2018 1:51 am

Thanks Beppe,
This is really useful and I tried it myself with reasonable success.
Could you tell me a bit more about the bevelling you seem to have applied in Photoshop to the edge of the UVs and how I should approach this for my UV maps. It seems to prevent the obvious edges where UV edges meet on the model.

Simon
User avatar
bepeg4d
Octane Guru
Posts: 10371
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi,
unfortunately the bevel comes out if you directly transform the c4d normal in normal map in Photoshop.
To minimize the effect, I have colored the gray part into R=50, G=50, B=100, before applying the Normal map filter.
If you recalculate the Normal map in purple mode in c4d, it should be more easy, and you should need to change only the gray background.
ciao Beppe
simonrobson
Licensed Customer
Posts: 11
Joined: Thu May 17, 2018 1:51 am

Hey Beppe,
I recalculated the normal map in Tangent mode. I then turned the colour surrounding the normals to the same purple as in your map: 128,128,255

The result is better, but I get a hard edge there the cube UVs touch. Please see the attached render image.

What's the best way to avoid this hard edge?

Thanks so much for your help.

Simon
sculpt_test_04_Normal_Source_7_simon.zip
(67.88 MiB) Downloaded 271 times
normal_tangent_mode.PNG
TonyBoy
Licensed Customer
Posts: 238
Joined: Thu Dec 13, 2012 4:47 pm

Have you tried UV projection?
Post Reply

Return to “Maxon Cinema 4D”