POV-Ray : Newsgroups : povray.binaries.images : photo-style short code Server Time
6 Nov 2024 02:22:10 EST (-0500)
  photo-style short code (Message 1 to 5 of 5)  
From: Tek
Subject: photo-style short code
Date: 6 Aug 2008 18:39:58
Message: <489a283e@news.povray.org>
I was trying to write some code short enough that I could use it as a sig, 
but which rendered something kind of impressive. Well this isn't quite there 
yet (too long!) but I'm quite pleased with the image so I thought I'd share 
it.

I've gone for a kind of photographic look by placing a lens in front of the 
camera with dispersion, and a lot of blur samples to help those highlights 
bleed out convincingly. There's no lights or radiosity, just reflections & 
ambient light. The scene is inside a box with a bright cells pattern and 
no_image to give the kind of reflections you get in photo studios.

And here's the source!:

box{-3,3pigment{cells#macro r(s,o,c,p)superellipsoid{.1scale s rotate o 
pigment{
rgb c}finish{reflection{.02,1falloff 5}}translate p}#end poly_wave 
4colour_map{[
0rgb 0][1rgb 80]}}scale 
9no_image}r(9,0,0,-10.5*y+z*5)r(1,-25,x*5,z*6-x)text{ttf
"ariblk""                     evilsuperbrain.com 
".5,0scale
.4rotate-y*22translate<-4,-1.5,4>pigment{rgb 5}finish{reflection{.5,1falloff 
2}}
}sphere{z/20,.04scale z/3pigment{rgbt 1}interior{ior 1.4dispersion 
1.08}}camera{
     aperture.001blur_samples 99focal_point z*9}

As you can see that's way too long for a sig!

Here's a more readable version for anyone who wants it:

//camera with lens
camera{aperture.001 blur_samples 99 focal_point z*9}
sphere{z/20,.04 scale z/3 pigment{rgbt 1}interior{ior 1.4 dispersion 1.08}}

//light-boxes
box{-3,3 pigment{cells poly_wave 4 colour_map{[0 rgb 0][1 rgb 80]}}scale 9 
no_image}

//the ground & red cube
#macro r(s,o,c,p)superellipsoid{.1 scale s rotate o pigment{rgb 
c}finish{reflection{.02,1 falloff 5}}translate p}#end
r(9,0,0,-10.5*y+z*5)r(1,-25,x*5,z*6-x)

//the text
text{ttf"ariblk"
 "                     evilsuperbrain.com                      "
 .5,0scale.4rotate-y*22translate<-4,-1.5,4>pigment{rgb 
5}finish{reflection{.5,1 falloff 2}}
}

Comments appreciated!
-- 
Tek
http://evilsuperbrain.com


Post a reply to this message


Attachments:
Download 'sig.jpg' (28 KB)

Preview of image 'sig.jpg'
sig.jpg


 

From: Tek
Subject: Re: photo-style short code
Date: 6 Aug 2008 18:42:27
Message: <489a28d3@news.povray.org>
"Tek" <tek### [at] evilsuperbraincom> wrote in message 
news:489a283e@news.povray.org...
> box{-3,3pigment{cells#macro r(s,o,c,p)superellipsoid{.1scale s rotate o 
> pigment{
> rgb c}finish{reflection{.02,1falloff 5}}translate p}#end poly_wave 
> 4colour_map{[
> 0rgb 0][1rgb 80]}}scale 
> 9no_image}r(9,0,0,-10.5*y+z*5)r(1,-25,x*5,z*6-x)text{ttf
> "ariblk""                     evilsuperbrain.com ".5,0scale
> .4rotate-y*22translate<-4,-1.5,4>pigment{rgb 
> 5}finish{reflection{.5,1falloff 2}}
> }sphere{z/20,.04scale z/3pigment{rgbt 1}interior{ior 1.4dispersion 
> 1.08}}camera{
>     aperture.001blur_samples 99focal_point z*9}
>

Oh great word wrap has made a mess of that... <sigh>...

-- 
Tek
http://evilsuperbrain.com


Post a reply to this message

From: Paolo Gibellini
Subject: Re: photo-style short code
Date: 7 Aug 2008 06:46:28
Message: <489ad284$2@news.povray.org>
A beautiful signature!
Due to the blur, the text results a bit obfuscated. Is an intended effect?
;-)
Paolo

 >Tek  on date 07/08/2008 00:39 wrote:
