|
![](/i/fill.gif) |
As an exercice, I have tried to make the Lua logo (http://www.lua.org) in
POV-Ray.
Note: in Portuguese, lua means moon.
I think it is quite close to the original, a Postscript program.
Nice little CSG exercice, and my first real #while loop...
Regards.
-- #=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=# --
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
Post a reply to this message
Attachments:
Download 'LuaLogo.pov.txt' (4 KB)
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Philippe Lhoste" <Phi### [at] GMX net> wrote in news:3d4e71dd@news.povray.org
> I think it is quite close to the original, a Postscript program.
nice.. but not looking much 3d to me ;)
maybe add a litle 3d effect - by removing "shadowless"
add in finish abient .5 diffuse .5 brilliance .7 to get "just a little" 3d
effect
--
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Rafal 'Raf256' Maj" <raf### [at] raf256 com> wrote:
> "Philippe Lhoste" <Phi### [at] GMX net> wrote in news:3d4e71dd@news.povray.org
>
> > I think it is quite close to the original, a Postscript program.
>
> nice.. but not looking much 3d to me ;)
> maybe add a litle 3d effect - by removing "shadowless"
> add in finish abient .5 diffuse .5 brilliance .7 to get "just a little"
3d
> effect
Mmm, the main goal of the exercise was to be as close as possible from the
original design, hence the flat rendering...
However, in more dynamic views, your suggestion is worthwhile.
I give here the improved version: change the flatRendering value to see both
versions.
One Lua author suggested a spherical version, I will post it here.
Thank you for the hint.
Regards.
-- #=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=# --
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
Post a reply to this message
Attachments:
Download 'LuaLogo.pov.txt' (4 KB)
|
![](/i/fill.gif) |