POV-Ray : Newsgroups : povray.newusers : Making a pigment or texture directly from text {} : Re: Making a pigment or texture directly from text {} Server Time
23 Feb 2025 15:26:52 EST (-0500)
  Re: Making a pigment or texture directly from text {}  
From: Bald Eagle
Date: 23 Feb 2025 09:00:00
Message: <web.67bb28d068c695a11f9dae3025979125@news.povray.org>
Thanks guys,

There's a much easier way to do it, and get full color as well.

repeat warp in z


------------------------------------------------------------------



#version 3.8;
global_settings {assumed_gamma 1.0 }



camera {
 location <0, 2, -10>
 right x*image_width/image_height
 up y
 look_at <0, 0, 0>
}

light_source {<0, 50, -100> rgb 1}
sky_sphere {pigment {rgb 1}}

#declare Text =
union {
 #local Scale = 1/6;
 text { ttf "arial.ttf", "Text Line1", 2, 0.0 translate y*2}
 text { ttf "arial.ttf", "Text Line2", 2, 0.0 translate y*1}
 text { ttf "arial.ttf", "Text Line3", 2, 0.0 }
 translate -z*1
 scale Scale
 translate x*Scale/2
}

#declare HollowP =
pigment {
 object {
  Text
  color rgb x+y   // outside
  color rgb 0    // inside
 }
}

//#declare FHollow = function {pigment {HollowP warp {repeat x*1} warp {repeat
y*0.5}}}
#declare Hollow = pigment {HollowP warp {repeat x*1} warp {repeat y*0.5} warp
{repeat z*0.1}}

#for (X, -10, 10)
 box {0, 1
  translate <X, 0, X*0.5>
  texture {pigment {Hollow}}
 }

#end


Post a reply to this message


Attachments:
Download 'easyinfinitetext.png' (64 KB)

Preview of image 'easyinfinitetext.png'
easyinfinitetext.png


 

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