It is currently Fri Oct 20, 2017 7:26 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: POV-Ray (Persistence of Vision Raytracer)
PostPosted: Tue Aug 29, 2017 4:58 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 06, 2017
Posts: 159
Location: UK.
As I was choosing a gradient to use in a picture in GIMP recently I inadvertently right clicked on one and saw that the drop-down menu included the option to save (the gradient) "..as POV-Ray", not having an idea what this meant I saved it anyway, then DuckDuckGo'd "POV-Ray". 'Interesting', I thought, a graphics application of some kind :) ... I downloaded and installed POV-Ray v3.7 for Windows. I soon realised the program is script-based therefore I would have to learn the ins-and-outs of the syntax used (nightmare, I'm still trying to get my head around Python lol) - anyway I've spotted some tutorials on YT (https://www.youtube.com/watch?v=1ZDWcEQrqsc for instance) so I hope to get something done with that soon... (finger's crossed). Can anybody tell me though, how can I use the file I saved (the gradient) in the POV-Ray program, not sure if anyone out there is familiar with it, but for starters I can't find anything so far in the 'POV_Ray Help' about gradients, let alone which format they have to be saved in or what one has to do with the file (maybe point to it within a POV-Ray script somehow (??)).
Anyway, would appreciate any help if anyone has a clue about it, if not I'll just soldier on hope to make something like this person's first animation(!) https://www.youtube.com/watch?v=exL5B7LapUo
Cheers.


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: POV-Ray (Persistence of Vision Raytracer)
PostPosted: Tue Aug 29, 2017 7:31 am  (#2) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1068
Location: Here and there
GIMP saves the gradient as a POV-Ray colour_map: http://www.povray.org/documentation/view/3.7.0/335/ which is a pigment modifier.

Try the example in the linked page, along with one of the standard scenes.

I'll try and find some time to experiment with it this evening.

Kevin


Top
 Post subject: Re: POV-Ray (Persistence of Vision Raytracer)
PostPosted: Tue Aug 29, 2017 7:38 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 06, 2017
Posts: 159
Location: UK.
Thanks for finding that! It makes a lot more sense now, great! :)

EDIT: Just rendered my first object, using a gradient from GIMP (Basic Magenta White HSVCW):

Copied bits of code from here n there, adapted it and came up with this:
Image

This is how I did it:

   #include "colors.inc"

camera {
   location <0,0,-5>
   look_at <0,0,0>
}                 

light_source {
   <5, 4, -8>
   White
   
}

sphere {
    <0,1,2>, 2
    pigment {
      gradient x*y+0.3
color_map {
   [0.000000 color rgbt <1.000000, 0.000000, 1.000000, 0.000000>]
   [0.500000 color rgbt <1.000000, 0.500000, 1.000000, 0.000000>]
   [1.000000 color rgbt <1.000000, 1.000000, 1.000000, 0.000000>]
}
          }
         
           } 


Top
 Post subject: Re: POV-Ray (Persistence of Vision Raytracer)
PostPosted: Tue Aug 29, 2017 6:40 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2130
Location: Retired Moderator Slowly Returning to the Living.
That's pretty nice!

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: POV-Ray (Persistence of Vision Raytracer)
PostPosted: Tue Aug 29, 2017 7:12 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 274
Dang, I just watched a very impressive animation video done with POV-Ray!

www.youtube.com Video from : www.youtube.com

_________________
Image


Top
 Post subject: Re: POV-Ray (Persistence of Vision Raytracer)
PostPosted: Wed Aug 30, 2017 1:39 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 06, 2017
Posts: 159
Location: UK.
PhotoMaster wrote:
That's pretty nice!

Thanks! Just a start...

racer-x wrote:
Dang, I just watched a very impressive animation video done with POV-Ray!


That's amazing, well I'm not quite there yet, only been at it a few hours !

However, managed to render a little GIF (with the help of GIMP..:) )
Image


Top
 Post subject: Re: POV-Ray (Persistence of Vision Raytracer)
PostPosted: Thu Aug 31, 2017 3:25 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 274
Did you do the morphing in gimp or povray? If you did it in gimp, what plugin did you use?

_________________
Image


Top
 Post subject: Re: POV-Ray (Persistence of Vision Raytracer)
PostPosted: Thu Aug 31, 2017 3:45 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 06, 2017
Posts: 159
Location: UK.
I used GIMP / 'G'MIC>Layers>Morph layers' for that, using high precision but low smoothness. I only recently discovered it tbh.


Top
 Post subject: Re: POV-Ray (Persistence of Vision Raytracer)
PostPosted: Thu Aug 31, 2017 7:45 am  (#9) 
Offline
GimpChat Member

Joined: May 16, 2010
Posts: 13982
Location: USA
You can animate warping in IWARP also. For example i created an ellipse and filled it with a gradient.
Then i opened IWARP warped the oval into a fish shape and saved it as a 25 layer animation. Below is the animated PNG version

Image

For those who cannot see the APNG file here is a GIF version.

Image

You can get the files to add animated png (APNG) export to GIMP-2.8.22 by going here.
viewtopic.php?f=9&t=212&hilit=IWARP&start=110#p31336

32 and 64 bit files are available for the Animated PNG setup. (windows only i am afraid)


Top
 Post subject: Re: POV-Ray (Persistence of Vision Raytracer)
PostPosted: Thu Aug 31, 2017 8:04 am  (#10) 
Offline
GimpChat Member

Joined: May 16, 2010
Posts: 13982
Location: USA
Image


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

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group