POV-Ray : Newsgroups : povray.general : How to engrave text on a ring Server Time
1 Nov 2024 11:14:27 EDT (-0400)
  How to engrave text on a ring (Message 1 to 10 of 10)  
From: Gitay Kryger
Subject: How to engrave text on a ring
Date: 13 Sep 1999 13:31:27
Message: <37DD3533.933DB877@Weizmann.ac.il>
Great PoV gurus,

I am a green, yet eager PoV novice. Here's a bunch of questions:

1. How do I engrave text on the side of e.g. a torus object?

difference {

 torus { 2, 0.75
 texture { pigment { P_Gold2 } finish { F_MetalC } }
 }

   text { ttf "timrom.ttf" "TEXT" 1, 0
      pigment { color Red }
      finish { reflection .25 specular 1 }
      translate <-1,-0.3,2.4>
   }

 scale  < 6, 2, 4 >
 rotate  < 20, -10, 20 >
 translate  < -1.5, 0.0, -10.0 >

}

[Image]


In the picture I made it obvious that I can't do it right; I only
differenced the text
object from the ring but the text should first flow with the ring
curvature.

2. How do I get a laser beam, then curve it along a torus object then
get a
lens flare at one end of it ? I know, these are three questions...

3. Is there a place I can go and find all sorts of source files that
could
possible answer some/all my above basic questions?

Many many thanks,
Gitay

--
===================================================================
Gitay Kryger, Ph.D.                         Phone:  +972-8-934-3759
Dept. of Structural Biology                   Fax:  +972-8-934-4159
The Weizmann Institute          Cellular/VoiceMail:  +972-52-494725
Rehovot, 76100, ISRAEL         E-mail:  Git### [at] Weizmannacil
===================================================================


Post a reply to this message


Attachments:
Download 'us-ascii' (4 KB) Download '/tmp/nsmail37dd353320f6a19.jpeg.png' (6 KB)

Preview of image '/tmp/nsmail37dd353320f6a19.jpeg.png'
/tmp/nsmail37dd353320f6a19.jpeg.png


 

From: Fabien Mosen
Subject: Re: How to engrave text on a ring
Date: 13 Sep 1999 15:51:04
Message: <37DD5592.6334AE0F@skynet.be>
Gitay Kryger wrote:
 
> 1. How do I engrave text on the side of e.g. a torus object?

 If you don't need very deep-loking engraving, you might consider
using a bump-map mapped onto the torus, is faster and easier.

> 2. How do I get a laser beam, 
 Many ways to do it : bright cylinder, cylindrical spotlight
with media (harder)

>then curve it along a torus object then
 Well, you'd better take the cylinder option, and use a portion
of torus for the curved part of the laser.

> get a
> lens flare at one end of it ? I know, these are three questions...
 Look for lensflare includes files by Nathan Kopp or Chris Colefax.

 
> 3. Is there a place I can go and find all sorts of source files that
> could
> possible answer some/all my above basic questions?
 Wait for Uncle Ken to jump and say "visit my links page"...

Fabien.


Post a reply to this message

From: Ken
Subject: Re: How to engrave text on a ring
Date: 13 Sep 1999 15:53:43
Message: <37DD55E3.B3B42887@pacbell.net>
Fabien Mosen wrote:

> > get a
> > lens flare at one end of it ? I know, these are three questions...
>  Look for lensflare includes files by Nathan Kopp or Chris Colefax.

Which you can find on my links page.
 
> 
> > 3. Is there a place I can go and find all sorts of source files that
> > could
> > possible answer some/all my above basic questions?
>  Wait for Uncle Ken to jump and say "visit my links page"...
> 
> Fabien.

Follow the link below to wonderland...

-- 
Ken Tyler

See my 1000+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Jerry
Subject: Re: How to engrave text on a ring
Date: 13 Sep 1999 16:24:28
Message: <jerry-1309991324230001@cerebus.acusd.edu>
In <37DD3533.933DB877@Weizmann.ac.il>, Git### [at] weizmannacil wrote:
>I am a green, yet eager PoV novice. Here's a bunch of questions:
>
>1. How do I engrave text on the side of e.g. a torus object?
>In the picture I made it obvious that I can't do it right; I only
>differenced the text
>object from the ring but the text should first flow with the ring
>curvature.

