 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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] cc tut fi> schreef in berichtnieuws
37cfb4cd@news.povray.org...
>
> If you substitute this:
>
> : #declare COL =
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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] pacbell net> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thank you all: I only use texture now and all is fine. Thanks.
Sander
Tomas Plachetka <pla### [at] uni-paderborn de> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |