• Advertisement
Sign in to follow this  

A Rubic's Cube Type Problem !

This topic is 1935 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Let me start by saying I searched the Vintage post for This topic, and did not find anything Useful.

 

1 - Has anyone solved the rotations of the Rubic's Cube, other than "Peeling of the color squares and re-applaying them" ?

    Doing That has me wondering, since I can not find in any of my books on 3D graphics. 

    How do I applay a texture to ONLY 1 Side of a Cube ?

2 - I can Apply 6 different colors to the cube ( 1 on each side via a UVMapper software and then creating a Skin Texture )

     But since I want to apply an Image to this Cube, when the Cube is rotated, Peices of the Image are also Rotated, rendering them Upside down.

    I want the images to remain upright so how do I Manipulate the image only on 1 side of the cube ?

 

I hope I worded this correctly .  Basically, I want to know how to take 6 different images and apply each image to the appropriate side of my Cube?

Share this post


Link to post
Share on other sites
Advertisement
Why not render 3 * 3 * 3 Cubes with solid colors? and rotating them ? Wouldnt it be easier?


Also there are a hell of algoritms to sucessfully solve the rubik cube, searching google throws a hell of results. Edited by Morphex

Share this post


Link to post
Share on other sites

I believe his actual query is not about algorithms to solve the Rubic's cube, but how to keep the colours of the mini-squares on the surface intact while rotations.

I think, peeling and re-applying is the best option from rendering complexity perspective.

Basically, it's easier to shade subsequent colour changes for the mini quares on each cube solving step, for very obvious reasons.

Share this post


Link to post
Share on other sites

I am Not Trying to Solve Rubic's Cube -  The Problem I am trying to solve involves the graphics. The solution I have is a 6 x 3 x 3 ( 6 sides x 3 rows x 3 coloumns) each cube can only be attached to a single pivot point , so you can only rotate on only 1 of the X - Y - Z axis.  This I can control, and effectively display and rotate a Rubic's Type Cube.

  What a want my Cube to do is display a 6 Photo graphs ( 1 on each side of the Cube, sub-divided into the 3 x 3 cubes, Spin it like a Rubics Cube, and Keep the divided photo Up right on the spin, so that when the entire cube is turned to view the backside the individual photo pieces are all up-right.

  Right now any "Twist" Renders the peices upside on the backside of the Cube.

  I need to effectively, only remove or spin the upside images on only 1 side of a 6 sided sub cube.  It may help to visualize this by taking an Actual Rubics Cube, attach Numbers to the individual cubes and spin it vertically once and the look at the backside of the rubics cube to see what I mean.

Share this post


Link to post
Share on other sites
Also there are a hell of algoritms to sucessfully solve the rubik cube, searching google throws a hell of results.

Indeed. Searching "rubik's cube" gives 7.89 megagoogles.

Share this post


Link to post
Share on other sites
Why not render 3 * 3 * 3 Cubes with solid colors? and rotating them ? Wouldnt it be easier?

 

Well, that would be 3 * 3 * 3 - 1 cubes, since the center one doesn't exist smile.png but I think that approach makes more sense than trying to paint entire faces in one shot.

Share this post


Link to post
Share on other sites
Number all of the faces of an actual Rubik's Cube, like you suggested. Look at a single side. Let's say you are looking down the z axis. If you rotate the three slices perpendicular to the y (up) axis, the numbers on the face you were looking at will maintain their orientation. However, if you rotate the three slices perpendicular to the x (side) axis, you'll find that the number's orientations will, in fact, flip. Even when you rotate the slices perpendicular to the y axis, the orientation of the numbers on the faces at the top and bottom of the cube, relative to your view position, will change.

This is correct. Why do you expect a different result? Edited by MarkS

Share this post


Link to post
Share on other sites

Either I am Not Explaining what I am Trying to do correctly or most of you are not understanding (Except NewDisplyName)

1 - I am NOT having a problem with Displaying a 3x3 cube Grid,  No Problem Rotating it. 

2 - I understand than when rows or columns are rotating that certain positions will be upside down or sideways ( This not a Problem with solid colors )

 

  I am currently Using 26 different skins, ( Generated Internally ) to display 6 different Pictures, Sub-divided by the 9 cubes on each side.

 I am not having a problem when the cube is twisted of keeping track on what Part a any picture is at any time.

My problem is a Pshycological Visualization of the Picture Puzzle when the Picture is upside down. ( players cannot visualize where that piece would go )

 

My problem is how would I twist the "1" side that is not upright, without twisting the whole sub-cube.and Re-skinning. ( Twisting the whole sub-cube throws the picture Pieces off track.

 

Maybe this just can't be done.

Share this post


Link to post
Share on other sites

I think I get what you mean,you want to "roatate" the face of the cube to always display the picture in the correct direction correct? The way I am seeing is changing the UV coordinates that you have attribute to Flip the texture i the correct direction, so if you flip the cube it will ways face the correct direction is this what you want?

 

Otherwise I am not getting what you mean.

Share this post


Link to post
Share on other sites

That is correct Morphex.  I don't know how to lift the image off a Texture Skin from a UV-Map or how to access the Co-Ordinates.  It may be simple once I know how, But since I am Just getting into 3D Graphics I am Lost at this point.

  Essentially I just Need to Re-Orintate 1 of 6 images to display it upright.  Can you help ?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement