POV-Ray : Newsgroups : povray.general : A little help about old vers. : Re: A little help about old vers. Server Time
27 Apr 2025 04:43:32 EDT (-0400)
  Re: A little help about old vers.  
From: GioSeregni
Date: 26 Apr 2025 13:25:00
Message: <web.680d160bce24a8bb7e2ea33059126100@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> "GioSeregni" <gms### [at] hotmailcom> wrote:
> > ...
> > > POV-Ray is looking for a 'texture{}' to wrap the pigment and finish,...
> > Yes, this is exactly the page by me indicated previously, if you see the whole
> > topic.
> > This page is very confusing to me.
> > I would like to find a way to update the old definitions as faithfully as
> > possible.
> > This "material" way is a suggestion I had, but I already knew it didn't work.
> > Thanks!
>
> the code below runs for me using a beta.2.  hth.
>
>
> regards, jr.
>
> -----<snip>-----
> #version 3.8;
>
> global_settings {assumed_gamma 1}
>
> #declare mat_ = material {
>   texture {
>     pigment {
>       color rgb <.81, .71, .23>
>     }
>     finish {
>       diffuse .5
>       ambient 0
>       specular 1
>       roughness .01
>       reflection {.6 metallic}
>       metallic
>     }
>   }
>   /* put an interior here */
> };
>
> box {
>  0,1
>  material {mat_}
> }
>
> light_source {<-1,1,-1>*1e3 color rgb 1 parallel}
>
> camera {
>   location <0,0,-5>
>   right x * (4/3)
>   up y
>   look_at <0,0,0>
> }

Many thanks!
I thought texture encapsulation was more complicated, now it works!


Post a reply to this message

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