VGMaps
November 23, 2017, 12:32:19 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: NSMB Wii Rotating ground  (Read 7417 times)
0 Members and 1 Guest are viewing this topic.
Piranhaplant
Jr. Member
**
Offline Offline

Posts: 60


« on: May 27, 2011, 08:16:12 PM »

I am trying to recreate the rotating ground elements found in New Super Mario Bros Wii.  The game takes the image below and rotates it in a circle.



And forms something like this:



If anyone has any clue of how to do this in Photoshop or GIMP, please let me know.
Logged

Games I have mapped--Zombies Ate My Neighbors (SNES), Mario Party 3 (N64), Super Mario Bros Deluxe (GBC), New Super Mario Bros. (DS), Mario Kart DS (DS)
TerraEsperZ
Hero Member
*****
Offline Offline

Posts: 2225



« Reply #1 on: August 08, 2011, 05:36:15 PM »

I've actually been puzzling over this for a while but unfortunately, I don't have anything better than Paint Shop Pro 8 to help me. All I've managed to come up with (and you probably have as well) is that the whole circle appears to have a radius of 576 pixels (an elegant number that's easily divisible by 8, almost a requirement for measurements in old-school 2D games) and the small image you have there appears to constitute an arc of 11.25 degrees, meaning that this section should repeat itself 32 times around the whole thing.

Of source, I haven't played the game to check how accurate that is, and I simply don't have the necessary software that would support vector deformation or whatever you'd need to take for example, an image with that section repeated 32 times side-by-side, fit that inside a grid and turn that grid into a circle. Anyone with a better understanding of such deformations, feel free to point out how ignorant I am Tongue.

You can see a poorly assembled example of my findings as done in Paint.
« Last Edit: August 08, 2011, 05:42:50 PM by TerraEsperZ » Logged

Current project that I really should try to finish:
-Drill Dozer (GBA)
-Sonic 3D Blast (Genesis)
-Naya's Quest (PC)
-Lilly Looking Through (PC)

Pending project:
-A ton of stuff that will never be finished
Raccoon Sam
Full Member
***
Offline Offline

Posts: 118


« Reply #2 on: August 09, 2011, 02:25:01 AM »

I don't know if it helps, but Photoshop has a filter called "Polar Coordinates" under the Distort panel.
It transforms this:
link

to this:
link

The problem seems to be that it doesn't really repeat the pattern, only stretches. As you can see, the middle resembles the original texture the most, but the closer you get to the edge the stretchier it appears.

Don't know how to approach the problem really... If I figure out something I'll let you know.




EDIT: Okay, I figured out how to do it "perfectly".
Make a new document in Photoshop, match your canvas with the perimeter of your rotating sphere and double it once more (in this case 576 * 2 = 1152 * 2 = 2304)
Paste your texture in, flip it 180° and resize it to twice its size using the nearest-neighbor interpolation. Be sure to apply the transformation.
Then, transform it AGAIN, this time to 50% its width and 200% its height. Fill out the remaining empty space with the texture, seamslessly.
Should look something like this now.
Then apply the Polar Coordinates and add a full circle mask. Now resize the image's size to 50% and you're done!

Dunno if I explained that well enough but if you have questions be sure to ask.

This is the final product (resized by the forum, open in new window to see it in its full glory):


EDIT: Wait, no, it's still incorrect... But that was a mistake on my end. Instead of resizing the second time to 50% x 200%, make it 25% x 200%.
« Last Edit: August 09, 2011, 03:21:25 AM by Raccoon Sam » Logged
Piranhaplant
Jr. Member
**
Offline Offline

Posts: 60


« Reply #3 on: August 09, 2011, 07:45:23 AM »

Thanks so much!  And thanks for the instructions too, there are a lot of these in the game with many different sizes.
Logged

Games I have mapped--Zombies Ate My Neighbors (SNES), Mario Party 3 (N64), Super Mario Bros Deluxe (GBC), New Super Mario Bros. (DS), Mario Kart DS (DS)
TerraEsperZ
Hero Member
*****
Offline Offline

Posts: 2225



« Reply #4 on: August 09, 2011, 05:01:05 PM »

From what I can see, this example doesn't repeat the texture enough times (18 times instead of 32) but Raccoon Sam essentially got the whole process as close to the actual game as possible.

We should almost start a sort of "VGMaps Mapping Help Thread" when one of us encounters difficulties he or she can't resolve on his or her own Smiley.
Logged

Current project that I really should try to finish:
-Drill Dozer (GBA)
-Sonic 3D Blast (Genesis)
-Naya's Quest (PC)
-Lilly Looking Through (PC)

Pending project:
-A ton of stuff that will never be finished
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!