Distance Map

Forums: Distance Map
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Distance Map

Postby haffy » Tue Dec 07, 2021 9:11 am

haffy Tue Dec 07, 2021 9:11 am
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.
haffy
Licensed Customer
Licensed Customer
 
Posts: 173
Joined: Mon Oct 26, 2015 12:19 pm
Location: SE

Re: Distance Map

Postby Meet » Tue Dec 07, 2021 9:53 am

Meet Tue Dec 07, 2021 9:53 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 95 times
blender_mVUlB7c3RM.jpg
Ryzen 9 5900x | 64GB RAM | 1x RTX 3090
Blender | C4D | Standalone
Win 10
Meet
Licensed Customer
Licensed Customer
 
Posts: 49
Joined: Thu Jan 07, 2021 10:59 am

Re: Distance Map

Postby haffy » Tue Dec 07, 2021 9:55 am

haffy Tue Dec 07, 2021 9:55 am
Wow that looks great ! Hope Aoktar have something to make this work in C4D also.
3D Generalist.
haffy
Licensed Customer
Licensed Customer
 
Posts: 173
Joined: Mon Oct 26, 2015 12:19 pm
Location: SE

Re: Distance Map

Postby aoktar » Tue Dec 07, 2021 11:18 am

aoktar Tue Dec 07, 2021 11:18 am
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
User avatar
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15939
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: Distance Map

Postby Meet » Tue Dec 07, 2021 1:09 pm

Meet Tue Dec 07, 2021 1:09 pm
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
Meet
Licensed Customer
Licensed Customer
 
Posts: 49
Joined: Thu Jan 07, 2021 10:59 am

Re: Distance Map

Postby aoktar » Tue Dec 07, 2021 1:35 pm

aoktar Tue Dec 07, 2021 1:35 pm
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
aoktar
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15939
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye

Re: Distance Map

Postby jobigoud » Tue Dec 07, 2021 4:06 pm

jobigoud Tue Dec 07, 2021 4:06 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
jobigoud
OctaneRender Team
OctaneRender Team
 
Posts: 230
Joined: Sat Aug 15, 2015 1:28 pm

Re: Distance Map

Postby SSmolak » Tue Dec 07, 2021 4:26 pm

SSmolak Tue Dec 07, 2021 4:26 pm
"Mesh volume SDF" - there is no such node in C4D
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1070
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Re: Distance Map

Postby Meet » Tue Dec 07, 2021 8:37 pm

Meet Tue Dec 07, 2021 8:37 pm
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
Meet
Licensed Customer
Licensed Customer
 
Posts: 49
Joined: Thu Jan 07, 2021 10:59 am

Re: Distance Map

Postby SSmolak » Tue Dec 07, 2021 9:32 pm

SSmolak Tue Dec 07, 2021 9:32 pm
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
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1070
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Next

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 12 guests

Thu Mar 28, 2024 4:39 pm [ UTC ]