|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Maybe not an image map. I want to engrave initials and a date inside a
wedding ring. The ring is the difference between a torus and a cylinder.
Haven't a clue where to start ... I tried with an image map, but I've no
idea how to get it inside, not outside, the cylinder. Anyway, I really
should change the image to a height map and use it to 'engrave' the date and
initials inside the ring.
Any suggestions?
TIA
Alan Walkington
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Alan Walkington wrote:
>
> Maybe not an image map. I want to engrave initials and a date inside a
> wedding ring. The ring is the difference between a torus and a cylinder.
>
> Haven't a clue where to start ... I tried with an image map, but I've no
> idea how to get it inside, not outside, the cylinder. Anyway, I really
> should change the image to a height map and use it to 'engrave' the date and
> initials inside the ring.
>
> Any suggestions?
I seem to recall that there is a macro in shapes.inc that will allow you to create
text in a circle. You can then difference that from the inside of your ring. The only
thing I don't know is if the macro is flexible enough to create an inverse circle
of text but it is worth exploring.
--
Ken Tyler
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi
You could try splitting your ring in inside and outside parts unsing a
difference and an intersection with a cylinder, then apply the normal_map
only on the inside part.
then you can union your 2 parts.
Marc
news: 3eab77f1$1@news.povray.org...
> Maybe not an image map. I want to engrave initials and a date inside a
> wedding ring. The ring is the difference between a torus and a cylinder.
>
> Haven't a clue where to start ... I tried with an image map, but I've no
> idea how to get it inside, not outside, the cylinder. Anyway, I really
> should change the image to a height map and use it to 'engrave' the date
and
> initials inside the ring.
>
> Any suggestions?
>
> TIA
> Alan Walkington
>
>
Post a reply to this message
|
|
| |
| |
|
|
From: Sir Charles W Shults III
Subject: Re: image map inside a cylinder?
Date: 27 Apr 2003 03:32:37
Message: <3eab8795@news.povray.org>
|
|
|
| |
| |
|
|
It would probably work if you scaled your text with -1. Then your text
direction would reverse.
Cheers!
Chip Shults
My robotics, space and CGI web page - http://home.cfl.rr.com/aichip
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Marc Jacquier <jac### [at] wanadoofr> wrote:
> You could try splitting your ring in inside and outside parts unsing a
> difference and an intersection with a cylinder, then apply the normal_map
> only on the inside part.
That's not necessary. It's enough to apply the texture containing the
text to the cylinder and the other texture to the torus. (The texture in
the cylinder may need inverting (scale <-1,1,-1> or whatever) because
it will be in the inner surface of the cylinder.)
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
A cylindrical height-field is not supported, but you could use a kind of
displacement-map on a cylinder. POV can do this using iso-surfaces. Just
take a cylinder function (e.g. x^2 + z^2 - 1 = 0) and add or subtract
the "image". Here's a short code, the camera is actually inside the
cylinder, the image is engraved on the inside. If you use text in the
image bake it a bit blurry.
#default {
pigment { color rgb <1,1,1> }
finish { ambient 0.2 diffuse 0.8 }
}
camera {
location <0,0.5,-0.9>
look_at 0
angle 120
}
light_source {
<-0.5,0.9,-0.9>
color rgb <1,1,1>
}
#declare f_pigm = function {
pigment {
image_map {
png "f:/test.png"
interpolate 2
map_type 2
}
}
}
isosurface {
function { x*x+z*z-1 + 0.1*f_pigm(x,y,z).grey }
max_gradient 20
no_shadow
}
-sascha
Alan Walkington wrote:
> Maybe not an image map. I want to engrave initials and a date inside a
> wedding ring. The ring is the difference between a torus and a cylinder.
>
> Haven't a clue where to start ... I tried with an image map, but I've no
> idea how to get it inside, not outside, the cylinder. Anyway, I really
> should change the image to a height map and use it to 'engrave' the date and
> initials inside the ring.
>
> Any suggestions?
>
> TIA
> Alan Walkington
>
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
3eabac92@news.povray.org...
> Marc Jacquier <jac### [at] wanadoofr> wrote:
> > You could try splitting your ring in inside and outside parts unsing a
> > difference and an intersection with a cylinder, then apply the
normal_map
> > only on the inside part.
>
> That's not necessary. It's enough to apply the texture containing the
> text to the cylinder and the other texture to the torus. (The texture in
> the cylinder may need inverting (scale <-1,1,-1> or whatever) because
> it will be in the inner surface of the cylinder.)
D'oh!
Yes of course! :-)
I'd better wait I'm completely awake before I reply posts: I missed the
torus/cylinder difference.
Marc
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3EAB7A42.BFBB87C0@pacbell.net>, Ken <tyl### [at] pacbellnet>
wrote:
> I seem to recall that there is a macro in shapes.inc that will allow
> you to create text in a circle. You can then difference that from the
> inside of your ring. The only thing I don't know is if the macro is
> flexible enough to create an inverse circle of text but it is worth
> exploring.
I think the orientation of the letters to the plane of the circle is
wrong...the faces of the letters are parallel to the plane of the
circle, instead of facing radially from the center. Changing this
shouldn't be difficult, it would be easiest to start from the existing
macro.
--
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3eabd9e2@news.povray.org>,
sascha <sas### [at] userssourceforgenet> wrote:
> A cylindrical height-field is not supported,
Not as an internal primitive, but there is a macro in shapes.inc that
can generate cylinderical height fields.
It would probably be simplest to use an image as a bump map. The object
pattern could be used to limit it to the area in the interior surface of
the ring. Alternatively, if an engraved look isn't required, you could
simply use a different looking texture for the lettering, the object
pattern along would work...just use the a text object with the object
pattern and a cylinderical warp to get it lined up with the inside of
the ring. If a non-reflective texture the same color of the metal is
used for the lettering, it might have an etched look.
--
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thanks, Ken ... That's a starting place!
Alan
"Ken" <tyl### [at] pacbellnet> wrote in message
news:3EAB7A42.BFBB87C0@pacbell.net...
>
>
> Alan Walkington wrote:
> >
> > Maybe not an image map. I want to engrave initials and a date inside a
> > wedding ring. The ring is the difference between a torus and a
cylinder.
> >
> > Haven't a clue where to start ... I tried with an image map, but I've no
> > idea how to get it inside, not outside, the cylinder. Anyway, I really
> > should change the image to a height map and use it to 'engrave' the date
and
> > initials inside the ring.
> >
> > Any suggestions?
>
> I seem to recall that there is a macro in shapes.inc that will allow you
to create
> text in a circle. You can then difference that from the inside of your
ring. The only
> thing I don't know is if the macro is flexible enough to create an inverse
circle
> of text but it is worth exploring.
>
> --
> Ken Tyler
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |