POV-Ray : Newsgroups : povray.binaries.images : Very WIP Server Time
17 Aug 2024 06:17:28 EDT (-0400)
  Very WIP (Message 1 to 5 of 5)  
From: Bill DeWitt
Subject: Very WIP
Date: 10 Nov 2001 21:29:51
Message: <3bede29f@news.povray.org>
All this talk of H.E. Day has made me think I should try doing some
image maps on isosurfaces. This is just a second try to find out where
things end up on the sphere.


Post a reply to this message


Attachments:
Download 'Mapsphere02.jpg' (86 KB)

Preview of image 'Mapsphere02.jpg'
Mapsphere02.jpg


 

From: Captain Tylor
Subject: Re: Very WIP
Date: 13 Nov 2001 10:13:50
Message: <3bf138ae$1@news.povray.org>
I didn't know you could use image maps on isosurfaces.  Is there a source
code example anywhere of using an image map on an isosurface that I could
see?

"Bill DeWitt" <bde### [at] cflrrcom> wrote in message
news:3bede29f@news.povray.org...
>
>     All this talk of H.E. Day has made me think I should try doing some
> image maps on isosurfaces. This is just a second try to find out where
> things end up on the sphere.
>
>
>


Post a reply to this message

From: Bill DeWitt
Subject: Re: Very WIP
Date: 13 Nov 2001 11:51:03
Message: <3bf14f77$1@news.povray.org>
My indenting got eaten by the news reader... here is something more
readable... I hope...

#declare  SPHERE = function {x^2 + y^2 + z^2 -1}

//... then one for your imagemap

#declare  IMAGEMAP  =
function {
                 pigment {
                         image_pattern {
                               tga "ImageMapHF16.tga"
                               map_type 1
                               interpolate 2
                              }
                scale < 0.0, 0.0, -1.0 >
                                        }
                               }

//    ... then you add them together....

#declare SHIP=function{
                              SPHERE(x,y,z)
                           - IMAGEMAP(x,y,z).grey *.75 }

//     ... then you make it an isosurface...

isosurface {
  function { SHIP(x,y,z) }
        evaluate 1, 1000, 0.99
        max_gradient 200
        contained_by{sphere{0,1.5}}
        pigment { rgb 1 }
        scale < 1.0, 0.25, 0.75 >
}

"Bill DeWitt" <bde### [at] cflrrcom> wrote in message
news:3bf14dfa$1@news.povray.org...
>
> "Captain Tylor" <fis### [at] hrupennedu> wrote in message
> news:3bf138ae$1@news.povray.org...
> > I didn't know you could use image maps on isosurfaces.  Is there a
source
> > code example anywhere of using an image map on an isosurface that I
could
> > see?
>
> First you make a function for your sphere...
>
>
> #declare  SPHERE = function {x^2 + y^2 + z^2 -1}
>
> //... then one for your imagemap
>
> #declare  IMAGEMAP  = function {
>                                 pigment {
>                                          image_pattern {
>                                                         tga
> "ImageMapHF16.tga"
>                                                         map_type 1  //
> spherical
>                                                         interpolate 2
>                                                        }
>                                          scale < 1.0, 1.0, -1.0 > // flips
> (optional)
>                                         }
>                                }
>
> //    ... then you add them to gether....
>
> #declare SHIP=function{SPHERE(x,y,z) - IMAGEMAP(x,y,z).grey *.75 }
>
> //     ... then you make it an isosurface...
>
> isosurface {
>   function { SHIP(x,y,z) }
>         max_gradient 200
>         contained_by{sphere{0,1.5}}
>         pigment { rgb 1 }
>         scale < 1.0, 0.25, 0.75 >
> }
>
>
>


Post a reply to this message

From: Captain Tylor
Subject: Re: Very WIP
Date: 13 Nov 2001 12:51:19
Message: <3bf15d97$1@news.povray.org>
Thanks.  I'll have to give this a try.

"Bill DeWitt" <bde### [at] cflrrcom> wrote in message
news:3bf14f77$1@news.povray.org...
>     My indenting got eaten by the news reader... here is something more
> readable... I hope...
>
> #declare  SPHERE = function {x^2 + y^2 + z^2 -1}
>
> //... then one for your imagemap
>
> #declare  IMAGEMAP  =
> function {
>                  pigment {
>                          image_pattern {
>                                tga "ImageMapHF16.tga"
>                                map_type 1
>                                interpolate 2
>                               }
>                 scale < 0.0, 0.0, -1.0 >
>                                         }
>                                }
>
> //    ... then you add them together....
>
> #declare SHIP=function{
>                               SPHERE(x,y,z)
>                            - IMAGEMAP(x,y,z).grey *.75 }
>
> //     ... then you make it an isosurface...
>
> isosurface {
>   function { SHIP(x,y,z) }
>         evaluate 1, 1000, 0.99
>         max_gradient 200
>         contained_by{sphere{0,1.5}}
>         pigment { rgb 1 }
>         scale < 1.0, 0.25, 0.75 >
> }
>
> "Bill DeWitt" <bde### [at] cflrrcom> wrote in message
> news:3bf14dfa$1@news.povray.org...
> >
> > "Captain Tylor" <fis### [at] hrupennedu> wrote in message
> > news:3bf138ae$1@news.povray.org...
> > > I didn't know you could use image maps on isosurfaces.  Is there a
> source
> > > code example anywhere of using an image map on an isosurface that I
> could
> > > see?
> >
> > First you make a function for your sphere...
> >
> >
> > #declare  SPHERE = function {x^2 + y^2 + z^2 -1}
> >
> > //... then one for your imagemap
> >
> > #declare  IMAGEMAP  = function {
> >                                 pigment {
> >                                          image_pattern {
> >                                                         tga
> > "ImageMapHF16.tga"
> >                                                         map_type 1  //
> > spherical
> >                                                         interpolate 2
> >                                                        }
> >                                          scale < 1.0, 1.0, -1.0 > //
flips
> > (optional)
> >                                         }
> >                                }
> >
> > //    ... then you add them to gether....
> >
> > #declare SHIP=function{SPHERE(x,y,z) - IMAGEMAP(x,y,z).grey *.75 }
> >
> > //     ... then you make it an isosurface...
> >
> > isosurface {
> >   function { SHIP(x,y,z) }
> >         max_gradient 200
> >         contained_by{sphere{0,1.5}}
> >         pigment { rgb 1 }
> >         scale < 1.0, 0.25, 0.75 >
> > }
> >
> >
> >
>
>


Post a reply to this message

From: nospam
Subject: Re: Very WIP
Date: 14 Nov 2001 18:37:42
Message: <3bf1b5ca.2367518@localhost>
On Sat, 10 Nov 2001 21:29:49 -0500, "Bill DeWitt"
<bde### [at] cflrrcom> wrote:

>
>    All this talk of H.E. Day has made me think I should try doing some
>image maps on isosurfaces. This is just a second try to find out where
>things end up on the sphere.
>
>
>begin 666 Mapsphere02.jpg

That is freaken cool!  It give me ideas.

Pete


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.