 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Alf Peake" <alf### [at] peake42 freeserve co uk> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Timothy R. Cook <tim### [at] scifi-fantasy com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Alf Peake <alf### [at] peake42 freeserve co uk> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3D5### [at] scifi-fantasy com>,
"Timothy R. Cook" <tim### [at] scifi-fantasy com> 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] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> It's just a harmless bug. Shouldn't affect rendering in any way.
I wouldn't call it a bug ...
The BLOB-Object has no pigment ... so it complains ...
does it also complain, if there's a #default given?
if so, then I think one could talk about a mistake in the
design, but as it stands atm I think it should complain
even if all the components have a pigment attached, because
the warning isn't thrown by a component, that complains
about a missing pigment but it comes from the blob, which
has, in fact no pigment ...
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Jan Walzer" <jan### [at] lzer net> wrote in message
news:3d5f74f2@news.povray.org...
> > It's just a harmless bug. Shouldn't affect rendering in any way.
I see nothing wrong with the completed render.
>
> I wouldn't call it a bug ...
> The BLOB-Object has no pigment ... so it complains ...
> does it also complain, if there's a #default given?
No. I had removed a #default texture and then noticed this warning.
Adding a pigment{rgb 0} outside the sphere components removes the
warning but slows the render.
Alf
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> > > It's just a harmless bug. Shouldn't affect rendering in any way.
>
> I see nothing wrong with the completed render.
there shouldn't be anything wrong ...
> >
> > I wouldn't call it a bug ...
> > The BLOB-Object has no pigment ... so it complains ...
> > does it also complain, if there's a #default given?
>
> No. I had removed a #default texture and then noticed this warning.
> Adding a pigment{rgb 0} outside the sphere components removes the
> warning but slows the render.
really ... this is interesting ...
Are you really sure about the slowdown?
this could really be a misdesign then ...
... but I'm not programmer enough, to prove that ...
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3D5### [at] scifi-fantasy com>,
"Timothy R. Cook" <tim### [at] scifi-fantasy com> wrote:
> 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, your statement is incorrect. A sphere requires 2 parameters, a
vector for the center and a scalar radius. A sphere blob component can
take 3, the additional one is a strength parameter. Neither of them take
a color value.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jan Walzer <jan### [at] lzer net> wrote:
> I wouldn't call it a bug ...
> The BLOB-Object has no pigment ... so it complains ...
A CSG does not complain about not having a pigment defined if every
subcomponent has a pigment defined. IMHO the blob object should work in
the same 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Jan Walzer" <jan### [at] lzer net> wrote in message
news:3d5f8686$1@news.povray.org...
[]
> > Adding a pigment{rgb 0} outside the sphere components removes the
> > warning but slows the render.
>
> really ... this is interesting ...
> Are you really sure about the slowdown?
> this could really be a misdesign then ...
My old scene used a 1000 component blob with a calculated texture for
each component. I remember moving the finish from the texture block to
the end of the blob object and not being happy with the new time
(megapov 0.4). I've just tried this again with pov 3.5 and can see no
difference in render times now.
Alf
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Christoph Hormann" <chr### [at] gmx de> wrote in message
news: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.
>
And if you're gonna expand a vector out and say it has 3 components, you
should expand out the texture modifier as well, and it's sub-components, and
all their sub-components, and.... So, a sphere takes an _infinite_ number of
components... ;)
--
Pandora/Scott Hill/[::O:M:C::]Scorpion
Software Engineer.
http://www.pandora-software.com
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |