POV-Ray : Newsgroups : povray.binaries.images : finish maps [67kbu] Server Time
16 Nov 2024 08:23:00 EST (-0500)
  finish maps [67kbu] (Message 1 to 10 of 10)  
From: Mael
Subject: finish maps [67kbu]
Date: 7 Mar 2003 04:58:26
Message: <3e686d42@news.povray.org>
A quick example to illustrate the finish maps in mlpov, here we use the same
map for specular and reflection but they could have been different.
Unfortunately the patch is far from complete (there are problems with
transformations, etc)

#declare fmap = function { pigment { image_map { jpeg "metal_44_s.jpg"
map_type 1 interpolate 2 } } }
#declare fmap_g = function { fmap(x,y,z).gray * 2 }
...
finish {
  ambient .1
  diffuse .6
  specular fmap_g
  reflection fmap
  roughness .01
}


Post a reply to this message


Attachments:
Download 'metal_44_s.jpg' (47 KB) Download 'finish.jpg' (22 KB)

Preview of image 'metal_44_s.jpg'
metal_44_s.jpg

Preview of image 'finish.jpg'
finish.jpg


 

From: Timothy R  Cook
Subject: Re: finish maps [67kbu]
Date: 7 Mar 2003 06:36:09
Message: <3e688429@news.povray.org>
*blinks*

Hhhheyyyyyyy...

I wannit!

-- 
Tim Cook
http://home.bellsouth.net/p/PWP-empyrean

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Apache
Subject: Re: finish maps [67kbu]
Date: 7 Mar 2003 12:05:37
Message: <3e68d161@news.povray.org>
I think we all do!


Post a reply to this message

From: Jide
Subject: Re: finish maps [67kbu]
Date: 7 Mar 2003 13:18:59
Message: <3e68e293$1@news.povray.org>
Is there any way to get it working with uv_mapping?

--
-Jide


Post a reply to this message

From: Mael
Subject: Re: finish maps [67kbu]
Date: 7 Mar 2003 14:15:29
Message: <3e68efd1@news.povray.org>
> Is there any way to get it working with uv_mapping?

yes, by adding the keyword "uv_mapping" in the finish

M


Post a reply to this message

From: Kitsune e
Subject: Re: finish maps [67kbu]
Date: 7 Mar 2003 18:00:06
Message: <web.3e6923d55028885071469c610@news.povray.org>
Mael wrote:
>A quick example to illustrate the finish maps in mlpov, here we use the same
>map for specular and reflection but they could have been different.
>Unfortunately the patch is far from complete (there are problems with
>transformations, etc)
>
>#declare fmap = function { pigment { image_map { jpeg "metal_44_s.jpg"
>map_type 1 interpolate 2 } } }
>#declare fmap_g = function { fmap(x,y,z).gray * 2 }
>....
>finish {
>  ambient .1
>  diffuse .6
>  specular fmap_g
>  reflection fmap
>  roughness .01
>}
>

Yes, this looks very usefull!  Actualy I wondered why there was  no finish
map in the official release...


Post a reply to this message

From: Jide
Subject: Re: finish maps [67kbu]
Date: 8 Mar 2003 06:55:07
Message: <3e69da1b@news.povray.org>
Mael wrote:
> > Is there any way to get it working with uv_mapping?
>
> yes, by adding the keyword "uv_mapping" in the finish

Thanks, it really does work!

I didn't think of adding it to the finish, I tried it in the pigment
function which didn't work (needless to say?)

--
-Jide


Post a reply to this message

From: Hugo Asm
Subject: Re: finish maps [67kbu]
Date: 8 Mar 2003 07:04:05
Message: <3e69dc35$1@news.povray.org>
> I didn't think of adding it to the finish, I tried it in the pigment
> function which didn't work (needless to say?)

You need MegaPOV or MLpov.
I suggest the newest incarnation of MegaPOV:

http://www.schunter.etc.tu-bs.de/~chris/megapov/

(temporary link)

Regards,
Hugo


Post a reply to this message

From: Jide
Subject: Re: finish maps [67kbu]
Date: 8 Mar 2003 08:26:35
Message: <3e69ef8b$1@news.povray.org>
Hugo Asm wrote:
> > I didn't think of adding it to the finish, I tried it in the pigment
> > function which didn't work (needless to say?)
>
> You need MegaPOV or MLpov.
> I suggest the newest incarnation of MegaPOV:
>
> http://www.schunter.etc.tu-bs.de/~chris/megapov/
>

Yeah, I know. I have MLPov

--
-Jide


Post a reply to this message

From: Gilles Tran
Subject: Re: finish maps [67kbu]
Date: 10 Mar 2003 09:20:41
Message: <3e6c9f39@news.povray.org>

3e686d42@news.povray.org...
> A quick example to illustrate the finish maps in mlpov, here we use the
same
> map for specular and reflection but they could have been different.
> Unfortunately the patch is far from complete (there are problems with
> transformations, etc)

Note that for those who can't wait for the patch, finish map effects can
already be done using image_pattern. The patch may have other advantages of
course.

G.


#include "colors.inc"
global_settings {assumed_gamma 1.0}
camera {location -z*4+y*0.5 direction 1.5*z   right
x*image_width/image_height look_at <0.0, 0.0,  0.0>}
sky_sphere {pigment {gradient y color_map {[0.0 rgb <0.6,0.7,1.0>][0.7 rgb
<0.0,0.1,0.8>]}}}
light_source { 0, rgb 1 translate -z*50 rotate x*30 rotate y*-70}
light_source { 0, rgb 0.5 translate -z*50 rotate x*20 rotate y*50}
plane {  y, -1  pigment { color rgb <0.7,0.5,0.3> }}
#declare N_Sphere=normal{
    average
    normal_map{
        [2 bump_map{jpeg "metal_44_s.jpg" map_type 1 interpolate 2 }
bump_size 0.2]
        [1 bumps 0.4 scale 1/100 ]
    }
}
sphere {
    0.0, 1
    texture {
        image_pattern{jpeg "metal_44_s.jpg" map_type 1 interpolate 2 }
        texture_map{
            [0 pigment{Red*0.1} normal{N_Sphere} finish{ambient 0 diffuse
0.6 specular 0.1 reflection 0 roughness 0.01}]
            [0.001 pigment{White*0.1} normal{N_Sphere} finish{ambient 0
diffuse 0.6 specular 0.1 reflection 0 roughness 0.01}]
            [0.2 pigment{White*0.5} normal{N_Sphere} finish{ambient 0
diffuse 0.6 specular 0.1 reflection 0 roughness 0.01}]
            [0.6 pigment{White*0.5} normal{N_Sphere } finish{ambient 0
diffuse 0.6 specular 1 reflection {0.3,0.8} roughness 0.03}]
        }
    }
    rotate y*20
}

--

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message


Attachments:
Download 'test_finishmap.jpg' (11 KB)

Preview of image 'test_finishmap.jpg'
test_finishmap.jpg


 

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