![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
light_source{<0,100,-50> color rgb 10}
background{blue 1}
#declare r0=2;
#declare r1=1;
#declare AMBIENT_VARIABLE=0;
#while(AMBIENT_VARIABLE<1.1)
parametric {
function { cos(u)*(r0+r1*cos(v)) }
function { sin(u)*(r0+r1*cos(v)) }
function { r1*sin(v) }
<0,0>, <2*pi,pi>
contained_by { sphere{0, 4.1} }
max_gradient .14
accuracy 0.001 // 0.0001
precompute 10 x,y,z
texture{pigment {rgb 1}
finish{ambient AMBIENT_VARIABLE}
}
translate 12*z+x*(-4+8*AMBIENT_VARIABLE)
}
#declare AMBIENT_VARIABLE=AMBIENT_VARIABLE+1;
#end
Post a reply to this message
Attachments:
Download 'torri.JPG' (5 KB)
Preview of image 'torri.JPG'
![torri.JPG](/povray.binaries.images/attachment/%3C3d7e34e8%241%40news.povray.org%3E/torri.JPG?preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
The only strangeness I see is that the black torus shouldn't be completely
black, since there's a light source, and its diffuse isn't set to zero.
Otherwise, everything looks correct.
But I don't know what direction we're looking at it from, since you haven't
included the whole scene.
In the future, you should mention what the problem *is*... or did you do
that in a different group somewhere?
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I thought it was a texture problem, where diffuse==0.
The whole scene file is included.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: hughes, b
Subject: Re: Two torii: parametric texture problem?
Date: 10 Sep 2002 17:04:49
Message: <3d7e5e71@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Greg M. Johnson" <gregj:-)565### [at] aol com> wrote in message
news:3d7e41ba$1@news.povray.org...
> I thought it was a texture problem, where diffuse==0.
> The whole scene file is included.
Camera is default, unused in script. Yes, that would seem to be so, the
diffuse isn't right or even the black torus would be white with a light
source color of 10.
Ah, now that I've rendered it I see it works okay here. I get a lit and
shadowed object on left side. I don't know what is wrong with that then.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
hughes, b. wrote:
>
> Ah, now that I've rendered it I see it works
> okay here. I get a lit and shadowed object
> on left side. I don't know what is wrong
> with that then.
>
With two different PC's I get the left torus to be black. Could you post
what you see?
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Here it is, small but obvious enough. Only thing I had changed from the
first time I tried rendering is the light source color is only 1 instead of
10.
--
Farewell,
Bob
Post a reply to this message
Attachments:
Download '00.jpg' (4 KB)
Preview of image '00.jpg'
![00.jpg](/povray.binaries.images/attachment/%3C3d7eb801%40news.povray.org%3E/00.jpg?preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Tue, 10 Sep 2002 14:06:38 -0400, "Greg M. Johnson" <gregj:-)565### [at] aol com>
wrote:
> contained_by { sphere{0, 4.1} }
There can be some bug in parametric code. Try change container to:
contained_by { box{-4.1 4.1} }
in your scene. The image looks different. Left object is now partially white.
I have partially pointed what can cause bugs in parametric object in
http://news.povray.org/saqrmuoi41v5iqkclmmggtk06n8t32s789%404ax.com
Read also thread http://news.povray.org/povray.general/26669/ .
BTW: Looking at your script I have a note. Do you one you waste memory a lot ?
IIRC parametric object is internally optimized to share precomputed data
between instances. So you can save memory changing your object definition this
way:
#declare Parametric_Example=parametric {
function { cos(u)*(r0+r1*cos(v)) }
function { sin(u)*(r0+r1*cos(v)) }
function { r1*sin(v) }
<0,0>, <2*pi,pi>
contained_by { sphere{0, 4.1} }
max_gradient .14
accuracy 0.001 // 0.0001
precompute 10 x,y,z
}
#declare AMBIENT_VARIABLE=0;
#while(AMBIENT_VARIABLE<1.1)
object {
Parametric_Example
texture{
pigment {rgb 1}
finish{ambient AMBIENT_VARIABLE}
}
translate 12*z+x*(-4+8*AMBIENT_VARIABLE)
}
#declare AMBIENT_VARIABLE=AMBIENT_VARIABLE+1;
#end
ABX
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |