A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
Dynamic Map Displacement for Cinema4D?
Posted: 13 October 2019 03:22 PM   [ Ignore ]  
Total Posts:  292
Joined  2017-09-24

Hi,

I’m watching this Blender tutorial where the plane is displaced as the tire passes through.

I can achieve it using the collision deformer without a problem.
What I am after is the displacement being baked into a map sequence?
The main reason is so I can render high-resolution displacement at render time

You can check an illustration file here:
https://www.dropbox.com/s/u8wxn0d6c34ct9o/c4d152_dynamic_map_displacement.c4d?dl=0

Is this possible? 

Thank you for looking at my problem

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

Profile
 
 
Posted: 13 October 2019 06:13 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Ben,

Have a look here, baking Displacements:
https://help.maxon.net/us/#TBAKETEXTURE-ID_BAKEOPTIONS

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 13 October 2019 10:22 PM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.: If I got your idea correctly, you could bake the full “imprint” of the tire and then one without. This can be blend over time.

See example:
https://www.amazon.com/clouddrive/share/XLAjdJxkuIbUgbr3SVhF9cUyaXz67tIjIAygotXi1io

I have used here a gradient, which is determined by two Null Objects. Change the time and render it again.

The Layer-mask could be driven by other options, even the Tracer with a Proximity Shader comes to mind.

I have set all objects to Scale 1, to have a clean set up. If you scale objects, be clear about if you use Model or Object mode!

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 14 October 2019 08:44 AM   [ Ignore ]   [ # 3 ]  
Total Posts:  292
Joined  2017-09-24

Hi @Dr. Sassi.

Thanks for the response.
I’m acquainted with baking displacement map. My main concern is baking it into a sequence map
With that said, I tried the baking displacement with animation with the details tab.
It bakes the whole sequence (frame 0 to frame 80) but only bakes the frame 0 - 3. So the rest of the frames are just duplicate.

You can see the result here:
https://www.dropbox.com/s/qb6dya82xny7t0s/c4d152_dynamic_map_displacement_02.mp4?dl=0

You can check the file here: (I’ve released the cache so you might need to recached it and then bake)
https://www.dropbox.com/s/v5ih7k6cqrt0h36/c4d152_dynamic_map_displacement_02.rar?dl=0

RE: I have used here a gradient. . .
Thanks for this. That seems like a decent workaround but it only works if the displacement is only one direction.
So, I’d prefer baking the displacement map into a sequence to account for other cases.

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

Profile
 
 
Posted: 14 October 2019 04:16 PM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Ben,

I do not use rar as compression. Yours gives me an error on my offline computer. This means I have to transfer it from one to the next machine, only to see that it is not arriving here well. For security reasons, please use just zip. Thanks.

I have set up a test file:
https://www.amazon.com/clouddrive/share/Die8au9BFXAs7SiUiv7Zj0sNwwi1fUyxKGH92M4LZOw
Please set your output part to a new folder.

Please make sure the Axes of both objects in your scene are in the same orientation.
Also, make sure the render settings are set to the frame range as well as fps in the way you need it.
If you have trouble, even all is set up correctly, perhaps you need to contact the support. I can’t reproduce it here.
https://www.maxon.net/en/support-center

To your comment about the linear track. I addressed this with the idea of using a Tracer/Proximal Shader as a mask. You could also create a traveling mask in a smaller resolution file. There are so many options. The only problem with any of these is given with paths that cross each other, which needs then more care. Yes, it needs some creativity to make it work efficiently, but that is the typical challenge every single day, right?

Cheers

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 15 October 2019 06:39 AM   [ Ignore ]   [ # 5 ]  
Total Posts:  292
Joined  2017-09-24

Hi Dr. Sassi

RE: rar
Sorry for the trouble. I forgot about it.
Here’s the zip version:
https://www.dropbox.com/s/tvbll4ys7rhrow1/c4d152_dynamic_map_displacement_02.zip?dl=0

If you cache the file, within the deformer, and hit bake, you’ll get what I was referring to

RE: set-up file.
Opened it. Yes, it works as expected. It seems like a you used a point cache to cache the displacement instead of the built-in cache optio in the deformer. May I ask why?

Anyhow, I tried the point cache on the tire track displacement but still gives me repeated/redundant displacement like in the video above.

Are there any other settings I should look out for?

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

Profile
 
 
Posted: 15 October 2019 06:42 AM   [ Ignore ]   [ # 6 ]  
Total Posts:  292
Joined  2017-09-24

Hi,

Whenever I bake a displacement through the bake material tag, the height keeps reverting back to 1cm.

You can see an illustration of the problem here:
https://www.dropbox.com/s/974osl6bdw32ggi/c4d155_height_displace_from_11_to_1.mp4?dl=0

Is this a bug? Thank you for looking at my problem.

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

Profile
 
 
Posted: 15 October 2019 03:53 PM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Ben,

Post #6: I have merged the two threads, to keep things organized.

Please have a look at this file, it works. I have set up everything newly, except for the wheel.
https://www.amazon.com/clouddrive/share/yK3rWCmb5fdaYpyLyohSvlJOPLTMrZ8RhYZEDmlOpIl

However, I can’t get anything out of your file. I checked everything three times, replaced parts, copied even into a new file. Somehow, something is wrong in your file. Is that all native C4D?
This is for the support to decide. I spent nearly an hour trying to make it work. No idea why your file fails, and my setups are working.
https://www.maxon.net/en/support-center

Good luck

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 15 October 2019 04:35 PM   [ Ignore ]   [ # 8 ]  
Total Posts:  292
Joined  2017-09-24

Hi Sassi,

No worries. There are just these days that C4D is randomly messing with me.
Anyway, Thanks for the effort. I’ll go ahead and contact Maxon.

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

Profile
 
 
Posted: 15 October 2019 05:23 PM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Ben,

I’m curious about what I have missed with the file. The same set up done with Cinema4D native objects, and all is fine.

You haven’t replied to my question; At least let the support know. The mesh showed a huge randomly placement of the polygons. I have yet to see such a random distribution of polygons from Cinema 4D. Hence my suspicion that it is a 3rd party “mesh”.
Since I replaced both meshes, and it worked, I assume your source is not the best.

Cheers

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 23 October 2019 02:27 AM   [ Ignore ]   [ # 10 ]  
Total Posts:  292
Joined  2017-09-24

Hi Dr. Sassi,

Sorry for the late response. Something came up.
With regard to the problem, I"m still waiting for Maxon’s support’s reply because I erroneously sent a different problem.

Will update as soon as they reply.


RE: Whenever I bake a displacement through the bake material tag, the height keeps reverting back to 1cm.
They mentioned that this was an expected behavior because it takes the height parameter from the material tag rather than the displacement tag.

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

Profile
 
 
Posted: 23 October 2019 03:20 AM   [ Ignore ]   [ # 11 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Thanks for the update, Ben.

The height, well, there is very little information in the manual, and empirically it is hard to see any precise relation, even if the Displacement source/information has 100% value.

Cheers

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 23 October 2019 02:44 PM   [ Ignore ]   [ # 12 ]  
Total Posts:  292
Joined  2017-09-24

Hi Dr. Sassi,

The Maxon support responded. Basically, the main fix is
1) Use intensity (centered)
2) Have the project, render and bake material frame rate to be the same.

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

Profile
 
 
Posted: 23 October 2019 03:38 PM   [ Ignore ]   [ # 13 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Thanks for the update, Ben.

These suggestions are in line with mine, and they are just spot on. However, with your problem file, I get the same result that started this thread.

If it works on your end, good.

Cheers

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile