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
   
 
Cloner Color, Physics & Fields Conflict
Posted: 20 June 2022 02:01 PM   [ Ignore ]  
Total Posts:  11
Joined  2021-10-15

Hello smile

I’m trying to accomplish 3 things:

1) Render particles as cloned objects with random colors (using Redshift & user data)
2) Enable physics so the cloned objects don’t intersect
3) Use the cloned objects as a falloff for a Displacer

I watched Athanasios’s video on transferring mograph data with fields, but unfortunately I couldn’t find a solution:
https://www.cineversity.com/vidplaytut/demystifying_cinema_4d_fields_mograph_object_field_and_variable_tag_field

At first I tried adding the Cloner as a point object in the Displacer’s falloff list, but it didn’t have any effect. I tested this further with a simple Cloner object, and the falloff worked, so it had something to do with using the Emitter as a source for the Cloner that made it stop work.

I was able to get the Cloner to work as a field when I placed it in a Connect, but then I wasn’t able to get user data for a Redshift material, also physics stopped working so the objects would overlap.

I also tried exporting the Cloner as an Alembic, which worked as a falloff, and baked the physics, but the user data got lost.

I can’t think of any more options at the moment, any help is appreciated. Project file is attached.

File Attachments
220620-more_cloner_tests-02.zip  (File Size: 98KB - Downloads: 64)
Profile
 
 
Posted: 20 June 2022 05:50 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi jason.


Please have a look here:
https://www.amazon.com/clouddrive/share/qzae9wkJTtouphRPnRDWoeAchjL8wBpgl0urDjLiQSj

When Dynamic takes over, the MoGraph data is only the starting point. If you cache it, it will be available. However, the Displacer needs something else.
I think this is the simples way. Just copy the ClonerCloner and feed the initial ClonerCloner as the source object, Distribution> Axis.

The point radius is critical.

I added a Delay Effector set to Deform> Point and Spring mode. Not needed, but it looks better to me.

Alternative: The Plane needs to be a polygon (editable). Use the Object Manager> Tags> Rigging Tags> Point Cache and store the point changes, then switch off the deformer! Otherwise, you get perhaps twice the information.
Now the Connect Object can be switched off, and you have your colors back.
Example
https://www.amazon.com/clouddrive/share/KbqCGbPe4Xd7JJPii35xypZbJOhdtYEj38bOxifRKtQ

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: 20 June 2022 06:43 PM   [ Ignore ]   [ # 2 ]  
Total Posts:  11
Joined  2021-10-15

I dug a little deeper into using a Mograph object in the fields list of the Displacer. I was able to use the Weight Transform value from a Plain effector to create a falloff, but it only creates a single point at the center of the particle and doesn’t take into account the position & surface of the cloned object after physics has been applied.

Project file is attached.

EDIT: Oops, didn’t see your reply before writing this. Taking a look at your files now.

File Attachments
220620-more_cloner_tests-02.zip  (File Size: 98KB - Downloads: 56)
Profile
 
 
Posted: 21 June 2022 03:54 AM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.: Here is a simpler version:
https://www.amazon.com/clouddrive/share/RROo1Aze6H2fTtj68J27NLSgKpe2iXjoEJuzfQyzLtU

It uses an Instance object between the Cloner and the Connect, which allows to keep the color and use the data in the Displacer.

 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: 21 June 2022 05:18 AM   [ Ignore ]   [ # 4 ]  
Total Posts:  11
Joined  2021-10-15

Wow, thanks for the follow-up! I had actually tried using an Instance of the Cloner previously, but it doesn’t work in S24 for some reason.

I actually downgraded from R26 because I found the new Redshift 3.5 versions to perform really slow and unstable. I’ve already gone back and forth with the folks in the Redshift forum, and their only answer is that the Nvidia drivers aren’t playing nice, so I gave up and downgraded to S24 in order to run Redshift 3.0.

That said, using an Instance does work in R26, so whatever the case looks like Maxon fixed something there. I might use your Point Cache suggestion in the end, I think that’s a simple enough solution for now.

Thanks again, I really appreciate it!

-J

Profile
 
 
Posted: 21 June 2022 05:30 AM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

You’re very welcome, J.!

Thanks for taking the time.

My best wishes for your project.

 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