![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Hi,
I have a problem. I want to generate discs with overlaping textures. But all
what I get are discrete discs despite trying many settings for transmit or
filter. The disc definition is as follows -
//__________________________________
disc {
0,y,1
texture {
pigment {
cylindrical
color_map {
[0.0 rgb 0.5 transmit 0 filter 0]
[0.3 rgb 1.0 transmit 0 filter 0]
[0.9 rgb 0.0 transmit 0 filter 0]
[1.0 rgb 0.0 transmit 0 filter 0]
}
}
finish {ambient 1 diffuse 0}
}
}
//___________________________________
There are no lights, no radiosity, only these discs and a background with
rgb
0.5.
How can I get 'merged' discs?
Please help!
Norbert Kern
Post a reply to this message
Attachments:
Download 'problem.jpg' (62 KB)
Preview of image 'problem.jpg'
![problem.jpg](/povray.binaries.images/attachment/%3Cweb.44a5389df94cf7555504269e0%40news.povray.org%3E/problem.jpg?ttop=443866&toff=4350&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Norbert Kern" <nor### [at] t-online de> wrote in message
news:web.44a5389df94cf7555504269e0@news.povray.org...
> I have a problem. I want to generate discs with overlaping textures.
But all
> what I get are discrete discs despite trying many settings for
transmit or
> filter. The disc definition is as follows -
>
> //__________________________________
>
> disc {
> 0,y,1
> texture {
> pigment {
> cylindrical
> color_map {
> [0.0 rgb 0.5 transmit 0 filter 0]
> [0.3 rgb 1.0 transmit 0 filter 0]
> [0.9 rgb 0.0 transmit 0 filter 0]
> [1.0 rgb 0.0 transmit 0 filter 0]
> }
> }
> finish {ambient 1 diffuse 0}
> }
> }
>
> //___________________________________
how do you expect to have transparency with a transmit-value of 0 ? :-/
try:
disc {
0,y,1
texture {
pigment {
cylindrical
color_map {
[0.0 rgb 0.5 transmit 1]
[0.3 rgb 1.0 transmit 0]
[0.9 rgb 0.0 transmit 0]
[1.0 rgb 0.0 transmit 0]
}
}
finish {ambient 1 diffuse 0}
}
}
cu!
--
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x) // ZK http://www.povplace.com
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Norbert Kern wrote:
> Hi,
>
> I have a problem. I want to generate discs with overlaping textures. But all
> what I get are discrete discs despite trying many settings for transmit or
> filter. The disc definition is as follows -
You don't want transmit or filter. You want disc*disc or max(disc, disc)
or min(disc, disc). To do any of that, you'll need to make each pattern
you would like to overlap into a function.
-Shay
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
thanx, but your tip doesn't solve the problem.
Of course I tried several values for transmit and filter.
Norbert Kern
Post a reply to this message
Attachments:
Download 'problem2.jpg' (59 KB)
Preview of image 'problem2.jpg'
![problem2.jpg](/povray.binaries.images/attachment/%3Cweb.44a5890d9c5d7299a5591a630%40news.povray.org%3E/problem2.jpg?ttop=443866&toff=4350&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Shay <sha### [at] none none> wrote:
> You don't want transmit or filter. You want disc*disc or max(disc, disc)
> or min(disc, disc). To do any of that, you'll need to make each pattern
> you would like to overlap into a function.
interesting, but in the end I want to do it with more than 1000000 discs.
IIRC you can add so many patterns in a single function.
Norbert Kern
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
could you give the entire source ?
cu!
--
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x) // ZK http://www.povplace.com
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Norbert Kern wrote:
> Hi,
>
> I have a problem. I want to generate discs with overlaping textures. But all
> what I get are discrete discs despite trying many settings for transmit or
> filter. The disc definition is as follows -
>
> //__________________________________
>
> disc {
> 0,y,1
> texture {
> pigment {
> cylindrical
> color_map {
> [0.0 rgb 0.5 transmit 0 filter 0]
> [0.3 rgb 1.0 transmit 0 filter 0]
> [0.9 rgb 0.0 transmit 0 filter 0]
> [1.0 rgb 0.0 transmit 0 filter 0]
> }
> }
> finish {ambient 1 diffuse 0}
> }
> }
>
> //___________________________________
>
> There are no lights, no radiosity, only these discs and a background with
> rgb
> 0.5.
>
> How can I get 'merged' discs?
> Please help!
I guess I am not sure what you want.
some thing like this gets?
[0.0 rgb 0.5 transmit 1 filter 0]
[0.3 rgb 1.0 transmit .5 filter 0]
[0.9 rgb 0.0 transmit .5 filter 0]
[1.0 rgb 0.0 transmit .5 filter 0]
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Zeger Knaepen" <zeg### [at] povplace com> wrote:
> could you give the entire source ?
>
> cu!
this piece of code shows the problem -
//_______________________________
global_settings {
assumed_gamma 2.2
max_trace_level 150
noise_generator 2
}
#declare hfscalx = 80;
#declare hfscalz = 60;
camera {
orthographic
location <0,100,0>
look_at <0,0,0>
right hfscalx*x
up hfscalz*z
}
background {color rgb 0.5}
//plane {y, -1 texture {pigment {color rgb 0.5} finish {ambient 1 diffuse
0}}}
#declare thingy =
disc {
0,y,1
texture {
pigment {
cylindrical
color_map {
[0.0 rgb 0.5 transmit 0 filter 0]
[0.3 rgb 1.0 transmit 0 filter 0]
[0.9 rgb 0.0 transmit 0 filter 0]
[1.0 rgb 0.0 transmit 0 filter 0]
}
}
finish {ambient 1 diffuse 0}
}
scale 4
hollow double_illuminate
}
#declare areal = plane {y,0}
#declare r1 = seed(1);
#declare n = 0;
#while (n < 200)
#declare X = rand(r1)*hfscalx*2;
#declare Z = rand(r1)*hfscalz*2;
#declare Norm = <0,0,0>;
#declare Start = <X-hfscalx,100,Z-hfscalz>;
#declare Inter = trace (areal,Start,-y,Norm);
#if (vlength (Norm) != 0)
object {
thingy
scale (0.7+0.6*rand(r1))
translate <Inter.x,0,Inter.z>
}
#declare n = n+1;
#end
#end
//______________________________________________
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Jim Charter <jrc### [at] msn com> wrote:
> I guess I am not sure what you want.
>
> some thing like this gets?
> [0.0 rgb 0.5 transmit 1 filter 0]
> [0.3 rgb 1.0 transmit .5 filter 0]
> [0.9 rgb 0.0 transmit .5 filter 0]
> [1.0 rgb 0.0 transmit .5 filter 0]
I'm sorry, doen't help.
Transmit seems only to let fade out the pigment without any transparency
I posted source code in my last answer within this thread, Jim.
Norbert Kern
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Norbert Kern wrote:
> Jim Charter <jrc### [at] msn com> wrote:
>
>
>> I guess I am not sure what you want.
>>
>> some thing like this gets?
>> [0.0 rgb 0.5 transmit 1 filter 0]
>> [0.3 rgb 1.0 transmit .5 filter 0]
>> [0.9 rgb 0.0 transmit .5 filter 0]
>> [1.0 rgb 0.0 transmit .5 filter 0]
>
>
>
>
> I'm sorry, doen't help.
> Transmit seems only to let fade out the pigment without any transparency
> I posted source code in my last answer within this thread, Jim.
>
Okay, I ran that code. It shows what I got when I tested the code you
first showed. Attached is my own version.
Upper left is your original texture with no filter, no transmission.
Lower left is the texture with .5 filter on all pigments and 0 transmission.
Upper right is 0 filter and .5 transmission on all pigments.
Lower right shows the texture with 0 filter and the transmission varied
from 1 at the outer edge of each disc to 0 at the center.
Given this reference I am wondering which effects are favourable and
which are not for your final effect.
Alternatively maybe you could mock up the effect you want in an image
editor. It is what you mean by "merged discs" and "transparency" that I
am not understanding I guess.
Are you trying for craters btw?
Post a reply to this message
Attachments:
Download 'img.test.0069.jpg' (39 KB)
Preview of image 'img.test.0069.jpg'
![img.test.0069.jpg](/povray.binaries.images/attachment/%3C44a60c45%40news.povray.org%3E/img.test.0069.jpg?ttop=443866&toff=4350&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |