It is currently Fri Apr 19, 2024 11:26 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 19 posts ] 
Author Message
 Post subject: Sphere Cube Tutorial
PostPosted: Sun Nov 10, 2013 1:07 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
When you normally map to a sphere in gimp you get a pinching effect at the north/south axis (See Left Image), I have been internet searching and playing with gimp to try and get the faces to map evenly (See Right Image).

Image

This tutorial will hopefully explain how I achieved the right side image and be a spring board for improvements of being able to map patterns and photo to a sphere without as much distortion.

1. Open Gimp and create a new image 1024px * 1024px and fill with Black.

2. Go Images>Guides>New Guides and add a Horizontal Guide at 512px and Vertical Guides at 256,512,768px. Go View and makes sure "Show Guides", "Snap To Guide" and "Snap To Canvas Edge" are ticked.

3. Go Layer>New Layer makes sure "Transparency" is checked and click O.K.

Image

4. From Toolbox choose the "Rectangle Select" tool :rectsel and draw a selection across the top half of the image and fill with white.

Image

5. Still with the "Rectangle Select" tool draw a selection across the first bottom quarter of the image and fill with red.

Image

6. Still using the "Rectangle Select" tool work across the image filling each bottom quarter with a different colour, I used Red, Green, Blue and Pink although it doesn't really matter. Once finished Go>Select>None to get rid of the selection. You should be looking similar to the image below.

Image

7. Go>Layer>Transform>Offset and set X to 128 and check "Wrap Around" then click offset.

Image

8. Go>Filters>Distort>Polar Coordinates and set "Circle Depth In Percentage" to 50, Also check "Map From Top" and "To Polar".

Image

9. Go>Filters>Distort>Polar Coordinates and set "Circle Depth In Percentage" to 100, Also check "Map From Top" and uncheck "To Polar".

Image

10. Go>Layer>Scale Layer and unlock the chain link and change "Height" to 256px (This is our original Height divided by 4) and click Scale.

Image

11.From the Toolbox choose the "Move" tool :move and position the bottom of your layer onto the middle horizontal guide making sure you keep layer central.

Image

12. Go Layer>Duplicate Layer then Layer>Transform>Flip Vertically, then using the "Move" tool, Position the top of your layer onto the middle horizontal guide making sure you keep layer central. Then Go>Layer>Merge Down. You should be looking similar to the image below.

Image

13. The next part is purely cosmetic but if you Go>View and untick show guides, then Zoom into the image you will see that across the middle line where the two images where joined there are some artefacts left behind from the polar mapping. I basically created a Rectangle selection around these parts an filled with the appropriate colour. I also used the "Fuzzy Select" tool :fuzzsel to select the bottom white section and changed the colour to yellow.

Image

14. Time to Map the Sphere, Go>Filters>Map>Map Object, the only tabs we are concerned with is the "Options" and "Orientation". Under the "Options" tab set "Map To" to Sphere and check "Transparent Background". Under the "Orientation" tab set the "Position" value Z to 0.75000 and under "Rotation" change Y and Z to 15, But do have a play with these settings to see the sphere map in full.

ImageImage

15. Now you've probably noticed that our sphere is very elongated, don't worry. Go>Layer>AutoCrop then Go>Layer>Scale Layer and unlock the chain link and change "Height" to 837px (This should be the same dimension as the width), Then click "Scale".

Image

16. That's our Sphere Cube finished.

Image

_________________
Image


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Sun Nov 10, 2013 4:53 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Aug 11, 2013
Posts: 123
Location: Ohio
Thanks for the tutorial, hearty! Looks very interesting. I'll give it a go sometime soon. :)

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Mon Nov 11, 2013 12:50 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
Rellik - Thanks for the comment.

So far I have managed to map a chequerboard pattern onto one face...

