|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp <war### [at] tagpovrayorg> wrote:
: light_source{0,1}#macro c(J,a)sphere{0,1scale a translate J+O}#end#macro B(R,
: V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+10)c(0<7.5,45,5>
: )}}#end union{B(12,0z*25)B(8y*4<0,12,50>)pigment{rgb z}}
And as there's no need for scaling anymore, we can reduce the sig even
more:
light_source{0,1}#macro c(J,a)sphere{0,1pigment{rgb z}scale a translate J+O}
#end#macro B(R,V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+
10)c(0<7.5,45,5>)}}#end B(12,0z*25)B(8y*4<0,12,50>)
--
#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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote:
>
> Warp <war### [at] tagpovrayorg> wrote:
> : light_source{0,1}#macro c(J,a)sphere{0,1scale a translate J+O}#end#macro B(R,
> : V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+10)c(0<7.5,45,5>
> : )}}#end union{B(12,0z*25)B(8y*4<0,12,50>)pigment{rgb z}}
>
> And as there's no need for scaling anymore, we can reduce the sig even
> more:
>
> light_source{0,1}#macro c(J,a)sphere{0,1pigment{rgb z}scale a translate J+O}
> #end#macro B(R,V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+
> 10)c(0<7.5,45,5>)}}#end B(12,0z*25)B(8y*4<0,12,50>)
Yes that's exactly the same conclusion that I reached.
Note that if the light source had not been postioned
at origo too, then the light rays would have hit the
object at different angles.
Tor Olav
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote:
>
> Tor Olav Kristensen <tor### [at] hotmailcom> wrote:
> :> light_source{0,1}#macro c(J,a)sphere{0,1scale a translate J+O}#end#macro B(R,
> :> V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+10)c(0<7.5,45,5>
> :> )}}#end union{B(12,0z*25)B(8y*4<0,12,50>)pigment{rgb z}scale.5}
>
> I got lost. How can this work?
> From what I see, the 'scale.5' at the end is now scaling *both* instances
> of B() instead of just the second one, as previously, so now also the first
> instance should be reduced to half size.
> But when I render this, I can't believe my eyes: It's identical.
>
> I don't get it. *shame*
Here's the explanation that I had prepared
for posting, before I noticed that Warp had
answered his question himself.
But I'm posting it anyway, in case that any-
one finds this informative. (And because it
took me while to write it =)
I think that with the default camera;
camera {
perspective
location <0,0,0>
direction <0,0,1>
right 1.33*x
up y
sky <0,1,0>
}
which is placed at origo and looking in the
positive z-direction, an object will be in the
same vertical/horizontal "screen position" and
have the same "screen size" as any other copy
of the same object scaled differently, but
uniformly with respect to all 3 axes; i.e.:
scale constant*<1, 1, 1>. (The distance from
origo is scaled by the same amount as the size
of the object.)
So even this should produce the same image:
> light_source{0,1}#macro c(J,a)sphere{0,1scale a pigment{rgb z}translate J+O}
> #end#macro B(R,V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+
> 10)c(0<7.5,45,5>)}}#end B(12,0z*25)B(8y*4<0,12,50>)
Tor Olav
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Wow! "The incredible shrinking signature" I'm both impressed and grateful.
Bravo! Thanks guys.
--
light_source{0,1}#macro c(J,a)sphere{0,1pigment{rgb z}scale a translate J+O}
#end#macro B(R,V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+
10)c(0<7.5,45,5>)}}#end B(12,0z*25)B(8y*4<0,12,50>) // Batronyx ^"^
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Batronyx" <bat### [at] alliancecablenet> wrote in message
news:3c2d43fb$1@news.povray.org...
> Wow! "The incredible shrinking signature" I'm both impressed and grateful.
> Bravo! Thanks guys.
The group shrunk mine down to two lines in p.o-t, but I decided to keep the
original, four line version that I did...I like how it comes out as one big
block :-)
--
#macro S(M)cylinder{E(M)<A,C,5>,<B,D,5>,.1,15}#end#macro E(P)#if(div(P,16)
)#declare B=-1;#declare D=-2;#end#if(div(P,32))#declare A=1;#declare C=0;#
end#if(div(P,64))#declare B=-1;#declare D=0;#end#if(div(P,128))#declare A=
1;#declare C=2;#end#end blob{S(192)S(96)S(48)pigment{rgb 8*z}} /** Ian **/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Ian Burgmyer wrote:
> The group shrunk mine down to two lines in p.o-t, but I decided to keep the
> original, four line version that I did...I like how it comes out as one big
> block :-)
I think it is a waste of server resources.
--
Ken Tyler
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
but only a 256 (or so) bytes...
-peter
--
Current obsession: "Ballet pour ma fille."
http://www.applesnake.net
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Dearmad wrote:
>
> but only a 256 (or so) bytes...
That much !?!
--
Ken Tyler
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Seek help.
And stop wasting resources. Just by responding to this thread you've...
DOH!
GrimDude
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"GrimDude" <vos### [at] gulfnet> wrote in message news:3c3523d5@news.povray.org...
> Seek help.
I think it's too late for Ken :-)
> And stop wasting resources. Just by responding to this thread you've...
>
> DOH!
LOL :-)
--
#macro S(M)cylinder{E(M)<A,C,5>,<B,D,5>,.1,15}#end#macro E(P)#if(div(P,16)
)#declare B=-1;#declare D=-2;#end#if(div(P,32))#declare A=1;#declare C=0;#
end#if(div(P,64))#declare B=-1;#declare D=0;#end#if(div(P,128))#declare A=
1;#declare C=2;#end#end blob{S(192)S(96)S(48)pigment{rgb 8*z}} /** Ian **/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|