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
   
1 of 2
1
key framing rotation causes xpresso to fail.
Posted: 27 August 2019 12:44 AM   [ Ignore ]  
Total Posts:  14
Joined  2019-07-24

Hi all,
I have a series of cogs that form a machine. They are controlled by an expresso using a master cog and math:multiply based on the number of teeth on each cog. When i manually rotate the master cog, it works. it also works when i key frame rotation up to 360 degrees. However i need it to rotate 30 times in 30 seconds. If i add a key frame with 10800 degrees of rotation some of the cogs rotate erratically. does anyone have any clue or suggestions please. thank you.

File included

File Attachments
DP0378 cogs only rotation issue.c4d.zip  (File Size: 551KB - Downloads: 3)
Profile
 
 
Posted: 27 August 2019 12:56 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Dependable Productions,

Edit: I see that you have attached a file, sadly the attachment system is currently broken/edit

I have sent you an upload link. At the moment a file arrives, I will get a message from dropbox.

Since I have no file so far, perhaps a 360º v. 2PI problem? Degree v. Radians? Type into the field 188.496 (instead of 10800º)

Does it work now?

Example file
https://www.amazon.com/clouddrive/share/jmz6HlCKWrj1c6OHR0H6ZY8Nc6xvfr2gkGnNITAyAUx

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: 27 August 2019 01:53 AM   [ Ignore ]   [ # 2 ]  
Total Posts:  14
Joined  2019-07-24

Hi,
The file can be downloaded here:
https://wetransfer.com/downloads/d45a51fe51bcfcca4fff41de39f9d0b020190827175054/406d56a4b7473ad80a2bc1f86afd703e20190827175054/4cb19a

Any help would be appreciated

Profile
 
 
Posted: 27 August 2019 02:07 AM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Please check your Private Messages here on Cineversity.

 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: 27 August 2019 02:26 AM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Dependable Production,

Here is your file back
https://www.amazon.com/clouddrive/share/M6szU66liY99dcmVIYXlum3ry6sQJooHimGqILV35ya

I animated the Spline #1 R.B value, and set it to linear interpolation. Yes, the file shows only 1080º.
What I can see at 10800º is an effect where it rotates too fast and provides the illusion of rotating right and then not. With motion blur, this should be clear.
Perhaps have a look at the Checker-box that I have applied, it even is at 1080º too fast on end.

Project file for the Degree and Radiance (Constant Node) explanation.
https://www.amazon.com/clouddrive/share/zoJNVedtYuIIw1MLGJPviFnzWZzQlxRn98DOAIedkjt

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: 27 August 2019 02:47 AM   [ Ignore ]   [ # 5 ]  
Total Posts:  14
Joined  2019-07-24

Sorry for this but please will explain the difference between 10800 degrees (i.e. 360 degrees *30) and entering 188.496?  I’ve tried that but get half a rotation of my master cog?

Profile
 
 
Posted: 27 August 2019 12:55 PM   [ Ignore ]   [ # 6 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Dependable Production,

In the Xpresso file, the parameter in the Constant node needs to be in Radians. This means 360º is expressed in two PI. [6.28…] In the Object >Attribute Manager> Rotation fields, Degree is expected. If you place radians values there (while degree is expected), it will be much slower.

In post #4, I have added one file, your file. This morning I was, As I wrote in a rush to be on time for the Funeral. So I shared only the Xpresso example.

Your file is now added as well in post #4. Please got to frame 500 and render motion blur, you will see that most teeth are just not visible anymore.
The editor shows per frame a single frozen representation of the scene, no motion blur. You have seen it in movies when the wheel seems to move backward. Then stops even and moves forward later on. This has to do with the frame rate and the rotational speed. Google, “Why do car wheels spin backward on video?” and find a more extensive collection explaining the ‘secret’.

When you play just the editor view, you can see the change of the tooth representation.

I hope that explains it, if not, please let me know, I will then try to set up a better example.

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: 27 August 2019 11:44 PM   [ Ignore ]   [ # 7 ]  
Total Posts:  14
Joined  2019-07-24

Thanks so much for this.  I understand the idea of the wheels appearing to move backwards.  I don’t understand your first point about radians v degrees.  What do you mean by the constant node parameter.  And how do we place radiance value in the rotation field when it simply makes it degrees?  I get that the solution is just to slow the whole thing down a lot but it would be great to have a better understanding as well.

Profile
 
 
Posted: 28 August 2019 12:21 AM   [ Ignore ]   [ # 8 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Dependable Productions,

I get that the editor impression and the real rotation is not in question anymore.

To the problem of radians and degree:

Please have a look at the short text about this in the help manual:
https://help.maxon.net/us/#GVDEGREE

Initially, I had no file, and typically, I do not try to guess what could have happened. I should not have done so, as I see how those guesses produce even more confusion. I think of guessing, instead of examining a scene file, as an act of professionalism, as it takes time to go through the guess while dealing with a problem. Sorry that I even tried, my fault. I usually request a scene file, it is clear to me after 15 years answering Cinema 4D questions, that I should know better. Much better than doing that guess-work thingy again. Please accept my apology. (It drives me nuts in other places when a long series of guess-work is done, with no real result, instead of opening the file in question and find facts. Yes, sometimes one can’t share the file, then an example file must do.

However, since the confusion has taken place, let me clean this up.
Here is a short screen capture about the problem to deal with two systems.
https://www.amazon.com/clouddrive/share/gTdVXQcKeb7cjgOk3ROYXkN9tl8t9UXUTQwPgiFrAuo

In Xpresso we need radians (normally), In the standard interface (outside of Xpresso) we need Degree, for any rotational parameter. If you place this otherwise, the expected speed will not match.

Again, let me know if there is anything not clear, and I will find something else to communicate about this.

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: 28 August 2019 12:25 AM   [ Ignore ]   [ # 9 ]  
Total Posts:  14
Joined  2019-07-24

Thanks for the reply looking at that now. another thing - how did you get the preview to play smoothly in real time. thanks

Profile
 
 
Posted: 28 August 2019 12:55 AM   [ Ignore ]   [ # 10 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Dependable Productions,

The Splines in your scene have a lot of points, I guess half of the amount or even a quarter would have been sufficient, but this is of course only true if the camera takes no close-ups of the teeth. So toss this idea if the camera work requires it. Since the wheels are made editable, there is not really an options to reduce this quickly.

Some adjustments might help to get a more fluid preview. In this case,  setting a lower ‘Level of Detail” isn’t helping, nor does the idea to set the splines to Linear and no interpolation.

To have the settings to Play All Frames set to on might slows down the preview. You can check that by setting the FPS to 500 and toggle this (Play all Frames) on and off. It should show clearly. If it affects your 30FPS project time is based on your hardware, of course, something, I might not say anything about it, as I would need to have it.

Here is what I see on a regular 5K iMac. Which is not anywhere near the most powerful option of course.
https://www.amazon.com/clouddrive/share/ORyk5UJvXibuHlI3QNEsIQdf3Wpv05dOZcar8pVo7GM

If you like to check the speed:
https://www.maxon.net/en/products/cinebench-r20-overview/
Test your system, then google if there are results available to compare.

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: 12 September 2019 09:58 AM   [ Ignore ]   [ # 11 ]  
Total Posts:  14
Joined  2019-07-24

Hi

Thank you for your reply. Sorry i have another issue with the cogs. the cogs still do not rotating properly. i have added a degree to be able to change the radians to radians however at 00.01.07 (frame 32 )the result changed from -203.414 to -0.495 on 00.01.08 (frame 33 ) this happens on cog 4 and 5 however before this jump happens it goes up steadily. i only have problems with cogs that i have a parent and child relationship, how do i fix it so it does not have the gutter in the cogs. you can also see and example of this at the start of the animation.

here is a link of my file https://we.tl/t-zjM4AuXhHI

thanks

Profile
 
 
Posted: 12 September 2019 02:52 PM   [ Ignore ]   [ # 12 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Dependable Productions,

Please have a look at your Cineversity Private messages.

I just do not click on links that I don’t know where they lead me. Sorry. Dropbox, Amazon, Google, Adobe, or Apple. Anything else, for security reasons, not at all. Thanks for understanding.

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: 12 September 2019 03:30 PM   [ Ignore ]   [ # 13 ]  
Total Posts:  14
Joined  2019-07-24

hi Sassi,

Sorry for sending the incorrect link.

here is the link https://www.dropbox.com/s/sy3373q9kaqkagg/cogs not working.c4d?dl=0

thanks

Profile
 
 
Posted: 12 September 2019 06:21 PM   [ Ignore ]   [ # 14 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Dependable Productions,

Inside of a Radiance based calculation, there is no need to convert back and fore.

Please note how X-Manager (Xpresso Editor) is sorted, top to button, as this sequence is crucial (Priorities)more often than not.

The Extrude is rotated, not the spline, it will prevent mesh problems. It also allows setting the Cogwheels to a P.R value, that adjusts the connection to the neighbors.

Here is a completely new set up file.
https://www.amazon.com/clouddrive/share/y06mTod9X1FW0gsLQMKm2DicxQieHnIfh4wu5zJOrSr

Please allow for a moment to set up an alternative file.
The Cogwheels are adjustable, and the teeth are used for calculations, which will be more precise.

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: 12 September 2019 08:17 PM   [ Ignore ]   [ # 15 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.: My personal way of setting up cogwheels has been since long (20 years by now?) based on tooth-count. As this is the most relative ratio among all wheels. Yes, the diameter would be the one I would have used back in time in my early education in metal-work.

For visualization, the teeth count is appropriate and much easier to handle in Xpresso. Please note that I turned every second wheel in the chain R.H:180º. Which means I don’t have even to bother in which direction it turns.

To have the Teeth calculation separate from the Angle allows from my point of view for better precision and management in the Xpresso setup.

File and screenshot.
https://www.amazon.com/clouddrive/share/gvaAo4cS2uKXqChQV8ZNgV3awIALnyPmQVxzPgD7s2G

I have added a shader as well as holes into the wheels to counter the strobe effect discussed earlier.

ENJOY.

 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
 
 
   
1 of 2
1