Page 1 of 2

Distance Map

PostPosted: Tue Dec 07, 2021 9:11 am
by haffy
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

Re: Distance Map

PostPosted: Tue Dec 07, 2021 9:53 am
by Meet
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

Re: Distance Map

PostPosted: Tue Dec 07, 2021 9:55 am
by haffy
Wow that looks great ! Hope Aoktar have something to make this work in C4D also.

Re: Distance Map

PostPosted: Tue Dec 07, 2021 11:18 am
by aoktar
All similar new nodes are combined under Custom Texture node. See it!

Re: Distance Map

PostPosted: Tue Dec 07, 2021 1:09 pm
by Meet
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?

Re: Distance Map

PostPosted: Tue Dec 07, 2021 1:35 pm
by aoktar
I'll take a look for that

Re: Distance Map

PostPosted: Tue Dec 07, 2021 4:06 pm
by jobigoud
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.

Re: Distance Map

PostPosted: Tue Dec 07, 2021 4:26 pm
by SSmolak
"Mesh volume SDF" - there is no such node in C4D

Re: Distance Map

PostPosted: Tue Dec 07, 2021 8:37 pm
by Meet
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

Re: Distance Map

PostPosted: Tue Dec 07, 2021 9:32 pm
by SSmolak
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 ?