POV-Ray : Newsgroups : povray.newusers : Texture help needed Server Time
1 Nov 2024 01:21:07 EDT (-0400)
  Texture help needed (Message 1 to 7 of 7)  
From: Stephen
Subject: Texture help needed
Date: 12 Oct 2006 09:45:00
Message: <web.452e464ea4e3cf9df1cb1e660@news.povray.org>
I would like to make a texture for a regular object like a sphere or blob
that would have a base colour with random (controllable) spots of another
colour. Like measles spots or a toadstool. I am at a loss, and would
appreciate a hint or clue about how to go about it?

TIA

Stephen


Post a reply to this message

From: Marc
Subject: Re: Texture help needed
Date: 12 Oct 2006 11:53:44
Message: <452e6508$1@news.povray.org>

web.452e464ea4e3cf9df1cb1e660@news.povray.org...
> I would like to make a texture for a regular object like a sphere or blob
> that would have a base colour with random (controllable) spots of another
> colour. Like measles spots or a toadstool. I am at a loss, and would
> appreciate a hint or clue about how to go about it?

You could make a union of small  random (controlable) spheres and use
object_pattern
http://www.povray.org/documentation/view/3.6.1/386/
but it's boolean, so you'll get sharp borders to your spots


Marc


Post a reply to this message

From: Bryan Valencia
Subject: Re: Texture help needed
Date: 12 Oct 2006 12:25:18
Message: <452e6c6e$1@news.povray.org>
try this



#include "colors.inc"

light_source{<0,100,-100> color rgb 1}
sphere{<-1,0,0>,1
 texture{
  pigment{leopard turbulence .1
   color_map{
    [0 color Tan]
    [0.6 color Tan]
    [0.8 color Red]
    [1 color White]
   }
   scale .1
  }
 }
}
sphere{<1,0,0>,1
 texture{
  pigment{spotted
   color_map{
    [0 color Tan]
    [0.6 color Tan]
    [0.8 color Red]
    [1 color White]
   }
   scale .1
  }
 }
}

camera{location <0,0,-4.25> look_at<0,0,0>}

background {rgb .5}







"Stephen" <mcavoys_AT_aolDOT.com> wrote in message
news:web.452e464ea4e3cf9df1cb1e660@news.povray.org...
> I would like to make a texture for a regular object like a sphere or blob
> that would have a base colour with random (controllable) spots of another
> colour. Like measles spots or a toadstool. I am at a loss, and would
> appreciate a hint or clue about how to go about it?
>
> TIA
>
> Stephen
>
>


Post a reply to this message

From: Stephen
Subject: Re: Texture help needed
Date: 13 Oct 2006 03:30:01
Message: <web.452f4050ebdb47d3f1cb1e660@news.povray.org>
"Marc" <jac### [at] wanadoofr> wrote:
> You could make a union of small  random (controlable) spheres and use
> object_pattern
> http://www.povray.org/documentation/view/3.6.1/386/
> but it's boolean, so you'll get sharp borders to your spots




Stephen


Post a reply to this message

From: Stephen
Subject: Re: Texture help needed
Date: 13 Oct 2006 03:35:01
Message: <web.452f409eebdb47d3f1cb1e660@news.povray.org>
"Bryan Valencia" <pov### [at] spamgourmetcom> wrote:
> try this
>
[Snip]

pigment{leopard} is what I was looking for, thanks.
I tried spotted but it is the same as bozo, and that did not give me what I
wanted.

Stephen


Post a reply to this message

From: Tek
Subject: Re: Texture help needed
Date: 14 Oct 2006 08:36:23
Message: <4530d9c7$1@news.povray.org>
I generally use:

pigment {
  crackle
  form <1,0,0> //make circular shapes, not polygonal ones
  colour_map { [.3 spotcolour][.3 basecolour] }
}

That way the spots have a random distribution but each is perfectly 
circular.

-- 
Tek
http://evilsuperbrain.com

"Stephen" <mcavoys_AT_aolDOT.com> wrote in message 
news:web.452e464ea4e3cf9df1cb1e660@news.povray.org...
>I would like to make a texture for a regular object like a sphere or blob
> that would have a base colour with random (controllable) spots of another
> colour. Like measles spots or a toadstool. I am at a loss, and would
> appreciate a hint or clue about how to go about it?
>
> TIA
>
> Stephen
>
>


Post a reply to this message

From: Stephen
Subject: Re: Texture help needed
Date: 16 Oct 2006 07:55:00
Message: <web.4533726debdb47d3f1cb1e660@news.povray.org>
"Tek" <tek### [at] evilsuperbraincom> wrote:
> I generally use:
>
> pigment {
>   crackle
>   form <1,0,0> //make circular shapes, not polygonal ones
>   colour_map { [.3 spotcolour][.3 basecolour] }
> }
>
> That way the spots have a random distribution but each is perfectly
> circular.
>


good thing, I think :-)

Stephen


Post a reply to this message

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