POV-Ray : Newsgroups : povray.general : New Signature Server Time
7 Aug 2024 03:20:34 EDT (-0400)
  New Signature (Message 8 to 17 of 17)  
<<< Previous 7 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: New Signature
Date: 28 Dec 2001 15:02:03
Message: <3c2ccfba@news.povray.org>
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

From: Tor Olav Kristensen
Subject: Re: New Signature
Date: 28 Dec 2001 16:03:03
Message: <3C2CDE08.9FBE91C2@hotmail.com>
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

From: Tor Olav Kristensen
Subject: Re: New Signature
Date: 28 Dec 2001 16:07:40
Message: <3C2CDF1F.105931A6@hotmail.com>
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

From: Batronyx
Subject: Re: New Signature
Date: 28 Dec 2001 23:18:03
Message: <3c2d43fb$1@news.povray.org>
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

From: Ian Burgmyer
Subject: Re: New Signature
Date: 29 Dec 2001 01:39:46
Message: <3c2d6532$1@news.povray.org>
"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

From: Ken
Subject: Re: New Signature
Date: 1 Jan 2002 20:50:18
Message: <3C326757.E5BD3BEC@pacbell.net>
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

From: Dearmad
Subject: Re: New Signature
Date: 1 Jan 2002 21:53:05
Message: <3C32774E.911B60E@applesnake.net>
but only a 256 (or so) bytes...

-peter
-- 
Current obsession: "Ballet pour ma fille."
http://www.applesnake.net


Post a reply to this message

From: Ken
Subject: Re: New Signature
Date: 1 Jan 2002 22:07:42
Message: <3C32797B.21D5388@pacbell.net>
Dearmad wrote:
> 
> but only a 256 (or so) bytes...

That much !?!

-- 
Ken Tyler


Post a reply to this message

From: GrimDude
Subject: Re: New Signature
Date: 3 Jan 2002 22:39:01
Message: <3c3523d5@news.povray.org>
Seek help.

And stop wasting resources. Just by responding to this thread you've...

DOH!

GrimDude


Post a reply to this message

From: Ian Burgmyer
Subject: Re: New Signature
Date: 3 Jan 2002 23:41:44
Message: <3c353288$1@news.povray.org>
"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

<<< Previous 7 Messages Goto Initial 10 Messages

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