POV-Ray : Newsgroups : povray.newusers : pigment type Server Time
6 Sep 2024 00:20:52 EDT (-0400)
  pigment type (Message 6 to 15 of 15)  
<<< Previous 5 Messages Goto Initial 10 Messages
From: Ken
Subject: Re: pigment type
Date: 3 Sep 1999 07:50:51
Message: <37CFB5CC.FFF231B4@pacbell.net>
Sander wrote:
> 
> Hello Ken,
> You are quick!

I know :)

> I hope this isn't too large.
> I get 3 times the message "No pigment type given."
> It must be in the material "Kolom_M", but I don't see it.
> Thanks for your answers!
> Sander

Your example is well within the acceptable size limits for this group.

 I am not sure why you are getting that warning with your current use
of material. It really  should work from what I can tell. Anyway there
are two ways to get rid of the warnings. Either move the materials from
within the cylinder statements to the end of the union as illustrated or
remove them completely from the entire union and attach them to the objects
when they are used. I have also illustrated how this should be done.
Memory wise if you had 1000's of objects you would be better off adding
the material statement to the end of the union instead of adding them to
the individual pieces.

#declare COL = 
union{ 
  cylinder{ <0, 0, 0>,<0, 5, 0>, 30 
//    material{ Kolom_M } 
    }
  cylinder{ <0, 25, 0>, <0, 100, 0>, 22  
//    material {Kolom_M } 
    }
  scale 2
    material {Kolom_M }   }   

camera{
  location    <2600, 150, 20600>
  look_at     <5300,  50, 20000>
  angle        15
  }


object{ COL translate < 5300, 0, 20000 > }//    material {Kolom_M } }
object{ COL translate < 5800, 0, 20000 > }//    material {Kolom_M } }
object{ COL translate < 4800, 0, 20000 > }//    material {Kolom_M } }


  As far as educational purposes go you can eliminate the material statement
altogether from your scene. The material statement was added to Pov so that
you could pre-declare textures that need an interior statement i.e:

Declare Glass =
 texture {
  pigment { rgbf 1 }
    finish  { ambient .3 diffuse .12 specular 1 roughness .0001 }
 }

#declare My_Glass =
 material {
   texture { Glass }
   interior { ior 1.33 }
 }

sphere { 0,1
 material { My_Glass }
}

 There is no real reason to use it except in these cases and it was not
intended to be used otherwise. In your case you can use the texture as
a wrapper by itself without the need for the material statment being in
there.

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Ken
Subject: Re: pigment type
Date: 3 Sep 1999 07:59:55
Message: <37CFB7EC.A37E0C8B@pacbell.net>
Nieminen Juha wrote:

>   However, it shouldn't complain in the previous case either. Is this a bug?

I question that myself... Hmmmm....

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Sander
Subject: Re: pigment type
Date: 3 Sep 1999 08:42:19
Message: <37cfc22b@news.povray.org>
Hello N.J.,
Thank you, yes, that works. But I really need two different materials in the
union, and according to Ken I don't need materials at all, textures wouls be
fine. This I did and everything is OK.
Thanks,    Sander

Nieminen Juha <war### [at] cctutfi> schreef in berichtnieuws
37cfb4cd@news.povray.org...
>
>   If you substitute this:
>
> : #declare COL =


Post a reply to this message

From: Sander
Subject: Re: pigment type
Date: 3 Sep 1999 08:47:01
Message: <37cfc345@news.povray.org>
Hello Ken, thanks a lot. Yes, I see now. I use now textures and all is fine.
I really neede different textures in the union, that in the complete form
contains many objects of different textures. I didn't read up carefully on
materials. What a nice way of getting solutions to problems! Thanks,
Sander

Ken <tyl### [at] pacbellnet> schreef in berichtnieuws
37CFB5CC.FFF231B4@pacbell.net...
>
>
}
>
>  There is no real reason to use it except in these cases and it was not
> intended to be used otherwise. In your case you can use the texture as
> a wrapper by itself without the need for the material statment being in
> there.
>
> --
> Ken Tyler
>
> See my 850+ Povray and 3D Rendering and Raytracing Links at:
> http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Margus Ramst
Subject: Re: pigment type
Date: 3 Sep 1999 09:58:13
Message: <37CFD3E8.653A17F9@peak.edu.ee>
Looks suspicious.
I can't test it myself right now. Does it still complain when you flip the
finish and pigment blocks?
Just an idea.

Margus

Nieminen Juha wrote:
> 
>   However, it shouldn't complain in the previous case either. Is this a bug?
> 
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Ken
Subject: Re: pigment type
Date: 3 Sep 1999 10:07:29
Message: <37CFD5D2.BC4B370E@pacbell.net>
Margus Ramst wrote:
> 
> Looks suspicious.
> I can't test it myself right now. Does it still complain when you flip the
> finish and pigment blocks?
> Just an idea.
> 
> Margus