> I was trying to write some code short enough that I could use it as a sig, 
> but which rendered something kind of impressive. Well this isn't quite there 
> yet (too long!) but I'm quite pleased with the image so I thought I'd share 
> it.
> 
> I've gone for a kind of photographic look by placing a lens in front of the 
> camera with dispersion, and a lot of blur samples to help those highlights 
> bleed out convincingly. There's no lights or radiosity, just reflections & 
> ambient light. The scene is inside a box with a bright cells pattern and 
> no_image to give the kind of reflections you get in photo studios.
> 
> And here's the source!:
> 
> box{-3,3pigment{cells#macro r(s,o,c,p)superellipsoid{.1scale s rotate o 
> pigment{
> rgb c}finish{reflection{.02,1falloff 5}}translate p}#end poly_wave 
> 4colour_map{[
> 0rgb 0][1rgb 80]}}scale 
> 9no_image}r(9,0,0,-10.5*y+z*5)r(1,-25,x*5,z*6-x)text{ttf
> "ariblk""                     evilsuperbrain.com 
> ".5,0scale
> .4rotate-y*22translate<-4,-1.5,4>pigment{rgb 5}finish{reflection{.5,1falloff 
> 2}}
> }sphere{z/20,.04scale z/3pigment{rgbt 1}interior{ior 1.4dispersion 
> 1.08}}camera{
>      aperture.001blur_samples 99focal_point z*9}
> 
> As you can see that's way too long for a sig!
> 
> Here's a more readable version for anyone who wants it:
> 
> //camera with lens
> camera{aperture.001 blur_samples 99 focal_point z*9}
> sphere{z/20,.04 scale z/3 pigment{rgbt 1}interior{ior 1.4 dispersion 1.08}}
> 
> //light-boxes
> box{-3,3 pigment{cells poly_wave 4 colour_map{[0 rgb 0][1 rgb 80]}}scale 9 
> no_image}
> 
> //the ground & red cube
> #macro r(s,o,c,p)superellipsoid{.1 scale s rotate o pigment{rgb 
> c}finish{reflection{.02,1 falloff 5}}translate p}#end
> r(9,0,0,-10.5*y+z*5)r(1,-25,x*5,z*6-x)
> 
> //the text
> text{ttf"ariblk"
>  "                     evilsuperbrain.com                      "
>  .5,0scale.4rotate-y*22translate<-4,-1.5,4>pigment{rgb 
> 5}finish{reflection{.5,1 falloff 2}}
> }
> 
> Comments appreciated!
>


Post a reply to this message

From: Tek
Subject: Re: photo-style short code
Date: 7 Aug 2008 15:39:18
Message: <489b4f66$1@news.povray.org>
"Paolo Gibellini" <p.g### [at] gmailcom> wrote in message 
news:489ad284$2@news.povray.org...
>A beautiful signature!
> Due to the blur, the text results a bit obfuscated. Is an intended effect?

Not exactly. The blur makes the highlights on the letters look much nicer 
but I can't have those nice soft edged highlights with sharply focused 
letters... at least not in such short code.

I'll play with it some more and see if I can fix the blurrines.

-- 
Tek
http://evilsuperbrain.com


Post a reply to this message

From: stm31415
Subject: Re: photo-style short code
Date: 7 Aug 2008 23:20:00
Message: <web.489bbaa0585512b43e8cf27d0@news.povray.org>
"Tek" <tek### [at] evilsuperbraincom> wrote:
> "Paolo Gibellini" <p.g### [at] gmailcom> wrote in message
> news:489ad284$2@news.povray.org...
> >A beautiful signature!
> > Due to the blur, the text results a bit obfuscated. Is an intended effect?
>
> Not exactly. The blur makes the highlights on the letters look much nicer
> but I can't have those nice soft edged highlights with sharply focused
> letters... at least not in such short code.
>
> I'll play with it some more and see if I can fix the blurrines.
>
> --
> Tek
> http://evilsuperbrain.com

Reduce the phyical depth of the text; the outline will be more recognizable, and
the blur will be less troublesome.

--
Sam Bleckley


Post a reply to this message

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