POV-Ray : Newsgroups : povray.animations : Custom Texture Fields Server Time
26 Jun 2024 14:26:02 EDT (-0400)
  Custom Texture Fields (Message 1 to 2 of 2)  
From: Jared
Subject: Custom Texture Fields
Date: 22 Apr 2003 11:20:05
Message: <web.3ea55cdf2e8cfe95274118ec0@news.povray.org>
Hey all,
I'll get right to it:

- In my final output, I would like objects passing through an area defined
by a word (I'll use "text" as an example) to have a certain texture. I
don't know how to define a texture area as the area inside a text, so if
anyone knows anything about this, help would be GREATLY appreciated.
- There will be many objects moving in the frame (some of which aren't
directly defined) leading me to believe it would be impracticle to "hide"
and replace objects as they enter the area created by the text (my original
plan).
- Lastly, does anyone know where I would go to learn about creating
randomized movment?

Thanks,
   Jared


Post a reply to this message

From: Mike Williams
Subject: Re: Custom Texture Fields
Date: 23 Apr 2003 14:37:30
Message: <Krt+EJAs0tp+Ewa$@econym.demon.co.uk>
Wasn't it Jared who wrote:
>Hey all,
>I'll get right to it:
>
>- In my final output, I would like objects passing through an area defined
>by a word (I'll use "text" as an example) to have a certain texture. I
>don't know how to define a texture area as the area inside a text, so if
>anyone knows anything about this, help would be GREATLY appreciated.
>- There will be many objects moving in the frame (some of which aren't
>directly defined) leading me to believe it would be impracticle to "hide"
>and replace objects as they enter the area created by the text (my original
>plan).

Look up "object pattern" and, if necessary, "text object" in the
documentation. You get something like this:-

global_settings {assumed_gamma 1.0}

camera {location  <1,1,-3> look_at <1,0,0>}

light_source {<0,3,-5> color rgb 1}

#declare T= text {ttf "ariblk.ttf", "TEXT", 20, 0}



#declare TXTURE = texture {
   object {T
     texture {pigment {rgb 1}},
     texture {pigment {wood scale 0.1 turbulence 0.2} normal{granite}}
   }
}

sphere {<0,0,1>,1 texture {TXTURE}}
sphere {<1,1,1>,0.6 texture {TXTURE}}
sphere {<2,0.2,1>,0.4 texture {TXTURE}}
sphere {<2.6,0.4,1>,0.3 texture {TXTURE}}


// Adding the following line helps you position the text
// which might be quite difficult if it happens to miss everything

//object {T pigment {rgb 0.5}}


Post a reply to this message

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