It is currently Tue Jul 23, 2024 5:26 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 19 posts ] 
Author Message
 Post subject: A gas giant planet making script
PostPosted: Mon Apr 25, 2016 9:51 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 203
For those who wish to try this script
Attachment:
planet-gas-giant.scm [3.75 KiB]
Downloaded 231 times

it is located at Image>/File/Create/Patterns/Gas giant Planet

The script works on RGB or GRAY images, without an alpha channel

It works by stacking ellipses, the number of ellipses being equal to the number of pixels in the image height

The script utilises a single (the left most) vertical column of pixels in the open image

The 0 to 90 setting of the Polar tilt was intended to be the degree of tilt, but the results don’t quite match up to the intention

A small pixel height image combined with a low Polar tilt will give distorted results. An image 750 pixels high breaks down if the Polar tilt is set to less than 12. Larger image heights allow smaller Polar tilts to be set

It takes up to 20 seconds to run on an image 800 pixels high

I left the last two steps open as an option for the user

Steve
Attachment:
imageQu90.jpg
imageQu90.jpg [ 220.11 KiB | Viewed 4523 times ]


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: A gas giant planet making script
PostPosted: Mon Apr 25, 2016 1:22 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12727
Location: Spain, Aragón
I Like your planets a lot, Steve!
Your script seems so nice creating planets, but I don't understand correctly your steps. You say no alpha channel but your second planet has. Please, Could you explain your method step by step if you have enough time? Thanks Steve for sharing your script. :)

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Mon Apr 25, 2016 3:21 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 203
Issabella wrote:
I Like your planets a lot, Steve!
Your script seems so nice creating planets, but I don't understand correctly your steps. You say no alpha channel but your second planet has. Please, Could you explain your method step by step if you have enough time? Thanks Steve for sharing your script. :)


Hello Issabella :) and thanks, sorry my explanation and photos were confusing, my bad :oops:

There has to be an image open for the script to run on, this image can be a RGB image, but not a RGB that itself has an alpha channel. The script can also run on a GRAYscale image but not on a GRAYscale that itself has an alpha channel.

The image produced by the script always has an alpha channel, it is then up to the user to create the background.

If you upload the images below and run the script on them you will see what I mean

Steve
Attachment:
image1.tif
image1.tif [ 250.84 KiB | Viewed 4445 times ]

Attachment:
image2.jpg
image2.jpg [ 115.84 KiB | Viewed 4445 times ]


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Mon Apr 25, 2016 3:42 pm  (#4) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
awesome script! Thanks!
Image

_________________
TinT


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Mon Apr 25, 2016 3:52 pm  (#5) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
As an alternative to your script.
1) Select an area of 1pixel wide x any_height.
2) Copy that into clipboard.
3) Open a new image and fill this layer with the copied content (by dragging and dropping the clipboard from Pattern's window).
4) Map Object-> Sphere (what's nice if you get some lighting and preview of whatever rotation you're doing.
Image

And if you select area of 1 any_width x 1 pixel height.
you'll get something like this
Image

_________________
TinT


Last edited by trandoductin on Mon Apr 25, 2016 4:00 pm, edited 1 time in total.

Top
 Post subject: Re: A gas giant planet making script
PostPosted: Mon Apr 25, 2016 3:56 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2016
Posts: 580
Location: Sheffield UK
Image
Great effect, I love all things planets, thanx. Could you recommend an on-line place I can learn about stuff like greyscale, RGB and alpha, I'm very new to all this, please?

_________________
Image


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Mon Apr 25, 2016 3:57 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12727
Location: Spain, Aragón
You are right Steve! Nice planets using your script. Thank you so much for your help. I'll practise more tomorrow. :) :tyspin :clap


Attachments:
Planet2-Issa.jpg
Planet2-Issa.jpg [ 205.37 KiB | Viewed 4436 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: A gas giant planet making script
PostPosted: Mon Apr 25, 2016 5:43 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 203
trandoductin wrote:
As an alternative to your script.
1) Select an area of 1pixel wide x any_height.
2) Copy that into clipboard.
3) Open a new image and fill this layer with the copied content (by dragging and dropping the clipboard from Pattern's window).
4) Map Object-> Sphere (what's nice if you get some lighting and preview of whatever rotation you're doing.
[ Image ]

And if you select area of 1 any_width x 1 pixel height.
you'll get something like this
[ Image ]


:coolthup images, will definitely be spending time with the map to sphere and giving your ideas a try


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Mon Apr 25, 2016 5:49 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 203
RJKD wrote:
[ Image ]
Great effect, I love all things planets, thanx. Could you recommend an on-line place I can learn about stuff like greyscale, RGB and alpha, I'm very new to all this, please?


Nice one RJKD

I tend to get most of my info from this gimp document

http://docs.gimp.org/2.8/en/

once there try

6.4 rgb image
6.5 grayscale image
6.6 indexed image


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Mon Apr 25, 2016 6:00 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 203
Issabella wrote:
You are right Steve! Nice planets using your script. Thank you so much for your help. I'll practise more tomorrow. :) :tyspin :clap


:coolthup image :)


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Mon Apr 25, 2016 9:08 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Dec 10, 2013
Posts: 1004
Great fun and script! Thanks Steve.

