POV-Ray : Newsgroups : povray.newusers : Animate Text Around a Sphere Server Time
22 Dec 2024 22:07:01 EST (-0500)
  Animate Text Around a Sphere (Message 1 to 10 of 21)  
Goto Latest 10 Messages Next 10 Messages >>>
From: digitaldad
Subject: Animate Text Around a Sphere
Date: 6 Apr 2011 14:45:00
Message: <web.4d9cb36f58a0fabc6811d79b0@news.povray.org>
Hi Folks,
I am looking for help in animating a stream of text around a sphere, example
"News of the World" revolving around a globe. I remember it being done somewhere
but searches of the web have been unsuccessful.

Thanks in advance.
Digitaldad


Post a reply to this message

From: Stephen
Subject: Re: Animate Text Around a Sphere
Date: 6 Apr 2011 15:44:20
Message: <4d9cc294$1@news.povray.org>
On 06/04/2011 7:40 PM, digitaldad wrote:
> Hi Folks,
> I am looking for help in animating a stream of text around a sphere, example
> "News of the World" revolving around a globe. I remember it being done somewhere
> but searches of the web have been unsuccessful.
>

One way to do it would be to put each individual letter in a union 
centred at the centre of the sphere. Then put all the text unions in 
another union centred at the centre of the sphere. You would rotate the 
individual text unions until you got the spacing you want then rotate 
the final union for your animation.

-- 
Regards
     Stephen


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Animate Text Around a Sphere
Date: 6 Apr 2011 16:20:01
Message: <web.4d9cca2eabacefca81c811d20@news.povray.org>
Stephen <mcavoys_at@aoldotcom> wrote:
> On 06/04/2011 7:40 PM, digitaldad wrote:
> > Hi Folks,
> > I am looking for help in animating a stream of text around a sphere, example
> > "News of the World" revolving around a globe. I remember it being done somewhere
> > but searches of the web have been unsuccessful.
> >
>
> One way to do it would be to put each individual letter in a union
> centred at the centre of the sphere. Then put all the text unions in
> another union centred at the centre of the sphere. You would rotate the
> individual text unions until you got the spacing you want then rotate
> the final union for your animation.
>
> --
> Regards
>      Stephen

If you want it as printed text, you could use the text object in an object
pattern, then apply a spherical warp to wrap the sphere.  You would have to play
with the relative scaling and geometry of the object pattern to get it
positioned and sized right, but that isn't too difficult of maths.

-tgq


Post a reply to this message

From: Alain
Subject: Re: Animate Text Around a Sphere
Date: 7 Apr 2011 16:58:16
Message: <4d9e2568$1@news.povray.org>

> On 06/04/2011 7:40 PM, digitaldad wrote:
>> Hi Folks,
>> I am looking for help in animating a stream of text around a sphere,
>> example
>> "News of the World" revolving around a globe. I remember it being done
>> somewhere
>> but searches of the web have been unsuccessful.
>>
>
> One way to do it would be to put each individual letter in a union

Bad practice, you should NOT use an union to contain a single object.

> centred at the centre of the sphere. Then put all the text unions in
> another union centred at the centre of the sphere. You would rotate the
> individual text unions until you got the spacing you want then rotate
> the final union for your animation.
>

Why put each leter in an union? Each leter is an object and can be 
manipulated as such.

Place all leters in a circle in an union. Have it centered at the 
origin. Use rotate to have the leters move around.

You now only need to place your globe at the origin, possibly wraped in 
an union with the text. You can now locate the whole thing as one unit.

