POV-Ray : Newsgroups : povray.binaries.images : Help! - texture problem Server Time
7 Aug 2024 05:15:05 EDT (-0400)
  Help! - texture problem (Message 11 to 16 of 16)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Norbert Kern
Subject: Re: Help! - texture problem
Date: 1 Jul 2006 02:15:00
Message: <web.44a612da9c5d72994c493f840@news.povray.org>
The lower right one is what I want, but I don't get it.
my color_map -
[0.0  rgb 0.5 transmit 1.0 filter 0]
[0.3  rgb 1.0 transmit 0.7 filter 0]
[0.9  rgb 0.0 transmit 0.1 filter 0]
[1.0  rgb 0.0 transmit 0.0 filter 0]

What POvray version you have used?

No, I don't want to make craters. Its part of an automatic vegetation
distribution approach.

Norbert Kern


Post a reply to this message


Attachments:
Download 'problem3.jpg' (55 KB)

Preview of image 'problem3.jpg'
problem3.jpg


 

From: Zeger Knaepen
Subject: Re: Help! - texture problem
Date: 1 Jul 2006 07:01:00
Message: <44a655ec$1@news.povray.org>
"Norbert Kern" <nor### [at] t-onlinede> wrote in message 
news:web.44a5fb529c5d72994c493f840@news.povray.org...
> #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>

here's your problem: transparency only works as expected if the 
transparent object is, in this case, higher than the background.
so, change translate <Inter.x,0,Inter.z> into translate 
<Inter.x,rand(r1)*.1,Inter.z>, and you'll get the desired effect.

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

From: Norbert Kern
Subject: Re: Help! - texture problem
Date: 1 Jul 2006 08:00:01
Message: <web.44a663059c5d7299e4cffda70@news.povray.org>
"Zeger Knaepen" <zeg### [at] povplacecom> wrote:

> here's your problem: transparency only works as expected if the
> transparent object is, in this case, higher than the background.
> so, change translate <Inter.x,0,Inter.z> into translate
> <Inter.x,rand(r1)*.1,Inter.z>, and you'll get the desired effect.


Thank you Zeger, this helped a lot!

Norbert Kern


Post a reply to this message

From: Jim Charter
Subject: Re: Help! - texture problem
Date: 1 Jul 2006 10:23:57
Message: <44a6857d$1@news.povray.org>
Norbert Kern wrote:
> The lower right one is what I want, but I don't get it.
> my color_map -
> [0.0  rgb 0.5 transmit 1.0 filter 0]
> [0.3  rgb 1.0 transmit 0.7 filter 0]
> [0.9  rgb 0.0 transmit 0.1 filter 0]
> [1.0  rgb 0.0 transmit 0.0 filter 0]

lower right was
[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]


> 
> What POvray version you have used?
> 
Mega 1.1


Post a reply to this message

From: Shay
Subject: Re: Help! - texture problem
Date: 1 Jul 2006 15:09:02
Message: <44a6c84e$1@news.povray.org>
Norbert Kern wrote:
> 
> 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.
> 

Then use branches:

fa = max(fb, fc)
fd = max(fe, ff)
fg = max(fa, fd)

You're only going to see a white blob with 1 million discs. To get an 
idea, set your background to rgb <0,0,0> and place 1 million discs with:

color_map {
   [0.0  rgb 1.0 transmit .5 filter 0]
   [0.3  rgb 1.0 transmit 0 filter 0]
   [0.9  rgb 1.0 transmit 1 filter 0]
   [1.0  rgb 1.0 transmit 1 filter 0]
}

Won't be exactly what you're trying to do, but it will give you an idea 
(until you reach max_trace_level).

  -Shay


Post a reply to this message

From: Norbert Kern
Subject: Re: Help! - texture problem
Date: 2 Jul 2006 02:05:00
Message: <web.44a761c39c5d7299b1e4135b0@news.povray.org>
Thank you to all, who helped me to solve the problem.

Norbert Kern


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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