Distance Map

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

Moderators: ChrisHekman, aoktar

haffy
Licensed Customer
Posts: 174
Joined: Mon Oct 26, 2015 12:19 pm
Location: SE
Contact:

Nice to see that so many are involved and probably interested in this also. It would be so great if this worked in C4D also or Blender, but preferably C4D as I do my main work there. Making asphalt, snow mixed with water or ice or any ground material for that matter would be taken to the next level. Especially when working with liquids that interact with the material.
3D Generalist.
Meet
Licensed Customer
Posts: 49
Joined: Thu Jan 07, 2021 10:59 am

haffy wrote:Nice to see that so many are involved and probably interested in this also. It would be so great if this worked in C4D also or Blender, but preferably C4D as I do my main work there. Making asphalt, snow mixed with water or ice or any ground material for that matter would be taken to the next level. Especially when working with liquids that interact with the material.
Hello haffy, it works fine in blender but it is compute heavy and mesh sdf only works with closed meshes

and yes, would like to know how to make it work in c4d
Attachments
Mesh SDF + Volume to Texture.blend
(10.61 MiB) Downloaded 113 times
blender_g70LOigUFC.png
Ryzen 9 5900x | 64GB RAM | 1x RTX 3090
Blender | C4D | Standalone
Win 10
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

I think that one of the workaround to make distance map is to use Vertex Map with spline field layer ( which can be converted from object ) :
distance_vertex.jpg
distance_vertex2.jpg
distance_vertex3.jpg
Also the new Cinema R26.107 introduce curvature fields to vertex map :
distance_vertex_curvature.jpg
It is explained here : https://youtu.be/wkm-suj0_z8?t=2377

Vertex Maps can be used within materials in conjuction with gradient node and in Scatter too and they can be inverted.

Curvature or Dirt nodes can be used too for small distance :
distance_curvature.jpg
Next way is to use UV map created by cutting main ground polygon using Knife by splines ( converted from objects outlines ). These polygon islands in UV map mode can be colored by white color and creating low-res blurred image using Cinema's BodyPaint can be driven in Octane material by Gradient node to make distance from them.
Architectural Visualizations http://www.archviz-4d.studio
haffy
Licensed Customer
Posts: 174
Joined: Mon Oct 26, 2015 12:19 pm
Location: SE
Contact:

Great SSmolak, this sounds like a good workaround.
3D Generalist.
Post Reply

Return to “Maxon Cinema 4D”