Page 1 of 1

Displacement with Vertex texture in c4d

PostPosted: Fri May 13, 2022 6:55 pm
by zyd-1990
Snipaste_2022-05-14_02-54-06.png
How can i use Vertex texture to displacement? It doesn't work when I do this.

Re: Displacement with Vertex texture in c4d

PostPosted: Mon May 16, 2022 7:25 am
by bepeg4d
Hi,
you can use the Vertex Map into a c4d Displacer deformer:
84F15A89-E7C7-433C-856E-3888A57845AE.jpeg


ciao,
Beppe

Re: Displacement with Vertex texture in c4d

PostPosted: Wed Jan 18, 2023 10:48 pm
by nullbio
Is there no way to do this within the node editor? Using a c4d displacement is not a viable option for a lot of use cases - for me I require too many subdivisions to use c4d displacement, it makes working with my scene in the viewport unbearable - need to be able to use the material subdivisions instead.

I'm trying to selectively displace a certain area of my object using the vertex map and it's not working no matter what I try.

Re: Displacement with Vertex texture in c4d

PostPosted: Thu Jan 19, 2023 9:37 am
by aoktar
nullbio wrote:Is there no way to do this within the node editor? Using a c4d displacement is not a viable option for a lot of use cases - for me I require too many subdivisions to use c4d displacement, it makes working with my scene in the viewport unbearable - need to be able to use the material subdivisions instead.

I'm trying to selectively displace a certain area of my object using the vertex map and it's not working no matter what I try.

For my opinion, there are not any difference to use vertexmap+vertex_displacement in Octane or vertexmap+displacement_modifier in C4D side. Both are requiring to have same amount vertexes. Where is the difference?

Re: Displacement with Vertex texture in c4d

PostPosted: Sun Jan 22, 2023 4:08 am
by nullbio
There's a large difference between the workflows, primarily due to the difference between using subdivisions at render time versus subdivisions in c4d. The c4d displacement deformer requires your geometry to already be subdivided to a sufficient degree and doesn't support render-time displacement, which means for high detail displacement the performance of your scene (navigating around the viewport, animating in the viewport) can be drastically impacted if you've got millions of polygons on your object. Sometimes to an unworkable degree in the case of photorealism displacement subjects such as highly textured objects like procedurally generated limestone bricks (a project I was working on).

If you're subdividing using the subd generator without baking that down, and you're subdividing a lot, it's really painful to work with your scene because it recalculates every time you move around the viewport or change other things in your scene. So generally you're forced to bake down the subdivisions, and now it's harder to work with your mesh from a modelling perspective if tweaks are required - forcing you to go back to a low poly copy to make adjustments, re-calculate subdivisions, re-adjust tags, and so forth. Not an ideal workflow.

In my particular use case I ran into this problem (32m tri's were needed for my super close-up shots, wouldn't have been practical to work with this in the viewport). I needed to create different displacement for the face of my object versus the rest of the object. Doing it using c4d subd/displacement would have meant that my objects face displacement is all managed through the c4d shaders on the deformer as well which makes it more difficult to work with from a material/texturing perspective as it's separate from my Octane material. For my project I had to create UVs and use those to create masks in photoshop for my displacement, and use vertex displacement mixers to mask out areas. Would have been a lot easier if I could have used a vertex map for the mask instead of having to UV map & create mask images.

It's also faster to use octane's subdivisions in general, as noted in your documentation:

Note that the Octane Object tag and the Displacement node subdivision will do the subdivision on the GPU, which will improve the time it takes to load the asset onto the GPU — as opposed to the Cinema SubD generator, which uses the CPU to subdivide and will result in quite a bit more data being sent over to the GPU over the bus, and that will take some time in comparison.

Re: Displacement with Vertex texture in c4d

PostPosted: Sun Jan 22, 2023 1:48 pm
by aoktar
Sorry but I don't think that's valid. First there are not any limitations on plugin side, it's a core limitation. Also you can use Subdivision node with just Render parameter high. Preparation and update times are identical with Octane Subdivision and C4D subdivision according to my tests.

Re: Displacement with Vertex texture in c4d

PostPosted: Mon Jan 23, 2023 12:31 am
by nullbio
aoktar wrote:Sorry but I don't think that's valid. First there are not any limitations on plugin side, it's a core limitation. Also you can use Subdivision node with just Render parameter high. Preparation and update times are identical with Octane Subdivision and C4D subdivision according to my tests.


True, you can lower viewport subdivisions. You're still now forced into the c4d shader system and have no ability to use your existing material nodes or access the flexibility that comes with Octanes node system. It's also still easier to manage everything through the single material and Octane material tag, than have multiple places to manage shaders and subdivisions.

Is Redshift not a plugin? Because it works in Redshift, in the old xpresso node system too (vertex map with linear field, RS color layer to mask, then into displacement).

Re: Displacement with Vertex texture in c4d

PostPosted: Mon Jan 23, 2023 8:36 am
by aoktar
Problem is not on plugin side. This is not yet supported in the Renderer

Re: Displacement with Vertex texture in c4d

PostPosted: Wed Jan 25, 2023 3:08 am
by nullbio
aoktar wrote:Problem is not on plugin side. This is not yet supported in the Renderer


Ah, understood. No problem. It would be cool to see this feature in the future, I hope it is added eventually.

Re: Displacement with Vertex texture in c4d

PostPosted: Fri Feb 10, 2023 8:24 am
by nullbio
I figured out why C4D's subdivision surface isn't a solution here (something I had known but forgotten), it's because Octane uses the viewport subdivision value not the render subdivision value. So my original points still stand, you can't escape having viewport/scene performance issues when dealing with lots of subdivisions. Vertex map support in Octane is really needed. Having to do it all in image editors with image masks and UVs is a lot of work in contrast to how Redshift does this.