It is currently Mon Apr 15, 2024 8:19 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 3244 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 213 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: 7304
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: 7304
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 3387 times ]
Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Tue Jul 10, 2012 6:39 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
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 3388 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
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
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 3249 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 3244 times ]


Attachment:
genesis.png
genesis.png [ 611.29 KiB | Viewed 3244 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: 7304
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: 7304
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: 7710
Location: On the other side of this screen
Is this a script or plugin?

_________________


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: 7304
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: 7710
Location: On the other side of this 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.

_________________


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: 6947
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
Global Moderator
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: 6947
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
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: New Map Math Filter: Planet X
PostPosted: Wed Jun 12, 2013 10:26 am  (#20) 
Offline
Global Moderator
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 ]


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

16

No new posts math map extras

2

No new posts Problem Solved Math Map 32 bit vs GMIC 64 bit

1

No new posts Attachment(s) math tools like union and intersect?

7

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

1



* Login  



Powered by phpBB3 © phpBB Group