POV-Ray : Newsgroups : povray.general : text with background : Re: text with background Server Time
18 May 2024 11:27:15 EDT (-0400)
  Re: text with background  
From: William F Pokorny
Date: 5 Aug 2019 07:09:04
Message: <5d480e50$1@news.povray.org>
On 8/4/19 3:00 PM, Kima wrote:
> I know I can put a text object on a geometrical shape by techniques such as
> "difference", but in this case, I need to know the width of the text to create
> an object with the same size?
> 
> How can I set a background for a text object when I don't know the width/length
> of the text?
> 
Hi. There are min_extent(), max_extent() object bounding box commands.

For what you are doing though, the object pattern using your text as the 
object is perhaps easier. See the shipped sample scene

<install dir>/scene/advanced/object_pattern.pov

or the more interesting abyss.pov where the PERSISTENCE text is written 
on the submarine (not perfectly aligned) using the object pattern.

You can find the most current sample scenes online at:

https://github.com/POV-Ray/povray/distribution.

Bill P.


Post a reply to this message

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