 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Just wondering... Several people here have signitures consisting of
compacted POV-Ray code. Has anyone ever actually tried *running* this stuff?
I just did, was utterly unable to follow how the heck it works, but was
highly impressed by the resulting graphics!
Just a thought...
Andrew.
PS. I gotta get me one! :-|
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Andrew Coppin <orp### [at] btinternet com> wrote:
> Just wondering... Several people here have signitures consisting of
> compacted POV-Ray code. Has anyone ever actually tried *running* this stuff?
Well, some time ago (a year or something like that?) there was a boom
of making compact pov-signatures.
I think that the idea started from me using a compact signature written
in C and then making a similar with pov code (or was it someone else who
made it in pov code first? I can't remember).
At that time it was a common practice for me and a couple of other people
to take the signatures of other people and shorten them even more (without
affecting the resulting image in any way, or at most only slightly
noticeably). Some of the shortenings were really impressive (eg. something
like from 5 lines to 2 lines).
Usually shortening has the side-effect of making the code even more
obfuscated, so it has two advantages.
--
#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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Much enlightened ;-)
Andrew.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Andrew Coppin" <orp### [at] btinternet com> wrote in
news:3d99a877@news.povray.org:
> Just wondering... Several people here have signitures consisting of
> compacted POV-Ray code. Has anyone ever actually tried *running* this
> stuff?
I did, and actually I collect all these signatures in a file...
> I just did, was utterly unable to follow how the heck it works,
> but was highly impressed by the resulting graphics!
A good exercise is to format nicely these signatures, then to understand how
they work. Renaming variables may help :-)
> Just a thought...
> Andrew.
I believe the origin of such craziness is from "The International Obfuscated
C Code Contest" <http://www.ioccc.org/>
Now, most programming languages has some obfuscated code showing :-)
Even Perl, which is quite obfuscated in its natural state ;-)
See also the "Name that programming language" (approximate citation) from
the Off-Topic newsgroup.
> PS. I gotta get me one! :-|
Me too :-) I just have to start working on it, creating a short scene then
compressing it.
--
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> I believe the origin of such craziness is from "The International
Obfuscated
> C Code Contest" <http://www.ioccc.org/>
I think the very *existence* of the IOCCC is a statment about the mentality
of C programmers... (Bloody weirdos!) I keep having these nightmares that
one day I'll wake up and discover I've become a C programmer...
(Of course, programming in Java can hardly be considered sane either! But
it's mainly the class library that's bizzare, not the actuall language...)
> Now, most programming languages has some obfuscated code showing :-)
> Even Perl, which is quite obfuscated in its natural state ;-)
Oooo... Can't stand Perl!
> > PS. I gotta get me one! :-|
>
> Me too :-) I just have to start working on it, creating a short scene then
> compressing it.
Mmm... with my years of experience of fractal geometry and iterated systems,
_surely_ I can come up with something ;-)
Andrew.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
For short code scenes, see:
http://10best.raytrace.com/short/shorttable.html
and
http://10best.raytrace.com/short2/shortvote2.html
--
#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 <3d99cb49@news.povray.org>,
"Andrew Coppin" <orp### [at] btinternet com> wrote:
> I think the very *existence* of the IOCCC is a statment about the mentality
> of C programmers... (Bloody weirdos!) I keep having these nightmares that
> one day I'll wake up and discover I've become a C programmer...
You are aware of the language POV-Ray is written in, aren't you? And
that probably the only group on this server with a higher concentration
of coders and patch writers is povray.unofficial.patches? ;-)
> (Of course, programming in Java can hardly be considered sane either! But
> it's mainly the class library that's bizzare, not the actuall language...)
I think C++ is an even better example. There you have an ugly library
*and* a language that you can do all sorts of bizzare stuff in.
Perl is more obfuscated in normal use, but you can't do as much. Either
one can be reduced to something that doesn't resemble anything
human-readable.
--
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> You are aware of the language POV-Ray is written in, aren't you? And
> that probably the only group on this server with a higher concentration
> of coders and patch writers is povray.unofficial.patches? ;-)
Er... well...
'Oh dear'... I think I might be in trouble here... [Smiles sweetly and exits
stage left]
> I think C++ is an even better example. There you have an ugly library
> *and* a language that you can do all sorts of bizzare stuff in.
> Perl is more obfuscated in normal use, but you can't do as much. Either
> one can be reduced to something that doesn't resemble anything
> human-readable.
I hate Perl. I can't get it to work at all. It's nasty. I've had more sucess
with C, although it's just too dam hard to read... (I was actually trying to
write an object engine... *you* try manipulating pointers to pointers to
arrays of pointers to functions! Very hard when you don't have any sort of
manual ;-) Not to mention the danger of leaving pointers dangling... I
wouldn't *dare* try it with anything other than Linux 8-D (But then... I've
never heard of a C compiler that works on anything but Linux. I'm sure such
things must _exist_, but I've never come across one...)
Andrew.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Andrew Coppin wrote:
> Just wondering... Several people here have signitures consisting of
> compacted POV-Ray code. Has anyone ever actually tried *running* this stuff?
> I just did, was utterly unable to follow how the heck it works, but was
> highly impressed by the resulting graphics!
>
Someone had even made a web page of most of them. Unfortunately, I've
been googling for 30 minutes now, and I can't find it... :(
> PS. I gotta get me one! :-|
Everyone does. Post the results in p.g. and watch the sparks fly!
It's quite interesting to find out the tricks other povers will come up
with to compact your .sig even more!
>
>
>
--
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/* flabreque */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/* @ */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/* videotron.ca */}camera{orthographic location<6,1.25,-6>look_at a }
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Andrew Coppin <orp### [at] btinternet com> wrote:
> (But then... I've
> never heard of a C compiler that works on anything but Linux.
You must be joking, right?
--
#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 <3d9a0f2c@news.povray.org>,
"Andrew Coppin" <orp### [at] btinternet com> wrote:
> I hate Perl. I can't get it to work at all. It's nasty. I've had more sucess
> with C, although it's just too dam hard to read... (I was actually trying to
> write an object engine... *you* try manipulating pointers to pointers to
> arrays of pointers to functions! Very hard when you don't have any sort of
> manual ;-)
You are probably making things too difficult. And function pointers are
very weird at first, but they will make more sense eventually.
> Not to mention the danger of leaving pointers dangling... I
> wouldn't *dare* try it with anything other than Linux 8-D (But then... I've
> never heard of a C compiler that works on anything but Linux. I'm sure such
> things must _exist_, but I've never come across one...)
Huh? The vast majority of C compilers were for non-Linux platforms. C
itself existed long before Linux, and is as old as Unix (it was created
to make developing Unix easier...the first Unix was written in PDP-11
assembler, but was rewritten in C two years later, in 1973). One of the
main goals in its design was portability.
--
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
As I said guys, I know that compilers must _exist_ for other platforms (what
with the number of C programmers they want for Windows projects and so
forth)... Actually, now I strain my brain a bit, we used a Borland C++
compiler at college (DOS-based thingy - but then, we were using Win 3.11
anyway!) But let's face it, you'd be hard pressed to find a Linux distro
with no C compiler; how many Windows install CDs have one? ;-) How many
*free* ones are there? Linux (and probably UNIX) is just _built_ to compile
C; Windows needs more effort. (In many other things too... ;-)
Andrew.
"If there's one thing more complicated than C, it's UNIX!"
PS. Drifting kinda off-topic here ;-)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Andrew Coppin wrote:
> As I said guys, I know that compilers must _exist_ for other platforms (what
> with the number of C programmers they want for Windows projects and so
> forth)... Actually, now I strain my brain a bit, we used a Borland C++
> compiler at college (DOS-based thingy - but then, we were using Win 3.11
> anyway!) But let's face it, you'd be hard pressed to find a Linux distro
> with no C compiler;
That's just because the distributors bundle one with it. The C, C++,
Fortran and Pascal compilers that come with most distributions are
really separate pieces of software.
Some Unices do (or did) not come with a bundled C compiler.
> how many Windows install CDs have one? ;-) How many
> *free* ones are there?
GCC is available for many platforms, including Windows.
> Linux (and probably UNIX) is just _built_ to compile C;
No. Just because most Linux distros also include an older version of
POV-Ray doesn't mean that Linux was made for POVing.
> PS. Drifting kinda off-topic here ;-)
Indeed. follow-ups set.
--
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/* flabreque */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/* @ */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/* videotron.ca */}camera{orthographic location<6,1.25,-6>look_at a }
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Andrew Coppin <orp### [at] btinternet com> wrote:
> Windows needs more effort.
Windows itself is written mostly in C (at least win3.x was; probably also
win9x used a lot of the same C code; currently windows is probably written
mostly in C++).
> "If there's one thing more complicated than C, it's UNIX!"
Unix is user-friendly. It's just selective about who its friends are. ;)
--
#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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
There was a company named "Microsoft" that came out with a C compiler about
15 years ago for DOS. I don't know what's happened to them since, must have
fallen into obscurity...
Based on my experience, and this is not meant as a criticism towards anyone
specific, overly complex or unreadable C or C++ is the fault of the
programmer, not the language.
> wouldn't *dare* try it with anything other than Linux 8-D (But then...
I've
> never heard of a C compiler that works on anything but Linux. I'm sure
such
> things must _exist_, but I've never come across one...)
>
> Andrew.
>
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Andrew Coppin wrote:
>PS. I gotta get me one! :-|
Me too...and there it is! ...Well almost. =)
light_source{0 color 1}cone{-z,0.1,z,0 pigment{wrinkles color_map{[0 rgb
0][0.5 rgbf<1,0,0,1>][0.6 rgbf<0,1,0,1>][1 rgb 0]}scale 0.1}}plane{z,1
pigment{color rgb 1}}
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Can be somewhat shorter...
light_source{0 color 1}cone{-z,.1,z,0 pigment{wrinkles color_map{[0 rgb
0][.5 rgbf<1,0,0,1>][.6 rgbf<0,1,0,1>][1 rgb 0]}scale .1}}plane{z,1
pigment{rgb 1}}
--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmx de
> Andrew Coppin wrote:
> >PS. I gotta get me one! :-|
>
> Me too...and there it is! ...Well almost. =)
>
> light_source{0 color 1}cone{-z,0.1,z,0 pigment{wrinkles color_map{[0 rgb
> 0][0.5 rgbf<1,0,0,1>][0.6 rgbf<0,1,0,1>][1 rgb 0]}scale 0.1}}plane{z,1
> pigment{color rgb 1}}
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Mon, 14 Oct 2002 20:05:38 +0200, "Tim Nikias" <tim### [at] gmx de> wrote:
> Can be somewhat shorter...
>
> light_source{0 color 1}cone{-z,.1,z,0 pigment{wrinkles color_map{[0 rgb
> 0][.5 rgbf<1,0,0,1>][.6 rgbf<0,1,0,1>][1 rgb 0]}scale .1}}plane{z,1
> pigment{rgb 1}}
It is much too long
light_source{0on}cone{-z.1z,0pigment{wrinkles color_map{[0rgb 0][.5rgbf
x+t][.6rgbf y+t][1rgb 0]}scale .1}}plane{z,1pigment{rgb 1}}
Idea of heaving POV sig is not only to have a nice image there but also to put
something to recognize who is owner of the sig. So could be nice to include
nick there. Not talking about the cryptic nature of signatures :-)
ABX
--
disc{z,-z#macro O()asc(substr("-+((1*(,1,/.-,*/(,&.323/'1"e 1))/10-4#declare
e=e-1;#end#local e=26;5pigment{#local g=function(_){ceil(_)-_}function#local
k=function{pattern{object{sphere_sweep{linear_spline 13#while(e)<O()O()>.01#
end}}}}{k(g(atan2(x,y)),g(ln(pow(x+y,2)+1e-5)),0)}}finish{ambient 1}}//ABX35
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"ABX" <abx### [at] abx art pl> schreef in bericht
news:tq2mquolujdpajd67q0gd1al2l3dgrcurk@4ax.com...
>
> It is much too long
>
> light_source{0on}cone{-z.1z,0pigment{wrinkles color_map{[0rgb 0][.5rgbf
> x+t][.6rgbf y+t][1rgb 0]}scale .1}}plane{z,1pigment{rgb 1}}
>
Sorry to respond after more than a week, but this is a matter of life and
death... The thing is that yet another superfluous character remains in Pyry's
nice and short sig. Being a very compulsive person, my rest of days would have
had mere shallow meaning if this issue was left unattended.
light_source{0on}cone{-z.1z,0pigment{wrinkles color_map{[0rgb 0][.5rgbf
x+t][.6rgbf y+t][1rgb 0]}scale.1}}plane{z,1pigment{rgb 1}}
JM
--
#macro J(M)V()<V()V()V()>#if(M)J(M)#end#end#local _=20;#macro V()asc(substr
("IIMYKIIYMMKQOIMYQEEYSCEYUEGQWEHYYIGQ[HEY]IGY_JGQaJEYcKGYeKGQgLEYiMKIs!K "
73-M,1))/2-36.5#declare M=M-1;#end#local a=spline{cubic_spline J(72)}#while
(_)sphere{a(_).1pigment{rgb(a(_)+(x+y)*3.5)}}#local _=_-.02;#end//JM
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jan Maarten van der Valk wrote:
>"ABX" <abx### [at] abx art pl> schreef in bericht
>news:tq2mquolujdpajd67q0gd1al2l3dgrcurk[at]4ax.com...
>>
>> It is much too long
>>
>> light_source{0on}cone{-z.1z,0pigment{wrinkles color_map{[0rgb 0][.5rgbf
>> x+t][.6rgbf y+t][1rgb 0]}scale .1}}plane{z,1pigment{rgb 1}}
>>
>
>Sorry to respond after more than a week, but this is a matter of life and
>death... The thing is that yet another superfluous character remains in Pyry's
>nice and short sig. Being a very compulsive person, my rest of days would have
>had mere shallow meaning if this issue was left unattended.
>
>light_source{0on}cone{-z.1z,0pigment{wrinkles color_map{[0rgb 0][.5rgbf
>x+t][.6rgbf y+t][1rgb 0]}scale.1}}plane{z,1pigment{rgb 1}}
>
>
>JM
>--
>#macro J(M)V()<V()V()V()>#if(M)J(M)#end#end#local _=20;#macro V()asc(substr
>("IIMYKIIYMMKQOIMYQEEYSCEYUEGQWEHYYIGQ[HEY]IGY_JGQaJEYcKGYeKGQgLEYiMKIs!K "
>73-M,1))/2-36.5#declare M=M-1;#end#local a=spline{cubic_spline J(72)}#while
>(_)sphere{a(_).1pigment{rgb(a(_)+(x+y)*3.5)}}#local _=_-.02;#end//JM
>
Thanks for shortening my signature, but I can't really use it because:
-It doesn't have my name or anything about me on it.
-Now that you people have shortened it, it isn't really *my* signature and
IMO it would be wrong to use it.(You might disagree, but this is the way I
feel and I think that what is mine must be made by me.)
But thanks anyway. =)
I'll keep on POVing and maybe one day I'll come up with a new signature.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|
 |