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:

Is there anything like Coronas Distance Map in Octane?

https://coronarenderer.freshdesk.com/su ... stance-map

I want to use it in this way.
https://www.youtube.com/watch?v=JQmd75s ... WL&index=6
3D Generalist.
Meet
Licensed Customer
Posts: 49
Joined: Thu Jan 07, 2021 10:59 am

Hello, I think you can use the new relative node which was introduced in octane 2021.
It works fine in blender as you can refer objects location but I wonder how it can be done with C4D as there is no object data node in c4d or any way to refer location of an object in C4D.
Maybe Aoktar can shed some light on it
Attachments
Relative Distance.blend
Octane 2021.1 Blend file
(9.35 MiB) Downloaded 129 times
blender_mVUlB7c3RM.jpg
Ryzen 9 5900x | 64GB RAM | 1x RTX 3090
Blender | C4D | Standalone
Win 10
haffy
Licensed Customer
Posts: 174
Joined: Mon Oct 26, 2015 12:19 pm
Location: SE
Contact:

Wow that looks great ! Hope Aoktar have something to make this work in C4D also.
3D Generalist.
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

All similar new nodes are combined under Custom Texture node. See it!
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Meet
Licensed Customer
Posts: 49
Joined: Thu Jan 07, 2021 10:59 am

aoktar wrote:All similar new nodes are combined under Custom Texture node. See it!
Yes, we have access to the relative distance node, but how do you reference an object's location into the transform?
like this
chrome_UxQUa6EWUL.png

For example in perspective projection node in C4D we have option to add a camera, maybe something similar could be done here for the relative distance transform?
Ryzen 9 5900x | 64GB RAM | 1x RTX 3090
Blender | C4D | Standalone
Win 10
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

I'll take a look for that
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
jobigoud
OctaneRender Team
Posts: 250
Joined: Sat Aug 15, 2015 1:28 pm

Note that the Relative distance node will give you the distance to a single point of reference, not the distance to the surface of the object. If you need the distance to the surface you need to convert the mesh to a distance field via the Mesh volume SDF node and extend the outside border thickness to where you need to make the measurement. Then use a Volume to texture node to convert the Volume SDF into a distance texture that you can use in some other material.
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

"Mesh volume SDF" - there is no such node in C4D
Architectural Visualizations http://www.archviz-4d.studio
Meet
Licensed Customer
Posts: 49
Joined: Thu Jan 07, 2021 10:59 am

jobigoud wrote:Note that the Relative distance node will give you the distance to a single point of reference, not the distance to the surface of the object. If you need the distance to the surface you need to convert the mesh to a distance field via the Mesh volume SDF node and extend the outside border thickness to where you need to make the measurement. Then use a Volume to texture node to convert the Volume SDF into a distance texture that you can use in some other material.
Thanks, that makes sense. Just tried it in Blender, works as expected but as SSmolak mentioned, there is no Mesh SDF node in C4D.
I believe it is in live viewer > objects > SDF, but no idea on how to use it
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

Meet wrote: I believe it is in live viewer > objects > SDF, but no idea on how to use it
Yes it is of course but this is an object not node... Or maybe it must be done within Octane SDF object nodes ?
Architectural Visualizations http://www.archviz-4d.studio
Post Reply

Return to “Maxon Cinema 4D”