POV-Ray : Newsgroups : povray.general : blob- No pigment type warning Server Time
18 Nov 2024 13:14:48 EST (-0500)
  blob- No pigment type warning (Message 1 to 10 of 17)  
Goto Latest 10 Messages Next 7 Messages >>>
From: Alf Peake
Subject: blob- No pigment type warning
Date: 17 Aug 2002 19:10:42
Message: <3d5ed7f2@news.povray.org>
blob{
    sphere{ -x/2, 1, 1 pigment{ red 1 } }
    sphere{ x/2, 1, 1 pigment{ green 1 } }
}

Pov 3.5 (and 3.1) complain no pigment type given. Am I missing
something simple? I've only just noticed this while updating an old
3.1 scene but docs 6.5.1.1 seem to say above is legal.

Alf


Post a reply to this message

From: Timothy R  Cook
Subject: Re: blob- No pigment type warning
Date: 17 Aug 2002 20:57:25
Message: <3D5EF0F4.7040804@scifi-fantasy.com>
Alf Peake wrote:
> blob{
>     sphere{ -x/2, 1, 1 pigment{ red 1 } }
>     sphere{ x/2, 1, 1 pigment{ green 1 } }
> }
> 
> Pov 3.5 (and 3.1) complain no pigment type given. Am I missing
> something simple? I've only just noticed this while updating an old
> 3.1 scene but docs 6.5.1.1 seem to say above is legal.

A sphere needs X, Y, Z, radius, and colour.  What you
have there is being interpreted as the first four of
those.

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Robert Chaffe
Subject: Re: blob- No pigment type warning
Date: 17 Aug 2002 21:59:28
Message: <3d5eff80@news.povray.org>
"Alf Peake" <alf### [at] peake42freeservecouk> wrote in message
news:3d5ed7f2@news.povray.org...
> blob{
>     sphere{ -x/2, 1, 1 pigment{ red 1 } }
>     sphere{ x/2, 1, 1 pigment{ green 1 } }
> }
>
> Pov 3.5 (and 3.1) complain no pigment type given. Am I missing
> something simple? I've only just noticed this while updating an old
> 3.1 scene but docs 6.5.1.1 seem to say above is legal.

The "no pigment type given" message is just a warning.  Though the blob
itself has no pigment, what you have specified is perfectly legal.

--
Robert Chaffe
http://www.donovansweb.com/~chaffe/


Post a reply to this message

From: Warp
Subject: Re: blob- No pigment type warning
Date: 17 Aug 2002 23:42:24
Message: <3d5f17a0@news.povray.org>
Timothy R. Cook <tim### [at] scifi-fantasycom> wrote:
> A sphere needs X, Y, Z, radius, and colour.

  Wrong. What a spherical blob component needs is: vector, float, float

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Warp
Subject: Re: blob- No pigment type warning
Date: 17 Aug 2002 23:42:59
Message: <3d5f17c3@news.povray.org>
Alf Peake <alf### [at] peake42freeservecouk> wrote:
> Pov 3.5 (and 3.1) complain no pigment type given.

  It's just a harmless bug. Shouldn't affect rendering in any way.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Christopher James Huff
Subject: Re: blob- No pigment type warning
Date: 18 Aug 2002 00:21:49
Message: <chrishuff-FC0680.23083917082002@netplex.aussie.org>
In article <3D5### [at] scifi-fantasycom>,
 "Timothy R. Cook" <tim### [at] scifi-fantasycom> wrote:

> Alf Peake wrote:
> > blob{
> >     sphere{ -x/2, 1, 1 pigment{ red 1 } }
> >     sphere{ x/2, 1, 1 pigment{ green 1 } }
> > }
> > 
> > Pov 3.5 (and 3.1) complain no pigment type given. Am I missing
> > something simple? I've only just noticed this while updating an old
> > 3.1 scene but docs 6.5.1.1 seem to say above is legal.
> 
> A sphere needs X, Y, Z, radius, and colour.  What you
> have there is being interpreted as the first four of
> those.

That is not even close to correct. Spherical blob components take a 
vector for the center and a float radius, like the sphere primitive, and 
an additional strength float value. You can also specify a texture for 
individual components. You do not specify a color, but you can specify 
only the pigment of a texture. This is exactly what is specified here.

This warning (not an error) is caused by the fact that the blob shape on 
the whole doesn't have a texture defined. This is usually a mistake, so 
it produces a warning. The components themselves have textures, so it 
will render fine.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Timothy R  Cook
Subject: Re: blob- No pigment type warning
Date: 18 Aug 2002 04:01:36
Message: <3D5F545F.4050207@scifi-fantasy.com>
Christopher James Huff wrote:
>>A sphere needs X, Y, Z, radius, and colour.  What you
>>have there is being interpreted as the first four of
>>those.
> That is not even close to correct. Spherical blob
 > components take a vector for the center and a float
 > radius, like the sphere primitive, and an additional
 > strength float value.

My statement, as it stands by itelf, is correct; I
misunderstood Alf's code because I'm not familiar
with blobs.  A SPHERE does need the five components
I mentioned.  However, what was being talked about
wasn't spheres, it was sphere COMPONENTS of a blob.

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Christoph Hormann
Subject: Re: blob- No pigment type warning
Date: 18 Aug 2002 04:11:16
Message: <3D5F56A3.828D7867@gmx.de>
"Timothy R. Cook" wrote:
> 
>  > That is not even close to correct. Spherical blob
>  > components take a vector for the center and a float
>  > radius, like the sphere primitive, and an additional
>  > strength float value.
> 
> My statement, as it stands by itelf, is correct; I
> misunderstood Alf's code because I'm not familiar
> with blobs.  A SPHERE does need the five components
> I mentioned.  However, what was being talked about
> wasn't spheres, it was sphere COMPONENTS of a blob.

No, as Chris Huff said, a sphere needs a vector for the center and a float
for the radius.  A warning is issued if no texture is given in either the
sphere itself or in a wrapping CSG structure.

So nothing like 5 components, see also the docs, section 6.5.1.9:

SPHERE:
    sphere
    {
        <Center>, Radius
        [OBJECT_MODIFIERS...]
    }


Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Timothy R  Cook
Subject: Re: blob- No pigment type warning
Date: 18 Aug 2002 05:05:25
Message: <3D5F6355.2090302@scifi-fantasy.com>
Christoph Hormann wrote:
> So nothing like 5 components, see also the docs, section 6.5.1.9:
> 
> SPHERE:
>     sphere
>     {
>         <Center>, Radius
>         [OBJECT_MODIFIERS...]
>     }

I counted the texture modifier as a single component;
center has 3 components (x, y, and z), then there's the
radius.  that leaves us with 5 components.

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Christoph Hormann
Subject: Re: blob- No pigment type warning
Date: 18 Aug 2002 05:11:48
Message: <3D5F64D3.ECA3C521@gmx.de>
"Timothy R. Cook" wrote:
> 
> > SPHERE:
> >     sphere
> >     {
> >         <Center>, Radius
> >         [OBJECT_MODIFIERS...]
> >     }
> 
> I counted the texture modifier as a single component;
> center has 3 components (x, y, and z), then there's the
> radius.  that leaves us with 5 components.
> 

Not a very good idea, 'sphere { 0, 1 }' is perfectly legal and i don't see
any five components.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

Goto Latest 10 Messages Next 7 Messages >>>

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