POV-Ray : Newsgroups : povray.newusers : Text in Stone? Server Time
23 Dec 2024 22:36:29 EST (-0500)
  Text in Stone? (Message 1 to 4 of 4)  
From: Cindy
Subject: Text in Stone?
Date: 5 Jan 1999 08:04:35
Message: <36920E2C.4695C113@REMOVEearthlink.net>
How would one accomplish this?  I am trying to make an alter with a
message inscribed into it.

Cindy


Post a reply to this message

From: Ken
Subject: Re: Text in Stone?
Date: 5 Jan 1999 08:24:49
Message: <36921230.AFD48EB2@pacbell.net>
Cindy wrote:
> 
> How would one accomplish this?  I am trying to make an alter with a
> message inscribed into it.
> 
> Cindy

This is a good time to perfect your CSG skills. Pov hav a text object
that can be used in CSG operations.

This snippet of code shows an example of how it's done.

  light_source{<0,0,-200>rgb 1}
  camera{location<0,0,-15>look_at<0,0,0>}

  intersection{
  box{-1,1 scale<5,1.5,1>pigment {rgb 1 }}
  text {ttf "timrom.ttf" "POV-RAY" 1, 0 inverse
  translate<-2.5,0,-1.01>pigment{rgb 0 }}}


  Be sure to read up on the text object because it's
  placement is a little tricky.

-- 
Ken Tyler

tyl### [at] pacbellnet


Post a reply to this message

From: Johannes Hubert
Subject: Re: Text in Stone?
Date: 5 Jan 1999 08:26:43
Message: <36921313.0@news.povray.org>
Cindy wrote in message <36920E2C.4695C113@REMOVEearthlink.net>...
>How would one accomplish this?  I am trying to make an alter with a
>message inscribed into it.
>


One simple solution:

Create your altar stone.
Create your text (as a TrueType object).
Position the text correctly on the stone (as seen from the front, or
whatever viewing angle seems right), then "submerge" it a little bit "into"
the stone, just as deep as you want the "carving" to reach.
Then combine those two objects in a difference CSG (read up on CSG and
differences in the docs a bit). This "cuts out" the text from the altar.

Greetings,
Johannes.


Post a reply to this message

From: Spider
Subject: Re: Text in Stone?
Date: 5 Jan 1999 20:05:04
Message: <3692B5EE.8BBE503F@bahnhof.se>
My reply is mostly the same as others, but I thought I'd add it anyway..

It is good to remember that the placing is oriented left and down, place teh text
object a
bit into the altar and align it correctly, then use difference.

For a good result, don't go to deep, that causes it to be ugly...
Another tip, add the stone texture to the altar, then another to the text, only
diffrence
is that the test is a bit darker, or lighter.... best results is with the same
function
for the texture, but try others... This can make it "Glowing" "dimmed" or other
effects...
just remember to translate the objects before you add the texture.... It'll look
strange
otherways..

//Spider


Post a reply to this message

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