union{
	union{#local Text_pos = 1
	 #while(Text_pos < Text_lenght)
	  text{ttf"arial.ttf" substr(Your_Text",Text_Pos,1),Thickness,0 
translate -Radius*z rotate 320*y/Text_lenght}
	#local Text_pos=Text_pos+1;
	#end
	 rotate 360*clock*y
	 rotate -15*z //to tilt the rotating leters
	}
	object{Globe}
	translate Your_Location
}

Adjust Radius and scale your letters as needed to get a nice spacing.
This gives you solid letters that you can make float around your globe. 
Those leters are flat.

If you want the leters to have a rounded outer surface, then you can 
intersect the letters from a sphere just large enough to contain them.
intersection{[the union of the letters goes here] sphere{0 Radius}}

You can diference another sphere to cut the back side of the letters.
difference{[the union of the letters goes here] sphere{0 Radius-Thickness}}

If you want your leters to travel ON the surface of your globe without 
having any dicernable thickness, then you should use the proposition of 
Trevor.




Alain


Post a reply to this message

From: stbenge
Subject: Re: Animate Text Around a Sphere
Date: 7 Apr 2011 21:33:32
Message: <4d9e65ec@news.povray.org>
On 4/6/2011 1:16 PM, Trevor G Quayle wrote:
> Stephen<mcavoys_at@aoldotcom>  wrote:
>> On 06/04/2011 7:40 PM, digitaldad wrote:
>>> Hi Folks,
>>> I am looking for help in animating a stream of text around a sphere, example
>>> "News of the World" revolving around a globe. I remember it being done somewhere
>>> but searches of the web have been unsuccessful.
>>>
>>
>> One way to do it would be to put each individual letter in a union
>> centred at the centre of the sphere. Then put all the text unions in
>> another union centred at the centre of the sphere. You would rotate the
>> individual text unions until you got the spacing you want then rotate
>> the final union for your animation.
>>
>> --
>> Regards
>>       Stephen
>
> If you want it as printed text, you could use the text object in an object
> pattern, then apply a spherical warp to wrap the sphere.  You would have to play
> with the relative scaling and geometry of the object pattern to get it
> positioned and sized right, but that isn't too difficult of maths.

^This. The object pattern can be used to convert most objects into 
pigments. The resulting pigment will always produce sharp results at any 
resolution, unlike using, say, a bitmap image.

Sam


Post a reply to this message

From: Stephen
Subject: Re: Animate Text Around a Sphere
Date: 8 Apr 2011 04:23:06
Message: <4d9ec5ea$1@news.povray.org>
On 07/04/2011 9:58 PM, Alain wrote:
>
> Why put each leter in an union? Each leter is an object and can be
> manipulated as such.
>

It is a technique for when you are using a modeller that does not have a 
local axis.

> Place all leters in a circle in an union.

Putting each letter in a union is a way of doing this.

-- 
Regards
     Stephen


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Animate Text Around a Sphere
Date: 8 Apr 2011 14:54:22
Message: <4d9f59de$1@news.povray.org>
Stephen wrote:

>> Why put each leter in an union? Each leter is an object and can be
>> manipulated as such.
>>
> 
> It is a technique for when you are using a modeller that does not have a 
> local axis.

I'm not sure I understand this. If you refer to the need
to apply individual transformations to each letter, then you
can use an "object" instead of a "union".


Post a reply to this message

From: Stephen
Subject: Re: Animate Text Around a Sphere
Date: 8 Apr 2011 16:15:13
Message: <4d9f6cd1@news.povray.org>
On 08/04/2011 7:54 PM, Christian Froeschlin wrote:
> Stephen wrote:
>
>>> Why put each leter in an union? Each leter is an object and can be
>>> manipulated as such.
>>>
>>
>> It is a technique for when you are using a modeller that does not have
>> a local axis.
>
> I'm not sure I understand this. If you refer to the need
> to apply individual transformations to each letter, then you
> can use an "object" instead of a "union".


When you use a modeller like Moray or Bishop3D you cannot have anything 
other than the Text object being on a plane. So to have the letters at a 
constant distance from the centre or rotation without using any 
mathematics, I create a letter at the origin and move it in the Z axis 
to the correct position. Then I create a union at the origin and add the 
letter. Next I copy the union and change the letter, repeat until I have 
a word or phrase. I would then adjust the kerning manually by rotating 
each union. To simplify orbiting the letters I create a final union at 
the origin and add the other unions then translate and rotate the final 
union.
It sounds a roundabout way of doing it but in reality it is very simple 
and quick. If I were using Moray there would be no need to create unions 


-- 
Regards
     Stephen


Post a reply to this message

From: Alain
Subject: Re: Animate Text Around a Sphere
Date: 8 Apr 2011 19:20:50
Message: <4d9f9852$1@news.povray.org>

> On 08/04/2011 7:54 PM, Christian Froeschlin wrote:
>> Stephen wrote:
>>
>>>> Why put each leter in an union? Each leter is an object and can be
>>>> manipulated as such.
>>>>
>>>
>>> It is a technique for when you are using a modeller that does not have
>>> a local axis.
>>
>> I'm not sure I understand this. If you refer to the need
>> to apply individual transformations to each letter, then you
>> can use an "object" instead of a "union".
>

> When you use a modeller like Moray or Bishop3D you cannot have anything
> other than the Text object being on a plane. So to have the letters at a
> constant distance from the centre or rotation without using any
> mathematics, I create a letter at the origin and move it in the Z axis
> to the correct position. Then I create a union at the origin and add the
> letter. Next I copy the union and change the letter, repeat until I have
> a word or phrase. I would then adjust the kerning manually by rotating
> each union. To simplify orbiting the letters I create a final union at
> the origin and add the other unions then translate and rotate the final
> union.
> It sounds a roundabout way of doing it but in reality it is very simple
> and quick. If I were using Moray there would be no need to create unions

>

Then, don't use a modeler for your text but use the text primitive to 
create your individual letters. Unless a letter appears 100's times, 
you'll use much less memory, you'll save parsing and loading time, and 
the difference in render time won't be that important. Also, no faceting 
nor mesh artefacts.

Anyway, the letters from those modelers are mesh objects, one mesh 
object per letter, even for a word, with duplicated letters in the word 
as several meshes. Missusing union causes many "Sould have more than one 
objects in CSG". It also makes your code ugly.

Whenever you have one object union, you should use object.



Alain


Post a reply to this message

From: StephenS
Subject: Re: Animate Text Around a Sphere
Date: 8 Apr 2011 21:15:00
Message: <web.4d9fb1f4abacefcac2f1a7d40@news.povray.org>
Alain <aze### [at] qwertyorg> wrote:
....> Anyway, the letters from those modelers are mesh objects...
In this case no, the modelers (Moray, Bishop3d) export the POV-Ray object{text}

....>It also makes your code ugly...
Yes, it can be hard to read the exported code.

Stephen S
Moray and Bishop3d user :-)


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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