POV-Ray : Newsgroups : povray.text.scene-files : Halftones : Re: Halftones Server Time
3 Jul 2024 00:53:12 EDT (-0400)
  Re: Halftones  
From: Ron Parker
Date: 28 Nov 2001 15:09:18
Message: <slrna0ah3g.ptg.ron.parker@fwi.com>
On Wed, 28 Nov 2001 11:34:34 -0800, Bryan Valencia wrote:
> In C like languages, the compiler looks for the character after the "/" as a special
control character.  Like "/n" is a newline.  the "//" is how you get a "/" into your
code.
> 
> Has anyone tried something like a text object of "AB/nCD"?
> 
> will it look like AB/nCD  or
> 
> AB
> CD

Backslash, actually, not forward slash.  A text object tries to look up the
0x0A character in the glyph map, so you end up with AB<box>CD where <box> is
the default character-not-found glyph in whatever font you're using.  Unless
you're using one of those weird fonts that defines it as a little L and a 
little F in the same character cell. :)

But I want more comments about my halftones!  Enough of this backslash talk!
Who needs directory separators when we have an include path, anyway?

Seriously, check out these halftones:

    #case (6)
      #declare OnionScale=.02;
      pigment {CustomHalftone(Picture, OnionScale, 
        pigment{onion translate x/OnionScale},
        0, 120, 240)}
      #break
    #case (7)
      pigment {CustomHalftone(Picture, .01, 
        pigment{gradient x turbulence .5 octaves 1},
        90, 210, 330)}
      #break

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbf 1}hollow interior{media{emission 3-T}}}#end 
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}


Post a reply to this message

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