I have an example you might find useful at
http://www.hoboes.com/html/NetLife/POV/. It engraves text on the bottom of
a spent bullet casing.

The technique I used--doing the text a letter at a time--might not work
for you if the curvature of the ring is significant compared to the width
of the text.

I've also been experimenting with slicing up text and "curving" it in that
way. This pretty much requires a lot of patience or the max_extent keyword
of the superpatch. Something like the following should give you

#include "colors.inc"

camera {
   perspective 
   location < 0.0, 0.0, -5 >
   look_at < 0.0, 0.0, 0.0 >
}
light_source {
   < -100.0, 100, -100 >
   color rgb White 
}
background  {
   color White 
}

//the amount of curvature is determined by the radius
//the 'quality' of the cutting is determined by the fineness.
//the smaller the fineness, the finer the cut
#declare curveradius = 1.5;
#declare fineness = .05;
#declare mytext = text  {
   ttf "timrom.ttf",
   "POV-Ray"
   0.1, 0
}
#declare textExtent = max_extent(mytext);
#declare textMintent = min_extent(mytext);
#declare currentstep = 0;
#declare archangle=degrees(asin((fineness/2)/curveradius))*2;
#declare currentangle = 0;
/* #declare curvedText = */ union {
   #while (currentstep < textExtent.x)
      intersection {
         object { mytext }
         box {
            <currentstep,textMintent.y,0>,
            <currentstep+fineness,textExtent.y,textExtent.z>
         }
         translate <-(currentstep+fineness/2),0,0>
         translate <0,0,curveradius>
         rotate <0,currentangle,0>
         #declare currentangle = currentangle + archangle;
      }
      #declare currentstep = currentstep+fineness;
   #end
   rotate <0,-currentangle/2,0>
   pigment { color Green }
}


Post a reply to this message

From: David Heys
Subject: Re: How to engrave text on a ring
Date: 13 Sep 1999 17:07:01
Message: <37DD6249.7EC46392@hotmail.com>
Fabien Mosen wrote:

> Gitay Kryger wrote:
>
> > 1. How do I engrave text on the side of e.g. a torus object?
>
>  If you don't need very deep-loking engraving, you might consider
> using a bump-map mapped onto the torus, is faster and easier.

You could also try using individual heightfields for each letter and
differencing each letter from the torus. You could then control the
softness of the letter edges by playing with anti-alias and blur functions
when creating the heightfield images.

David


Post a reply to this message

From: Jerry Stratton
Subject: Re: How to engrave text on a ring
Date: 13 Sep 1999 20:44:33
Message: <jerry-1309991744330001@cx38767-a.dt1.sdca.home.com>
In <jer### [at] cerebusacusdedu>, I wrote:
>   color rgb White 

That should, of course, be "color White".

Jerry
http://www.hoboes.com/jerry/


Post a reply to this message

From: Mr  Art
Subject: Re: How to engrave text on a ring
Date: 14 Sep 1999 00:39:03
Message: <37DDD139.3D8D5E7F@gci.net>
Gitay Kryger wrote:

> Great PoV gurus,
>
> I am a green, yet eager PoV novice. Here's a bunch of questions:
>
> 1. How do I engrave text on the side of e.g. a torus object?
>

I have a SuperPatch solution for this one. See "20 Years" on 2 Aug 99 in
the ng p.b.i
If you want this code, I can post it in  p.t.s-f

Mr. Art


Post a reply to this message

From: GRedway
Subject: Re: How to engrave text on a ring
Date: 14 Sep 1999 13:32:45
Message: <37DE7C6A.AF9FBF8E@Totalise.co.uk>
Mmmmnn, that's given me an idea.....<wonders off in a daze>....

	Graham Redway.

------------------------------------
The chances of anything coming from
Mars are a million to one, he said.
------------------------------------

