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
   
 
Rubiks random rotate ?
Posted: 28 July 2019 11:55 AM   [ Ignore ]  
Avatar
Total Posts:  238
Joined  2012-03-02

Hi,

Did the Rubiks with Mograph Grid Array and Cloner. Now need to rotate each cube randomly… is there way…?

Thanks,
Imran.


p.s.
a video will be much helpful.

...

Profile
 
 
Posted: 28 July 2019 11:58 AM   [ Ignore ]   [ # 1 ]  
Avatar
Total Posts:  238
Joined  2012-03-02

JPG not yet showing. here are links.

https://www.dropbox.com/s/hbgtpw797ult7zs/Screen Shot 2019-07-29 at 7.50.53 AM.png?dl=0
https://www.dropbox.com/s/2hido38u0aev7ld/Screen Shot 2019-07-29 at 7.51.05 AM.png?dl=0


Thanks.
...

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

Hi iacdxb,

Thanks for the files. Sorry, the attachment system is broken and I have no idea why it is that way.

I’m not sure if I understand the request each cube randomly. Those typically rotate in groups of nine, and these groups of nine changes.

There is no way to my knowledge to just use a few Cloner Objects and have a natural rotation while dealing with changing groups of nine elements in a sequence.

What exactly is the needed animation, just a few rotations or a full functional cube? This is an essential question for the required rig, and in each case, not a simple to demo set up.

Let me know.

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: 28 July 2019 03:51 PM   [ Ignore ]   [ # 3 ]  
Avatar
Total Posts:  238
Joined  2012-03-02

Hi,

27 cubes and then rotate each cube… may be there will be way to rotate each but better work with one block on 9 cubes, and its still no animation.

I sorted with one block of 9 cubes with cloner and then random rotated.

In random, I am seeing some blocks are not rotating, is there way to rotate each block in P from +6 to -6…?

Thanks.

https://www.dropbox.com/s/0c3xaxnnt1b6mm8/Screen Shot 2019-07-29 at 11.39.05 AM.png?dl=0
https://www.dropbox.com/s/qaaivmcq0jlcs77/Screen Shot 2019-07-29 at 11.45.56 AM.png?dl=0

Profile
 
 
Posted: 29 July 2019 05:25 AM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi iacdxb,

As mentioned, that will not work with a Cloner. Perhaps for each rotation with a new effector, to keep the previous rotations in place. (A formula effector with an id check for a group of nice objects, etc)

If I understand correctly, you want all the options, which is undoubtedly the most complex set up. The problem is that they need to have a central origin (all the time. Position 0;0;0) so they can rotate as they need to. Which makes it impossible to select any block of nine, while keeping the 3x3x3 set up as guide what to choose. This, in return, disables the options to work with Fields. Which I tried to explore during the whole day so far.

My idea was to create with a Field, which provides the needed information on what needs to be rotated, while the position of the objects is analyzed. This should have resulted in a piece of individual information each time if they are in the Filed or not. That, in return, changes the values of the Constrain> Parent. The Parent-object is the one that rotates and one static Null.
https://help.maxon.net/us/#TCACONSTRAINT-ID_CA_CONSTRAINT_TAG_PARENT_GROUP
Which means it is the robot arm idea in the link above, but one rotates, and one keeps it.
If it is in the Field, then the slider for the rotational object is 100%; otherwise, it is 100% for the Static.

I was able, even with all care to screw it up very quickly, as we deal here with 26* (27) cubes and not just with one. *The Rubik’s Cube has no center cube, but that is not important for now. Since it is so super fragile, there was no way to share it at all.

I think the last time I was asked about this was 14 years ago. We animated it manually, as only a few steps were needed. You want a full set up, as mentioned, that is super complex without coding. Hellolux has a two-part tutorial about, however, if that is your target, perhaps it is worth your time. Any other tutorials had a very obvious problematic after a few rotations (yes, I have not clicked through all).

With manual animation the second rotation, if it includes previously rotated cubes, will run into the problem that we have at least two directions in the axis system of the nine cubes. Which will result in a problem, if not rated in groups with equal axis orientations?

Arndt von Königsmarck has one set up that works, but it is in COFFEE, you need something other (older) than R20 to work with it.
https://www.rodenburg-verlag.de/shop/demos/free-magic-cube-script/

I will try to explore something, but my target is, of course, to be able to communicate the set up in a timely manner. Anything else needs a Tutorials series. Perhaps someone has an idea that is educational for a broader area, to showcase other techniques as well.

What is easy to communicate is a simple animation step and copy approach. Whereby the previous step, will determine where the colors are for the second, and the second being never rotated avoids this problem. Which is too much manual work from my point of view.

I have to explore more, but if you can run COFFEE somewhere, try the link.

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: 29 July 2019 05:47 AM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.:

This is perhaps time-intensive, but it avoids all the problems mentioned above, hence why I place this in a different post.

The idea is just a 27 single polygon object. It is based on PLA, point Level Animation. PLA has many short-comings, but it allows for some animations that would be problematic otherwise.

Between two main keyframes, the interpolation is straight, which means, any rotation is translated in a movement that is straight, and not circular. This is manual labor: A lot of it, but it works.

Here is the screen capture and the scene file:
https://www.amazon.com/clouddrive/share/R9aLyklKxDsNzSd8sDQ7kNiUmqm6NQDQtyFptcOs4UI

My best wishes

 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: 29 July 2019 02:09 PM   [ Ignore ]   [ # 6 ]  
Avatar
Total Posts:  238
Joined  2012-03-02

Thanks Dr. Sassi for your effort and detailed brief.
I will give a try and see Arndt von Königsmarck Magic Cube how it works.

Thanks for helping.

Best wishes.
Imran.

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

Hi Imran,

I tried to find something easy to build this evening, but so far I’m not convinced about it.

Anyway, I found another one:
https://www.digitalproduction.com/2017/04/24/kostenloser-rubiks-cube-in-c4d/
This one is in Python, and you can see how much code is needed to get this working. It is not a simple task.

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
 
 
Posted: 29 July 2019 08:14 PM   [ Ignore ]   [ # 8 ]  
Avatar
Total Posts:  238
Joined  2012-03-02

Thanks. This also fine

Regards.

Profile
 
 
Posted: 30 July 2019 12:08 AM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

You’re very welcome, Imran!

Please test all the provided links carefully before using those in production. I haven’t tested them long enough.

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