POV-Ray : Newsgroups : povray.text.tutorials : text on objects : Re: text on objects Server Time
1 Sep 2024 02:16:33 EDT (-0400)
  Re: text on objects  
From: Rob van Wees
Date: 8 Jan 1998 20:41:56
Message: <34B58064.5EDD1070@robw.demon.nl>
Hi Mick,

The easiest way (I found) is to create an intersection of the text and
the outline of the surface you want it on.

Example: How to put text on a sphere, nicely following the curve.

1 - Create a difference{} between two sphere objects, slightly offset
along the 'z' axis (e.g. 'translate z*-.1'). This gives you a thin slice
of a sphere, with the proper curve on the outside. Instead of offsetting
the spheres, you could also try scaling the inner sphere slightly
smaller. You will have to 'chop off' the back three quarters of the
remaining sphere yourself, though (create the difference between two
spheres and a plane to get this).

[ascii drawing]: The slice you get will look somewhat like this:

          _______ (from border of inner sphere)
          \_____/ (from border of outer sphere)

2 - Create an intersection{} between the slice you just created and the
original sphere you wanted to put it on. This gives you a slice of the
text which matches the curve of the slice from step 1. Make sure,
however, that you extrude the text enough (give it thickness) to fully
intersect with the slice. This might take some fiddling and positioning.

In short:

intersection {
    difference {
        surface_1
        surface_2, translate z*-0.1   // or the thickness you want
    }
    your_text_object   // make sure to extrude far enough (enough
thickness)
}

Et voila!

Let me know if you'd like an example .pov file.

Hope this helps,

Rob.

Mick Kohler wrote:
> 
> I am somewhat new to POV... or rather, just a casual user who keeps
> losing what he knows because he just doesn't use it enough.  Anyway, can
> anybody tell me an easy way to put text on an object?  I am in the
> process of making some 55 gallon drums and I'd like to put a name on
> them.
> 
> Thanks in advance,
> Mick


Post a reply to this message

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