|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
|
|