Image

_________________
Image
Macbook Air - MacOS Sierra 10.12
McGimp 2.8.14
G'mic 1.6.5


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Tue Apr 26, 2016 2:38 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2015
Posts: 256
Unfortunately, there must be an issue with copying and pasting an image into GIMP. I did that with an image I wanted to use, removed the alpha channel, ran the script with default settings, and it just made a solid black circle. :?


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Tue Apr 26, 2016 4:18 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 203
Love the colours Dalia :tyspin

steven8 wrote:
Unfortunately, there must be an issue with copying and pasting an image into GIMP. I did that with an image I wanted to use, removed the alpha channel, ran the script with default settings, and it just made a solid black circle. :?

If after copy/paste and removal of alpha channel the extreme vertical left hand column of pixels on the image the script is to run on is black, then you would get the result below

Am trying other options but other than above have not been able to replicate your problem


Attachments:
blkoQu90.jpg
blkoQu90.jpg [ 214.11 KiB | Viewed 1450 times ]
Top
 Post subject: Re: A gas giant planet making script
PostPosted: Tue Apr 26, 2016 4:27 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2015
Posts: 256
I found the image. Maybe that will help.


Attachments:
world-political-map-2000px.jpg
world-political-map-2000px.jpg [ 645.06 KiB | Viewed 1447 times ]
Top
 Post subject: Re: A gas giant planet making script
PostPosted: Tue Apr 26, 2016 5:04 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2015
Posts: 256
Yep, it looks like a thin pencil line black outline. I thought the image preview was doing that, but it's there. I'll crop it out and try again.


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Tue Apr 26, 2016 5:17 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Dec 26, 2014
Posts: 203
steven8 wrote:
I found the image. Maybe that will help.

Ah yes, this image does give a black circle. If you zoom in and look at the extreme left hand side you can see the vertical edge of the image is black.

Sorry but this script won’t do what you want, it isn’t designed to map images to a sphere. The script only takes a 1 pixel wide full height column to construct an image. To see what’s happening crop the image in half vertically and run it.


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Tue Apr 26, 2016 2:49 pm  (#17) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
I used good old Map Object>Sphere...

Image

I had to scale the image a bit.
I also chopped off the black outline,
Making sure it was square before running Map Object to Sphere.

Image

Here's the sphere by itself.
Image

And here it is as a Spinning Globe.
Image

Here's my Gas Giant...
Image
Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Tue Apr 26, 2016 3:53 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Dec 10, 2013
Posts: 1004
You went all out Wallace! Smiled at each one and in awe at your quick and great work.

_________________
Image
Macbook Air - MacOS Sierra 10.12
McGimp 2.8.14
G'mic 1.6.5


Top
 Post subject: Re: A gas giant planet making script
PostPosted: Tue Apr 26, 2016 3:59 pm  (#19) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Dalia wrote:
You went all out Wallace!
Smiled at each one and in awe at your quick and great work.

Thanks Dalia! :bigthup
It was fun... Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
Post new topic Reply to topic  [ 19 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Exploding Planet / Planet Renders

16

No new posts Attachment(s) Making Art from Script

4

No new posts create an exploding planet

2

No new posts At least I’m not the dumbest person on the planet…

1

No new posts Attachment(s) Does anyone know any plugins similar to "map/little-planet" ?

3



* Login  



Powered by phpBB3 © phpBB Group