POV-Ray : Newsgroups : povray.text.scene-files : textures on a curve Server Time
22 Dec 2024 18:42:22 EST (-0500)
  textures on a curve (Message 1 to 7 of 7)  
From: Marc Cuypers
Subject: textures on a curve
Date: 31 Dec 2002 10:52:30
Message: <3e11bd3e$1@news.povray.org>
Hi,

Is there a way to make textures follow a curve?

Marc


Post a reply to this message

From: ABX
Subject: Re: textures on a curve
Date: 31 Dec 2002 10:55:59
Message: <ubf31v8e4ejqqqs6ulrm844fbqkmdntgpo@4ax.com>
On Tue, 31 Dec 2002 16:52:30 +0100, "Marc Cuypers" <mc-### [at] pandorabe> wrote:
> Hi,
> Is there a way to make textures follow a curve?

Do you mean mapping on curved shape on some displace of texture.
You have to be more specific but I suppose if there is not direct solution
there can be some workaround. So what exactly do you need?

ABX


Post a reply to this message

From: Marc Cuypers
Subject: Re: textures on a curve
Date: 31 Dec 2002 11:32:34
Message: <3e11c6a2@news.povray.org>
"ABX" <abx### [at] abxartpl> wrote in message
news:ubf31v8e4ejqqqs6ulrm844fbqkmdntgpo@4ax.com...
> On Tue, 31 Dec 2002 16:52:30 +0100, "Marc Cuypers" <mc-### [at] pandorabe>
wrote:
> > Hi,
> > Is there a way to make textures follow a curve?
>
> Do you mean mapping on curved shape on some displace of texture.
> You have to be more specific but I suppose if there is not direct solution
> there can be some workaround. So what exactly do you need?
>
What I'd like is the following:
    Text flowing on a curve (or curved plane).  All I can find is text on a
straight line.

Marc


Post a reply to this message

From: ABX
Subject: Re: textures on a curve
Date: 31 Dec 2002 11:47:59
Message: <poh31vkiq5pqt0d3q51u5n9rqrok27fia3@4ax.com>
On Tue, 31 Dec 2002 17:32:33 +0100, "Marc Cuypers" <mc-### [at] pandorabe> wrote:
> Text flowing on a curve (or curved plane).  All I can find is text on a
> straight line.

You are asking about curved texture becouse text object is on straight line.
But object is not texture! If you want text{} to be texture you have to use it
in object pattern.

Once your texture is created it is just definition for calculating colors in
rendering process. This definition can be modified further with uv_mapping,
user defined functions applied to coordinates or warps. In case of MegaPOV
also displace warp can be used
(http://megapov.inetart.net/manual/patterns.html#displace_warp,
http://megapov.inetart.net/megademo/dispwarpb.jpg)

ABX


Post a reply to this message

From: Marc Cuypers
Subject: Re: textures on a curve
Date: 31 Dec 2002 11:55:42
Message: <3e11cc0e$1@news.povray.org>
"ABX" <abx### [at] abxartpl> wrote in message
news:poh31vkiq5pqt0d3q51u5n9rqrok27fia3@4ax.com...
> On Tue, 31 Dec 2002 17:32:33 +0100, "Marc Cuypers" <mc-### [at] pandorabe>
wrote:
> > Text flowing on a curve (or curved plane).  All I can find is text on a
> > straight line.
>
> You are asking about curved texture becouse text object is on straight
line.
> But object is not texture! If you want text{} to be texture you have to
use it
> in object pattern.
>
> Once your texture is created it is just definition for calculating colors
in
> rendering process. This definition can be modified further with
uv_mapping,
> user defined functions applied to coordinates or warps. In case of MegaPOV
> also displace warp can be used
> (http://megapov.inetart.net/manual/patterns.html#displace_warp,
> http://megapov.inetart.net/megademo/dispwarpb.jpg)
I'm sorry, I think I didn't make myself clear. ( I mixed the terms 'texture'
and 'text')
What I need is text flowing on a plane or curve.  The texture of the text is
not that important.

Marc


Post a reply to this message

From: ABX
Subject: Re: textures on a curve
Date: 31 Dec 2002 12:05:31
Message: <2fj31vocv1u5i038n3u1tf4cpkip7q7iq9@4ax.com>
On Tue, 31 Dec 2002 17:55:42 +0100, "Marc Cuypers" <mc-### [at] pandorabe> wrote:
> I'm sorry, I think I didn't make myself clear. ( I mixed the terms 'texture'
> and 'text')
> What I need is text flowing on a plane or curve.  The texture of the text is
> not that important.

Look for elefont at http://www.armanisoft.ch/webdesign/
or iso chars in iso csg library (use google).

ABX


Post a reply to this message

From: Warp
Subject: Re: textures on a curve
Date: 31 Dec 2002 14:49:38
Message: <3e11f4d2@news.povray.org>
Marc Cuypers <mc-### [at] pandorabe> wrote:
> What I need is text flowing on a plane or curve.

  I'm still a bit confused whether you want real 3D letter objects
(as produced by the 'text' primitive) or if it's enough to bet a pigment
with your text, which is then transformed so that it follows a curve.
(Often the latter case is what one needs because real 3D letter objects
seldom have a real use, except for special effects.)

  If you want your 3D letter objects to follow some curved path, you'll
have to create individual letters and rotate/translate them so that they
follow the path. However, this will not deform the individual letters.
  There's no easy way in POV-Ray to get deformed 3D letter objects. You'll
probably need an external tool which generates eg. triangle meshes for
this.

  If it's enough to get a pigment with your letters, then you can use
the 'text' object to create an object pattern, use this pattern to create
a pattern function and then use for example a spline function to deform
this pattern function. It is possible in POV-Ray 3.5 to deform a pattern
function according to a spline, even though I don't remember the specifics.
  You can then use this deformed pattern function as a pattern to create
the pigment (or texture, or whatever).
  It's not trivial, but it can be done.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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