Gitay Kryger wrote:
> 
> Great PoV gurus,
> 
> I am a green, yet eager PoV novice. Here's a bunch of questions:
> 
> 1. How do I engrave text on the side of e.g. a torus object?
> 
> difference {
> 
>  torus { 2, 0.75
>  texture { pigment { P_Gold2 } finish { F_MetalC } }
>  }
> 
>    text { ttf "timrom.ttf" "TEXT" 1, 0
>       pigment { color Red }
>       finish { reflection .25 specular 1 }
>       translate <-1,-0.3,2.4>
>    }
> 
>  scale  < 6, 2, 4 >
>  rotate  < 20, -10, 20 >
>  translate  < -1.5, 0.0, -10.0 >
> 
> }
> 
> [Image]
> 
> 
> In the picture I made it obvious that I can't do it right; I only
> differenced the text
> object from the ring but the text should first flow with the ring
> curvature.
> 
> 2. How do I get a laser beam, then curve it along a torus object then
> get a
> lens flare at one end of it ? I know, these are three questions...
> 
> 3. Is there a place I can go and find all sorts of source files that
> could
> possible answer some/all my above basic questions?
> 
> Many many thanks,
> Gitay
> 
> --
> ===================================================================
> Gitay Kryger, Ph.D.                         Phone:  +972-8-934-3759
> Dept. of Structural Biology                   Fax:  +972-8-934-4159
> The Weizmann Institute          Cellular/VoiceMail:  +972-52-494725
> Rehovot, 76100, ISRAEL         E-mail:  Git### [at] Weizmannacil
> ===================================================================
> 
>


Post a reply to this message

From: Havana7
Subject: Re: How to engrave text on a ring
Date: 23 Dec 2019 08:55:00
Message: <web.5e00c6ec29ef247fe78d13410@news.povray.org>
Someone made an engraving?



GRedway <GRe### [at] Totalisecouk> wrote:
> Mmmmnn, that's given me an idea.....<wonders off in a daze>....
>
>  Graham Redway.
>
> ------------------------------------
> The chances of anything coming from
> Mars are a million to one, he said.
> ------------------------------------
>
> Gitay Kryger wrote:
> >
> > Great PoV gurus,
> >
> > I am a green, yet eager PoV novice. Here's a bunch of questions:
> >
> > 1. How do I engrave text on the side of e.g. a torus object?
> >
> > difference {
> >
> >  torus { 2, 0.75
> >  texture { pigment { P_Gold2 } finish { F_MetalC } }
> >  }
> >
> >    text { ttf "timrom.ttf" "TEXT" 1, 0
> >       pigment { color Red }
> >       finish { reflection .25 specular 1 }
> >       translate <-1,-0.3,2.4>
> >    }
> >
> >  scale  < 6, 2, 4 >
> >  rotate  < 20, -10, 20 >
> >  translate  < -1.5, 0.0, -10.0 >
> >
> > }
> >
> > [Image]
> >
> >
> > In the picture I made it obvious that I can't do it right; I only
> > differenced the text
> > object from the ring but the text should first flow with the ring
> > curvature.
> >
> > 2. How do I get a laser beam, then curve it along a torus object then
> > get a
> > lens flare at one end of it ? I know, these are three questions...
> >
> > 3. Is there a place I can go and find all sorts of source files that
> > could
> > possible answer some/all my above basic questions?
> >
> > Many many thanks,
> > Gitay
> >
> > --
> > ===================================================================
> > Gitay Kryger, Ph.D.                         Phone:  +972-8-934-3759
> > Dept. of Structural Biology                   Fax:  +972-8-934-4159
> > The Weizmann Institute          Cellular/VoiceMail:  +972-52-494725
> > Rehovot, 76100, ISRAEL         E-mail:  Git### [at] Weizmannacil
> > ===================================================================
> >
> >


Post a reply to this message

From: Stephen
Subject: Re: How to engrave text on a ring
Date: 23 Dec 2019 13:20:01
Message: <web.5e01049a29ef247f54809c2a0@news.povray.org>
"Havana7" <nomail@nomail> wrote:
> Someone made an engraving?
>


The way I did it in Pov was to create your ring at the origin. Then create a
single letter text object at the origin. Next scale the text object so that is
about the right size with respect to the ring. Translate the text object out to
intersect the ring, for engraving. Copy the text object, change the letter to
the next letter in the word and rotate it about the origin to its correct
position. Rinse and repeat until finished. (This is laborious unless you use a
mono-spaced font.) Put all the text objects in a union and difference that from
the ring.
I found it looked better and was easier when I made a mesh in blender out of a
box with the text differenced and that object deformed into a circular ring.
Then rendered it in Pov. :)


Post a reply to this message

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