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
   
 
Formula field and Volume Builder
Posted: 15 November 2022 05:30 PM   [ Ignore ]  
Total Posts:  7
Joined  2007-01-19

Hey everyone

I have a project where I’m trying to make what’s called a TPMS Gyroid surface. I have a specific formula and I would think I could do this with the formula affector and Volume Builder, but I can’t get it to do anything. I’m sure it’s because I don’t understand the correct way to enter the formula into the field. I’ve attached the formula I’m trying to get working and the result I’m shooting for. If anyone has any insights or can offer any solutions, please let me know. Happy to compensate for a solution to this.

Profile
 
 
Posted: 15 November 2022 07:57 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi dansemen,

Formulas do something with the content you have. In this case, for example, Fog is represented by Voxels. Those have a size that you specify in the settings. The formula can define whether they are produced or not, like building something with lego (i.e., rough compared to the perhaps infinite precision of a formula). There is a stone, or there is not. Then the Mesher places a surface over it.

You have not attached a formula, but from the idea of more or less complex objects that those formulas produce, the question is, wouldn’t a model be more straightforward if it is a structure and then used in a Cloner?

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 November 2022 09:40 PM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.:

Here is a simple example of a formula:
https://www.dropbox.com/s/dvogzk3x11pwmcm/CV3_2023_drs_22_VOfo_01.c4d.zip?dl=0

Formulas.
https://help.maxon.net/c4d/2023/en-us/Default.htm#html/6194.html

If you change the Voxel size, the patterns will change dramatically. Be careful with tiny sizes, as this value goes for X, Y, and Z. So a 1cm to 0.1 cm change produces up to 1000 times the data for the fog, while the resulting mesh eventually produces even more!

 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 November 2022 10:35 PM   [ Ignore ]   [ # 3 ]  
Total Posts:  7
Joined  2007-01-19

Hey, sorry about that. I could have sworn I attached an image of the formula and the result I’m going for. Trying again.

Profile
 
 
Posted: 15 November 2022 10:37 PM   [ Ignore ]   [ # 4 ]  
Total Posts:  7
Joined  2007-01-19

Here’s the result I’m trying to achieve.

Profile
 
 
Posted: 15 November 2022 10:58 PM   [ Ignore ]   [ # 5 ]  
Total Posts:  7
Joined  2007-01-19
Dr. Sassi - 15 November 2022 07:57 PM

Hi dansemen,

Formulas do something with the content you have. In this case, for example, Fog is represented by Voxels. Those have a size that you specify in the settings. The formula can define whether they are produced or not, like building something with lego (i.e., rough compared to the perhaps infinite precision of a formula). There is a stone, or there is not. Then the Mesher places a surface over it.

You have not attached a formula, but from the idea of more or less complex objects that those formulas produce, the question is, wouldn’t a model be more straightforward if it is a structure and then used in a Cloner?

All the best

I would agree but how do you model it precisely? If this formula could create a section, then you could put it in a cloner. They also want to be able to add thickness to the walls. I know that could be done using Erode and Dilate if I could get something that resembled their formula structure.

Profile
 
 
Posted: 15 November 2022 11:33 PM   [ Ignore ]   [ # 6 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi dansemen,

Thanks for the formula! I used <0.01 instead of zero to have a little wiggle room. This enables reasonable calculations, with an error of just 1%.
Otherwise, the Voxel Size would need to be much smaller.
Here is the formula, so it works in Cinema4D

?(((cos(px)*sin(py))+(cos(py)*sin(pz))+(cos(pz)*sin(px)))<0.01;1;0)


I would create one “unit”. Then perhaps straighten the edges or model based on that. Either way, this is an example, and if used as clones after being turned into a Mesh (Current State to object), you can do large areas with it (Cloner>Multi-Instance)

The unit, as far as I can read it from the formula, would be 360cm long, which should be set in the Formula entry “scale”, inside the Volume.

If you need it “thicker, change the S.Z value from 180cm to what you need. To create a sphere like, you have either use the results and place it again into a Volume and “boole” it internally. The unit would be then 360cm in X, Y, and Z.

Here is the file
https://www.dropbox.com/s/97aiunj17soz9l5/CV3_2023_drs_22_VOfo_11.c4d.zip?dl=0

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: 16 November 2022 03:29 AM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.:

Here is a file that allows you to set up your sphere. The sphere radius needs to be adjusted, and the number of clones. Done. Perhaps scale it down or up to your needs after harvesting a copy (Current State To Object). In your image some “channels” are open and some are closed, that is an artist call (manual work).

https://www.dropbox.com/s/oblvl1ox8fv6j5u/CV3_2023_drs_22_VOfo_21.c4d.zip?dl=0

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: 17 November 2022 04:32 AM   [ Ignore ]   [ # 8 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.S.:

I was interested if I could define the whole geometry based on formulas. (I used one for the sphere and one for the structure to keep it more accessible to adjust and “read”.)


https://www.dropbox.com/s/0ssatykw95nfnnp/CV3_2023_drs_22_VOfo_31.c4d.zip?dl=0

 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