Image

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Mon Nov 11, 2013 2:31 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Aug 11, 2013
Posts: 123
Location: Ohio
Pretty easy to follow there Hearty. No problems at all. Wanted to see what using gradients would do and messed around with the rotation settings abit. Image

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Tue Nov 12, 2013 4:36 am  (#5) 
Offline
Script Coder
User avatar

Joined: Nov 06, 2012
Posts: 239
Location: Italy
Thanks, he4rty, for sharing this nice and very intelligible technique.

I had no problems with reproducing the steps of the tutorial. :bigthup

I also tried to apply some texture to the lateral faces of the sphere, by putting into action the "CML explorer" filter, and this is the interesting outcome I achieved:

Image

_________________
Gino D's GIMP scripts: https://sites.google.com/site/ginodonig/gimp-scripts


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Tue Nov 12, 2013 4:57 am  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Very nice Gino, it looks like a beach ball.

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Tue Nov 12, 2013 2:45 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
Rellik - Nice work, curious about what stage during the tutorial you added the gradients.
Gino - Again nice work, I'll admit I've not heard of the cml explorer filter before.

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Tue Nov 12, 2013 2:58 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Aug 11, 2013
Posts: 123
Location: Ohio
he4rty wrote:
Rellik - Nice work, curious about what stage during the tutorial you added the gradients.
Gino - Again nice work, I'll admit I've not heard of the cml explorer filter before.


Steps 5 & 6 he4rty. Instead of adding a solid color... I just used some gradients going from middle of selection to outer using bi-linear.

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Tue Nov 12, 2013 3:02 pm  (#9) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Wow, nice tutorial he4rty, I missed it, I was busy painting in MyPaint. I will make that tute into a pdf and try it some time this week. Kudo's

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Tue Nov 12, 2013 3:03 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Aug 11, 2013
Posts: 123
Location: Ohio
Rellik419 wrote:
he4rty wrote:
Rellik - Nice work, curious about what stage during the tutorial you added the gradients.
Gino - Again nice work, I'll admit I've not heard of the cml explorer filter before.


Steps 5 & 6 he4rty. Instead of adding a solid color... I just used some gradients going from middle of selection to outer using bi-linear.


On a side note also... Using the gradients and getting rid of the artifacts in step#13 kinda of created a challenge, but the heal tool took care of that. ;)

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Tue Nov 12, 2013 5:08 pm  (#11) 
Offline
GimpChat Member

Joined: Aug 05, 2011
Posts: 606
Location: limestone,ny
Nice one he4rty

Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Tue Nov 12, 2013 5:12 pm  (#12) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Wow, cool alc. leave it to you.

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Wed Nov 13, 2013 10:23 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
Alc - Nice work on the ball animation.

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Wed Nov 13, 2013 4:54 pm  (#14) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
good job Conbagui, looks like Walnut wood grain.

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Thu Nov 14, 2013 9:57 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
conbagui - Nice work on the ball and the wood effect looks great.

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Mon Nov 18, 2013 7:44 am  (#16) 
Offline
GimpChat Member

Joined: Sep 12, 2013
Posts: 5
Nice tut. Going to play around with this one. All went well except I'll need to spend a little more time cleaning up the artifacts in step 13. Thanks :)


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Fri Dec 13, 2013 9:55 am  (#17) 
Offline
Script Coder
User avatar

Joined: Apr 13, 2010
Posts: 244
This is a fabulous tutorial! Thank you for sharing. The really nice thing for me is this can also be used when creating textures for 3D artwork because mapping square textures on spherical shapes can be difficult as well. Thank you!

_________________
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime! Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Fri Dec 13, 2013 10:13 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
fencepost wrote:
This is a fabulous tutorial! Thank you for sharing. The really nice thing for me is this can also be used when creating textures for 3D artwork because mapping square textures on spherical shapes can be difficult as well. Thank you!


Thanks for the comment, I have had more success mapping an image using gmic's polar filter rather than gimps, but only on the white face.

_________________
Image


Top
 Post subject: Re: Sphere Cube Tutorial
PostPosted: Fri Dec 13, 2013 10:24 am  (#19) 
Offline
Script Coder
User avatar

Joined: Apr 13, 2010
Posts: 244
I suspect g'mic also works better on the bottom face, as well, because spherically mapped image have distortions at both the top and bottom. Thank you for the PM information. It was definitely helpful.

Art

_________________
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime! Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.


Top
Post new topic Reply to topic  [ 19 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts ERROR MAP OBJECT CREATE A PHOTO CUBE

2

No new posts Los Vegas Sphere

0

No new posts Attachment(s) Glass sphere.py

7

No new posts Attachment(s) Pots & Bowls Using 'Map Object>Sphere'

41

No new posts Bevel Reflect logo and sphere

10



* Login  



Powered by phpBB3 © phpBB Group