POV-Ray : Newsgroups : povray.general : triangle with smoth trasparency Server Time
2 Nov 2024 07:26:39 EDT (-0400)
  triangle with smoth trasparency (Message 1 to 3 of 3)  
From: Gianluca Massaccesi
Subject: triangle with smoth trasparency
Date: 24 May 2004 02:34:13
Message: <40b19765$1@news.povray.org>
I have set a smoth trasparency for a mesh of triangles with the option
texture list. The task was simulate an angle dependent light source. So I
put a source surraunded by a mesh of triangles with right pigment for each
vertex. It is known that in this way I can smooth linearly the pigment (in
my case the transmit propriety) between vertexes and trinagles. In my case
anyway I observed that, as triangles gets smaller and smaller (lets say som

pattern behaviour of the trasparency: in each traingle just 2-3 values of
trasparency were set. So the result of the light source is not smoth but
step shaped.

Is there anybody can explain me why, and is it is possible to be solved?

thank you everybody.

-- 
*********************************************
        Gianluca Massaccesi
Consulenza Scientifica e Tecnologica

v. Banchieri, 27 - 40133 Bologna Italy
tel: 0039-51-566391
cel:    348-4758772
*********************************************


Post a reply to this message

From: Warp
Subject: Re: triangle with smoth trasparency
Date: 24 May 2004 09:13:42
Message: <40b1f506@news.povray.org>
A simple sample scene would help a lot for people to visualize what you
are talking about...

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Gianluca Massaccesi
Subject: Re: triangle with smoth trasparency
Date: 25 May 2004 03:01:33
Message: <40b2ef4d$1@news.povray.org>
Here below there is a sample. It model a square subdivided in 8 triangles.
By assigning a texture in each vertex the trasparency should be smooth. On
the contrary you can see that each trangle has its own value, there is
discontinuity between triangles.

Could you tell me why? In my opinion it is due to the very little dimension
of the triangles. Could it be correct as I cannot increase the dimension of
triangles?

camera {
    location <0,-2,1.5>
     look_at <0,98,1.5>
     up    <0,0,1>
     right -x *1.3333
     angle 20
  }

#declare texture_screen = texture {
   pigment { color rgb<1,1,1> }
   finish { ambient 0 diffuse 2 }
 }
//EndTextures

//screen

#declare dist=25 ;

#declare nAng=6;
#declare Ang=radians(5);
#declare AngMax=nAng*Ang;
#declare lScreen=dist*tan(AngMax) ;

polygon {
        4,
        <lScreen, lScreen>, <-lScreen, lScreen>, <-lScreen, -lScreen>,
<lScreen, -lScreen>
        texture { texture_screen }
        rotate <90,0,0>
        translate <0, dist, 0>
        }

light_source {<0,0,0>,rgb 0.2
spotlight
point_at <0, 100, 0>
radius 80
falloff 80
fade_distance 25
fade_power 2
}

// angH(i)=91,25// angV(j)=88,75
#declare texture_1 = texture { pigment {color rgb 0 transmit 1.5625 }}
#declare texture_2 = texture { pigment {color rgb 0 transmit 1.7656 }}
#declare texture_3 = texture { pigment {color rgb 0 transmit 1.5469 }}
#declare texture_4 = texture { pigment {color rgb 0 transmit 1.3906 }}
#declare texture_5 = texture { pigment {color rgb 0 transmit 1.5469 }}
#declare texture_6 = texture { pigment {color rgb 0 transmit 1.6562 }}
#declare texture_7 = texture { pigment {color rgb 0 transmit 1.4688 }}
#declare texture_8 = texture { pigment {color rgb 0 transmit 1.4688 }}
#declare texture_9 = texture { pigment {color rgb 0 transmit 1.6562 }}
mesh {
   triangle
{<0.0065,0.2999,-0.0065>,<0.0033,0.3,-0.0033>,<0.0065,0.2999,-0.0033>
texture_list { texture_1  texture_2  texture_6 } }
   triangle
{<0.0065,0.2999,-0.0065>,<0.0033,0.2999,-0.0065>,<0.0033,0.3,-0.0033>
texture_list { texture_1  texture_9  texture_2 } }
   triangle
{<0.0065,0.2999,-0.0065>,<0.0065,0.2999,-0.0033>,<0.0098,0.2998,-0.0033>
texture_list { texture_1  texture_6  texture_3 } }
   triangle
{<0.0065,0.2999,-0.0065>,<0.0098,0.2998,-0.0033>,<0.0098,0.2998,-0.0065>
texture_list { texture_1  texture_3  texture_7 } }
   triangle
{<0.0065,0.2999,-0.0065>,<0.0098,0.2998,-0.0065>,<0.0098,0.2997,-0.0098>
texture_list { texture_1  texture_7  texture_4 } }
   triangle
{<0.0065,0.2999,-0.0065>,<0.0098,0.2997,-0.0098>,<0.0065,0.2998,-0.0098>
texture_list { texture_1  texture_4  texture_8 } }
   triangle
{<0.0065,0.2999,-0.0065>,<0.0065,0.2998,-0.0098>,<0.0033,0.2998,-0.0098>
texture_list { texture_1  texture_8  texture_5 } }
   triangle
{<0.0065,0.2999,-0.0065>,<0.0033,0.2998,-0.0098>,<0.0033,0.2999,-0.0065>
texture_list { texture_1  texture_5  texture_9 } }
   }

"Warp" <war### [at] tagpovrayorg> ha scritto nel messaggio
news:40b1f506@news.povray.org...
>   A simple sample scene would help a lot for people to visualize what you
> are talking about...
>
> -- 
> #macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb
x]
> [1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
> -1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// -
Warp -


Post a reply to this message

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