Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Rubiks Cube mate / animation
john_mcclary
Member, Developers Posts: 3,936 PRO
in General
Well, I had an epiphany in the shower last night. Couldn't wait to get home an experiment with it.
My plan is to have an animation scramble, by doing a reverse PLL -> F2L then reverse animation to simulate a solve as it would be done by a speed cuber
A quick test shows It "could" be done, but this will take a while... Stay tuned
https://www.youtube.com/watch?v=zlex2yNJUuA
My plan is to have an animation scramble, by doing a reverse PLL -> F2L then reverse animation to simulate a solve as it would be done by a speed cuber
A quick test shows It "could" be done, but this will take a while... Stay tuned
https://www.youtube.com/watch?v=zlex2yNJUuA
6
Comments
Onshape, Inc.
I was gonna cheat by starting with a solved cube then just running in reverse, but that's no fun
So I scrambled up a cube and wrote the turns down as I went. Then trimmed out a few redundant turns to shorten it a little.
Now the 6 axis' are all done, and 3 out of the 4 White edges are done.
So far everything has been working smooth and I haven't hit any snags yet.
The only issue I do have is the complexity of the mates are starting to make it hard to turn without using the animation tool itself
If you run the animations too fast they can jam the relations.
if you run the animations too slow there are dropped frames.
Other than that its starting to look like something now:
https://www.youtube.com/watch?v=W7SwRO09T7k
IR for AS/NZS 1100
I made a short (50min) video explaining everything I could. There were a few things I forgot to mention, but they aren't mission critical, so it is what it is for now.
I made it public now, but you may want to wait to copy, or copy again later because I do plan on finishing this eventually. And after you see what's involved you may not want to put yourself through that
I will be hunting next week so you may not hear of much progress because i will only have my cell phone
But this is my top hobby project right now because I've always wanted to make this since I first started solidworks 8 years ago.
Here is the document: https://cad.onshape.com/documents/936dc91e3f3998485e1f8dfe/w/4d6927be70009dc330c213a3/e/bf77cbf85325eff88c8a0c26
and here is the video, Enjoy
https://www.youtube.com/watch?v=bMtNDocbJKE
For some reason, when i try to animate the mate that says animate me, it says "Unable to compute transform. Instance(s) may be constrained"
IR for AS/NZS 1100
That was preventing the animation from starting at zero.
it's fixed now, but I wonder how those shifted.. they are in the same group mate with all the rest...
also, keep in mind the piece I created in the video, and the corner piece are not fully animated yet, so they will not move after a little bit.
Hmm... the same group mate hey, I generally trust group mates but sometimes I am not sure they are rock solid, although I think the issues mostly come from the user, so I always try to tread lightly when adjusting something related to a group mate.
Twitter: @onshapetricks & @babart1977
but I haven't reviewed the video for when it moved, but it was definitely in position at the beginning of the video, then later was shifted over..
I Hope I was able to get the point across with all my rambling and mumbling
Twitter: @onshapetricks & @babart1977
Twitter: @onshapetricks & @babart1977
Well, the thing is, the group is broken in the assembly it was defined. And the error also propigated into the higher level assembly. i assumed group just locked origins. Biut the glitches they can cause seem to be more complicated.
Twitter: @onshapetricks & @babart1977
Named all the tangent mates to make debug easier.
Found a stupid easy way to check next rotation to sketch.
Just mouse over the rack and pinion relation... seems obvious now though
https://www.youtube.com/watch?v=SurkA2NK0aY
So its refactor day!
Breaking out the part studios
Sorry about that loud F bomb in the background... Wife was watching the Redwings loosing
https://www.youtube.com/watch?v=z1D3JOGmHWY
Finished up the first corner block.
The animation only works around 3000 frames now, because some of the tangents are getting too much for Onshape.
7 Pieces to go. Hope it will still animate after those pieces.
https://www.youtube.com/watch?v=Q7sH-2vW2xE
That web of tangent mates locks up almost instantly if you don't suppress them all (except the 6 central axis and 3 axis of the piece you're working with)
That's why I need to animate starting around 3000 steps right now. It takes about 3 minutes to get the animation rendered before it starts moving. So it is a stress test for Onshape at this point too
Not sure if you have noticed, but I switched to Firefox in the last video and have been using that since the edges have been done.
Chrome really struggles to stay smooth while moving the animation slider by one rotation.
Sometimes the graphic area won't update until I've moved the slider about half inch or so.
Seems to be worse the longer it is open. Not sure if there is a memory leak, or just chrome poor memory management. But Firefox has been more stable with this.
Also my internet has been shotty lately, probably from squirrels hiding nuts in the ISP's cabinets. So progress has been a little slow.
https://www.youtube.com/watch?v=-bYqqynbBcQ
HWM-Water Ltd
IR for AS/NZS 1100
Just some clean-up to ensure the thing still animates.
I stopped being able to animate it before the last two pieces, so I need to tweak a few things.
Almost.... Done...