It is currently Tue Jun 09, 2026 1:05 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: New Map Math Filter: Planet X
PostPosted: Tue Jul 10, 2012 5:39 pm  (#1) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
Updated Gallery (All straight from Mathmap with no Gimp processing):
Attachment:
2.gif
2.gif [ 1.31 MiB | Viewed 4192 times ]


Was toying with the idea of rendering moons/planets using mathematical constructs.
This is as far as I've got - still very much a work in progress.

Code attached so you can have fun making planets, moons, suns and black holes, working on enhancements so any comments welcome.

Attachment:
planetX.rar [411 Bytes]
Downloaded 228 times


filter planetX(
image in, float dx:-10-10 (0),
float dy:-10-10 (0),
color Colour,
float radius:0-10 (0.8),
bool clip(1),
bool grain(1),
float grainL:0-1 (0.4),
float grainH:0-1 (0.8),
bool shadow(1),
float shadowF:-1-1.2 (0.33),
float shadowL:0-1 (0),
float shadowH:0-1 (1),
bool highlight(0),
float light_hi:0-1 (0.4),
float light_lo:0-1 (0.8)
)

rr = sqrt((x-dx)^2+(y-dy)^2);
rx = scale(x,dx-radius,dx+radius,0,1);
rz = scale(rr,0,radius,0,1);
 
final = Colour * rgba:[1,1,1,1];
if grain then
  final = final * rand(grainL,grainH); end;

if shadow then
  sx = scale(x+(shadowF*2),dx-radius,dx+radius,shadowL,shadowH);
  final = final * sx;
end;

if highlight then
  hx = scale(rz,0,1,light_hi,light_lo);
  final = final * hx;
end;
out = final;
if clip && (rr>radius) then   out = in(xy); end;
out end


Last edited by step7 on Thu Jul 12, 2012 5:44 pm, edited 1 time in total.

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: New Map Math Filter: Planet X
PostPosted: Tue Jul 10, 2012 5:51 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
Cool. There are some nice noise filters in MM that might be useful for making seas.


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Tue Jul 10, 2012 5:59 pm  (#3) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
Just playing really, I know there's much better ways of doing planets:) Had some fun in Gimp with these after mathmap has rendered them to come up with quite pleasing results.


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Tue Jul 10, 2012 6:03 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
The results are pretty good. I like the texture on them.


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Tue Jul 10, 2012 6:09 pm  (#5) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
The texture is just random noise, works ok for basic moon dust. You can simulate it in Gimp, using the RGB Noise Filter, Desaturate then Colourize.

I've plans on the texture front;) You can have fun in Gimp applying textures all day long though, here's a lifeless sun baked planet, just applied the Molten Material Filter to a basic render from mathmap..


Attachments:
sunbaked.png
sunbaked.png [ 150.81 KiB | Viewed 4335 times ]
Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Tue Jul 10, 2012 6:39 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Nov 16, 2011
Posts: 5127
Location: Metro Vancouver, BC
I got hungry out of the deal ;)


Attachments:
File comment: I Love Chocolate
choc-cookie-gc.png
choc-cookie-gc.png [ 177.01 KiB | Viewed 4336 times ]

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)
Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Tue Jul 10, 2012 7:09 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Nov 16, 2011
Posts: 5127
Location: Metro Vancouver, BC
You could do something like this, National Geographic Photo of the Day (July 10, 2012).
Frog and Gourd
http://photography.nationalgeographic.c ... rog-gourd/

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Tue Jul 10, 2012 7:25 pm  (#8) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
That's a beautiful effect on the gourd for sure.

Been working on better highlights and shadows, still a bit clunky to operate but results are getting better (See before and after below). Going to start playing with textures now..


Attachments:
curve.png
curve.png [ 267.04 KiB | Viewed 4197 times ]
Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Thu Jul 12, 2012 11:03 pm  (#9) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
Found a baron planet and unleashed Genesis on it - the results of some script for texture (no post processing in Gimp)..

Attachment:
baron.png
baron.png [ 709.55 KiB | Viewed 4192 times ]


Attachment:
genesis.png
genesis.png [ 611.29 KiB | Viewed 4192 times ]


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Fri Jul 13, 2012 1:14 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
Thanks for the update. I like the last one best but they're all cool.


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Fri Jul 13, 2012 10:54 am  (#11) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
Thank Erisan. I'll post an update to the filter code when it's back in a stable state, it's got a page full of sliders now and Mathmap has got quite slow with it, shame as playing God with the land/sea in the latest version is quite good fun :)


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Fri Jul 13, 2012 12:05 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
Here's my first effort.

Image


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Wed Jun 12, 2013 3:45 am  (#13) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8362
Location: On the other side of your screen
Is this a script or plugin?

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.0 and GMIC-Qt 3.7.5 OS :- Windows 10 Home 64


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Wed Jun 12, 2013 6:43 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
I believe it's a script sallyanne but I haven't used it for a long time and my memory isn't that good. Can you open RAR files? If not, 7Zip is good for it.


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Wed Jun 12, 2013 8:15 am  (#15) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8362
Location: On the other side of your screen
I have 7zip. It's opened. I just have to install it. Thank you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I installed it into the scripts folder but cannot find it so I had a play around with Julia and other GMIC scripts/filters
Image

I started with a Julia fractal and changed it a little. After arraying it I used psychadelic glasswork on it then rotoidoscope. I think the centre almost looks like wool.

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.0 and GMIC-Qt 3.7.5 OS :- Windows 10 Home 64


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Wed Jun 12, 2013 9:39 am  (#16) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
It is not showing up in Math Map for me. I put it in the Expressions > Map folder and gave it permission to execute as a program. (Fedora Linux), and have closed and re-opened Gimp twice.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Wed Jun 12, 2013 10:10 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Wouldn't it be under File > Create > Misc > Planet Render Gtuts.com

_________________
Image


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Wed Jun 12, 2013 10:17 am  (#18) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
It is my understanding that it should show up in Filters > Generic > Mathmap since it is in the Math Map Expressions as are the other ones in Math Map.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Wed Jun 12, 2013 10:25 am  (#19) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16021
If it is a mathmap script file (mm extension), you should try placing it in the mathmap>extensions>extras folder.
Then load it through Filters>Generic>MathMap>MathMap When the interface opens select load and search for the filter. :)

Image

_________________
Image


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Wed Jun 12, 2013 10:26 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
I guess mine is a different edition. I used it not too long ago in a tute. Since I re-installed my Gimp a while back I never did get MM and GAP back in but all my mm files are still in my expression folders.
Anyway, this is the one I have.
Image

_________________
Image


Top
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group