POV-Ray : Newsgroups : povray.newusers : text on a object Server Time
4 Nov 2024 21:22:55 EST (-0500)
  text on a object (Message 1 to 8 of 8)  
From: Roland Vansteenkiste
Subject: text on a object
Date: 1 Jan 2003 01:47:58
Message: <3e12900d.824764@news.povray.org>
Happy newyear everybody

Is it possible to put povray-text on the surface of an object like a
sphere or to make it more complicated the surface of an SOR?

Thakns for any reply


Post a reply to this message

From: Christopher James Huff
Subject: Re: text on a object
Date: 1 Jan 2003 09:51:16
Message: <cjameshuff-1A8986.09470301012003@netplex.aussie.org>
In article <3e12900d.824764@news.povray.org>,
 rol### [at] pibe (Roland Vansteenkiste) wrote:

> Is it possible to put povray-text on the surface of an object like a
> sphere or to make it more complicated the surface of an SOR?

The object pattern was created just for this. It is a block pattern, 
like checkers: it takes two textures and an object, and uses one for any 
areas within the pattern object, and the other for areas outside. 
There's an example of using it in the demo scenes.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Roland Vansteenkiste
Subject: Re: text on a object
Date: 2 Jan 2003 01:54:00
Message: <3e13e282.1402309@news.povray.org>
On Wed, 01 Jan 2003 09:47:03 -0500, Christopher James Huff
<cja### [at] earthlinknet> wrote:

>In article <3e12900d.824764@news.povray.org>,
> rol### [at] pibe (Roland Vansteenkiste) wrote:
>
>> Is it possible to put povray-text on the surface of an object like a
>> sphere or to make it more complicated the surface of an SOR?
>
>The object pattern was created just for this. It is a block pattern, 
>like checkers: it takes two textures and an object, and uses one for any 
>areas within the pattern object, and the other for areas outside. 
>There's an example of using it in the demo scenes.

Thanks Christopher for the quick reply but I will try to explain what
I want. In the object_pattern scene file the text is placed
horizontally on the object. But I want to place the text vertically
(sitting or standing on the object surface)

Greetings from Belgium


Post a reply to this message

From: hughes, b 
Subject: Re: text on a object
Date: 2 Jan 2003 05:37:17
Message: <3e14165d@news.povray.org>
"Roland Vansteenkiste" <rol### [at] pibe> wrote in message
news:3e13e282.1402309@news.povray.org...
> In the object_pattern scene file the text is placed
> horizontally on the object. But I want to place the text vertically
> (sitting or standing on the object surface)

Jumping in.

I am confused about your goal, however you can try using a vector for the
final parameter of the text object if your font is fixed width (maybe).

Such as:

text {
        ttf "arial.ttf", "abcdabcd", 0.1, < -1/2, -1, 0 >
                pigment { color rgb 1 }
}

Reason I'm confused... I saw previous messages and wondered if you wanted
something like uv mapping. For instance, taking a image map of text and
applying in a way that conforms to every curvature of a object.


Post a reply to this message

From: Christopher James Huff
Subject: Re: text on a object
Date: 2 Jan 2003 09:13:00
Message: <cjameshuff-5B6D54.09085202012003@netplex.aussie.org>
In article <3e13e282.1402309@news.povray.org>,
 rol### [at] pibe (Roland Vansteenkiste) wrote:

> Thanks Christopher for the quick reply but I will try to explain what
> I want. In the object_pattern scene file the text is placed
> horizontally on the object. But I want to place the text vertically
> (sitting or standing on the object surface)

This has nothing to do with the object pattern, just the text object. 
You could use a union of separate characters positioned however you 
want, or the text object might have a parameter that allows it...I've 
never done much with that object.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Roland Vansteenkiste
Subject: Re: text on a object
Date: 3 Jan 2003 02:37:50
Message: <3e153de6.685399@news.povray.org>
>I am confused about your goal, however you can try using a vector for the
>final parameter of the text object if your font is fixed width (maybe).
>
>Such as:
>
>text {
>        ttf "arial.ttf", "abcdabcd", 0.1, < -1/2, -1, 0 >
>                pigment { color rgb 1 }
>}
>
>Reason I'm confused... I saw previous messages and wondered if you wanted
>something like uv mapping. For instance, taking a image map of text and
>applying in a way that conforms to every curvature of a object.
>
>
My goal is  placing a text object on a predifined curve (or object)
and I want POV to do all the calculations needed to do that. I've
posted a gif file FLEXICYBER.GIF in the images group to show wath i'm
trying to do. Each letter is one text object and placed (and
calculated) manually. My goal is to make the word one object and to
let POV do all the calculations and placement.

Roland


Post a reply to this message

From: ingo
Subject: Re: text on a object
Date: 3 Jan 2003 03:23:43
Message: <Xns92F85FD71F68seed7@povray.org>
in news:3e153de6.685399@news.povray.org Roland Vansteenkiste wrote:

> My goal is to make the word one object and to
> let POV do all the calculations and placement.
> 

Have a look at "shapes.inc - circle_text". It does not exactly do what you 
want, but you may be able to adapt it to your needs.

Ingo


Post a reply to this message

From: Christopher James Huff
Subject: Re: text on a object
Date: 3 Jan 2003 16:01:26
Message: <cjameshuff-236AB8.15572203012003@netplex.aussie.org>
In article <3e153de6.685399@news.povray.org>,
 rol### [at] pibe (Roland Vansteenkiste) wrote:

> My goal is  placing a text object on a predifined curve (or object)
> and I want POV to do all the calculations needed to do that. I've
> posted a gif file FLEXICYBER.GIF in the images group to show wath i'm
> trying to do. Each letter is one text object and placed (and
> calculated) manually. My goal is to make the word one object and to
> let POV do all the calculations and placement.

Well, the best way would be to use a macro that takes a text string and 
lines the characters up on a spline. You could then do something like:

object {SplineText(MySpline, Size, Spacing, "myfont.ttf", "Hello")}

There is no existing macro that I know of which does this, but it would 
not be too difficult to write. The reorientation transformation in 
transforms.inc would come in useful. I'll try to cook one up if I have 
time.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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