POV-Ray : Newsgroups : povray.newusers : Ingraving Text : Re: Ingraving Text Server Time
30 Jul 2024 12:22:58 EDT (-0400)
  Re: Ingraving Text  
From: Alain
Date: 5 May 2004 19:40:28
Message: <40997b6c$1@news.povray.org>
Master Xan nous apporta ses lumieres ainsi en ce 2004/05/05 16:34... :

>"Ross" <rli### [at] everestkcnet> wrote:
>  
>
>>"Master Xan" <nomail@nomail> wrote in message
>>news:web.4098f88ef7b95717a81507220@news.povray.org...
>>    
>>
>>>Hey, just started using this program... I'm trying to make a logo for a
>>>website, and I want an engraved sword... I'm learning how to make the
>>>sword, but I can't seem to get anything with engraved text... I checked
>>>      
>>>
>>the
>>    
>>
>>>documentation, I saw something with a difference tag, but couldn't get it
>>>working... any suggestions?
>>>
>>>      
>>>
>>First off, welcome to povray. second, using True Type Fonts in scenes can
>>become slow, especially with difference. Difference is what you want to do,
>>you were right on that point.
>>
>>basically, what you do is this
>>
>>difference {
>>   object {my_sword}
>>   object {my_text]
>>}
>>
>>you may want to try with simple object at first if you havn't. for instance
>>
>>difference {
>>   /* object to cut into */
>>   box {
>>      <1, 1, 1>, <-1, -1, -1>
>>      pigment {rgb <0, 0, 1>}
>>   }
>>   /* this box cuts a square shaped hole all the way through the above box
>>*/
>>   box {
>>      <.5, 2, .5>, <-.5, -2, -.5>
>>      pigment {rgb <1, .5, 0>}
>>   }
>>   rotate 45*y
>>   translate <0, 1, 0>
>>}
>>
>>the important part is making sure that the object that does the cutting
>>actually comes into contact with the object you want to cut into. It is
>>sometimes useful to use "union" in that testing phase (so you actually see
>>where the cutting object is), then replace the union keyword with difference
>>when you have it in the right place.
>>
>>what specific problems are you encountering?
>>    
>>
>
>Well, I can't get all the words visable beyond the cone I'm trying to use
>(kinda looks like a sword if you can't see the ends, I'll replace it
>later). I think it's because I can't get the text to slant (the cone goes
>from 0 Z to 3 Z, but the text won't start at 0 Z and end at 3 Z)
>
>On an unrelated note, is there a list of included things (textures,
>pigments, whatever) that comes with the program, or do I have to copy them
>from the website?
>
>
>
>
>
>  
>
You can rotate the text around any axis. So, assuming your "sword" sit 
along the x axis, with the small end on the right, rotate your text by 
-1 to -5 on the y axis like "rotate -2*y". you may need to translate 
along the z axis. Some trigonometry can give you the exact angle. The 
origin of your text is completely to the left front of the first letter 
on the base line of the text (text goes up and right from the origin 
point and is extruded back)

Alain


Post a reply to this message

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