It doth persist even when switched. I thought of that when I first looked at
the code and checked that right away when I first rendered it. Important to
note is that the pigment is being applied to the object as it should be. The
only descrepency is that Pov is reporting the pigment warning without cause.

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Matt Giwer
Subject: Re: pigment type
Date: 18 Sep 1999 04:39:05
Message: <37E34FA2.397CE17B@giwersworld.org>
> recently I get the message "no pgment type given" when I use materials - I
> have no idea what to do about it or where to look for bad progrtamming. The
> help on the scene language doesn't help me either. Help!
> Sander

	That is perhaps my favorite warning message. Once I took the
time to correct it but once and forget what it was. Worrisome to
read but it does not affect the render so I try to ignore it. OK,
I've been warned but it renders as desired. 

-- 
<blink>---please--don't---</blink>

http://www.giwersworld.org/artiii/

Oh my God! They've rendered Kenny!


Post a reply to this message

From: Tomas Plachetka
Subject: Re: pigment type
Date: 20 Sep 1999 08:51:52
Message: <37E62DB7.599FF36E@uni-paderborn.de>
Sander wrote:
> 
> Hello Ken,
> You are quick!
> I hope this isn't too large.
> I get 3 times the message "No pigment type given."
> It must be in the material "Kolom_M", but I don't see it.
> Thanks for your answers!
> Sander

hi,

i'm using an older version of pov-ray (3.02) in
which "material" did not exist. i removed in your 
source the "material" blocks from the #declares 
and replaced "material" with "texture" where the 
material was used.
i got 0 warnings and 0 errors.

	y.

> ////////////////////////////////////////////////////////////////////////////
> ////////
> #include "colors.inc"
> 
> #declare Kolom_M =
>   material{
>     texture{
>       finish{
>         reflection 0.1
>         diffuse 0.09
>         specular 0.2
>         roughness 1/2
>         ambient 0.15
>         phong 0.1
>       }
>       pigment{color <0.8,0.8,0.6>}
>     }
>   }

<snip>


Post a reply to this message

From: Tomas Plachetka
Subject: Re: pigment type
Date: 20 Sep 1999 08:52:24
Message: <37E62DF5.60AD568C@uni-paderborn.de>
Sander wrote:
> 
> Hello Ken,
> You are quick!
> I hope this isn't too large.
> I get 3 times the message "No pigment type given."
> It must be in the material "Kolom_M", but I don't see it.
> Thanks for your answers!
> Sander

hi,

i'm using an older pov-ray (3.02) in which "material" 
did not exist. i removed in your source the "material" 
blocks from the #declares and replaced "material" 
with "texture" where the material was used.
i got 0 warnings and 0 errors.

	y.

> ////////////////////////////////////////////////////////////////////////////
> ////////
> #include "colors.inc"
> 
> #declare Kolom_M =
>   material{
>     texture{
>       finish{
>         reflection 0.1
>         diffuse 0.09
>         specular 0.2
>         roughness 1/2
>         ambient 0.15
>         phong 0.1
>       }
>       pigment{color <0.8,0.8,0.6>}
>     }
>   }

<snip>


Post a reply to this message

From: Sander
Subject: Re: pigment type
Date: 22 Sep 1999 09:39:03
Message: <37e8dbf7@news.povray.org>
Thank you all: I only use texture now and all is fine. Thanks.
Sander

Tomas Plachetka <pla### [at] uni-paderbornde> schreef in berichtnieuws
37E62DF5.60AD568C@uni-paderborn.de...
> Sander wrote:
> >
> > Hello Ken,
> > You are quick!
> > I hope this isn't too large.
> > I get 3 times the message "No pigment type given."
> > It must be in the material "Kolom_M", but I don't see it.
> > Thanks for your answers!
> > Sander
>
> hi,
>
> i'm using an older pov-ray (3.02) in which "material"
> did not exist. i removed in your source the "material"
> blocks from the #declares and replaced "material"
> with "texture" where the material was used.
> i got 0 warnings and 0 errors.
>
> y.
>
> >
////////////////////////////////////////////////////////////////////////////
> > ////////
> > #include "colors.inc"
> >
> > #declare Kolom_M =
> >   material{
> >     texture{
> >       finish{
> >         reflection 0.1
> >         diffuse 0.09
> >         specular 0.2
> >         roughness 1/2
> >         ambient 0.15
> >         phong 0.1
> >       }
> >       pigment{color <0.8,0.8,0.6>}
> >     }
> >   }
>
> <snip>


Post a reply to this message

<<< Previous 5 Messages Goto Initial 10 Messages

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