POV-Ray : Newsgroups : povray.binaries.images : Tyre macro preview + question Server Time
2 Oct 2024 04:25:38 EDT (-0400)
  Tyre macro preview + question (Message 1 to 8 of 8)  
From: Francois Dispot
Subject: Tyre macro preview + question
Date: 18 Jun 2000 17:05:11
Message: <394D396A.F3249A78@club-internet.fr>
A sample from the current work, which is a megapov macro to make tyres
(1st pic) with isosurfaces given the shape of the "sculptures" (en ?) as
a png bitmap (2nd pic).

Now I have a problem. The lateral parts of the tyres are made with
lathes, and I would like to connect them smoothly to the deepest part of
my isosurface, which is a 4th degree profile. I know the tangent to my
profile, and need to keep the same on the lathe. So my question is: what
is the slope of a cubic_spline lathe profile at one of its control
points?

TIA.
-- 

      __  __ __  __  _
|  | /  \  /  / |_  /  |/
\/\/ \__/ /_ /_ |__ \_ |\


Post a reply to this message


Attachments:
Download 'tyre4.jpg' (45 KB) Download 'tyre4.png' (16 KB)

Preview of image 'tyre4.jpg'
tyre4.jpg

Preview of image 'tyre4.png'
tyre4.png


 

From: Peter Popov
Subject: Re: Tyre macro preview + question
Date: 18 Jun 2000 18:20:17
Message: <pthqks01nru793na7kicbg2b777eotn3uc@4ax.com>
On Sun, 18 Jun 2000 21:04:42 +0000, Francois Dispot
<woz### [at] club-internetfr> wrote:

>A sample from the current work, which is a megapov macro to make tyres
>(1st pic) with isosurfaces given the shape of the "sculptures" (en ?) as
>a png bitmap (2nd pic).

Ah, so you've actually made it! Look great and quite like a real
thing. 

>Now I have a problem. The lateral parts of the tyres are made with
>lathes, and I would like to connect them smoothly to the deepest part of
>my isosurface, which is a 4th degree profile. I know the tangent to my
>profile, and need to keep the same on the lathe. So my question is: what
>is the slope of a cubic_spline lathe profile at one of its control
>points?

Just out of curiosity, isn't the formula in the source code of POV? If
you can't find it, can you use trace() ? Lastly, why don't you use a
bezier spline lathe? At least you won't be wondering where its
tangents are pointing.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Christoph Hormann
Subject: Re: Tyre macro preview + question
Date: 19 Jun 2000 03:02:35
Message: <394DC58B.3CD3A480@gmx.de>
Looks good, esp. the wheels outer part and the rim.  You seem to be
quite a perfectionist about the rim-tyre connection.  More important,
the connection between the spline and the outer part seems a bit broken
(probably because the first/last line of the png have no constant
color). I'm not totally sure about this :-) 

BTW, most tyres have some structure in form of radial/circular margins
from the vulcanization process, very small, but maybe some normal would
do that.  

I would really like to see the code :-)

Christoph

--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Lewis
Subject: Re: Tyre macro preview + question
Date: 19 Jun 2000 05:23:50
Message: <394CA2CF.E89407CB@netvision.net.il>
Wow...impressive! I can't wait for this to be finished...

Francois Dispot wrote:
> 
> A sample from the current work, which is a megapov macro to make tyres
> (1st pic) with isosurfaces given the shape of the "sculptures" (en ?) as
> a png bitmap (2nd pic).
> 
> Now I have a problem. The lateral parts of the tyres are made with
> lathes, and I would like to connect them smoothly to the deepest part of
> my isosurface, which is a 4th degree profile. I know the tangent to my
> profile, and need to keep the same on the lathe. So my question is: what
> is the slope of a cubic_spline lathe profile at one of its control
> points?
> 
> TIA.
> --

>       __  __ __  __  _
> |  | /  \  /  / |_  /  |/
> \/\/ \__/ /_ /_ |__ \_ |\
> 
>   ------------------------------------------------------------------------
>  [Image]  [Image]


Post a reply to this message

From: Francois Dispot
Subject: Re: Tyre macro preview + question
Date: 19 Jun 2000 14:03:12
Message: <394E605F.1DACF7D0@club-internet.fr>
Peter Popov wrote:

> Just out of curiosity, isn't the formula in the source code of POV? If
> you can't find it, can you use trace() ? Lastly, why don't you use a
> bezier spline lathe? At least you won't be wondering where its
> tangents are pointing.

Excellent suggestion. The most obvious way to do what I want is a Bezier
spline... if only I happenned to find the syntax somewhere in the docs!

-- 

      __  __ __  __  _
|  | /  \  /  / |_  /  |/
\/\/ \__/ /_ /_ |__ \_ |\


Post a reply to this message

From: Francois Dispot
Subject: Re: Tyre macro preview + question
Date: 19 Jun 2000 14:05:00
Message: <394E60CB.CCC6332A@club-internet.fr>
Christoph Hormann wrote:
> 
> Looks good, esp. the wheels outer part and the rim.  You seem to be
> quite a perfectionist about the rim-tyre connection.  More important,
> the connection between the spline and the outer part seems a bit broken
> (probably because the first/last line of the png have no constant
> color). I'm not totally sure about this :-)

I noticed this too. And you have given the right reason. Nothing to
worry about in the code.

> BTW, most tyres have some structure in form of radial/circular margins
> from the vulcanization process, very small, but maybe some normal would
> do that.

Sounds interesgting. Could you elaborate on this, please?

> I would really like to see the code :-)

Probably in a few days or so.

-- 

      __  __ __  __  _
|  | /  \  /  / |_  /  |/
\/\/ \__/ /_ /_ |__ \_ |\


Post a reply to this message

From: Christoph Hormann
Subject: Re: Tyre macro preview + question
Date: 19 Jun 2000 16:29:59
Message: <394E82C7.7A1F1066@gmx.de>
Francois Dispot wrote:
> 
[...]
> 
> > BTW, most tyres have some structure in form of radial/circular margins
> > from the vulcanization process, very small, but maybe some normal would
> > do that.
> 
> Sounds interesgting. Could you elaborate on this, please?
> 

I made a quick image, maybe usable as bump_map, but probably a larger
one would be better.  Many tyres also have some text including firm name
and tyre size.  Maybe you should also have a direct look at some real
car's / truck's / tractor's wheels.  

Christoph

--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message


Attachments:
Download 'tyre1.png' (2 KB)

Preview of image 'tyre1.png'
tyre1.png


 

From: David Wilkinson
Subject: Re: Tyre macro preview + question
Date: 19 Jun 2000 18:09:32
Message: <gf6tkskukcv5crv57edgpbj1tpfa72c3f4@4ax.com>
On Mon, 19 Jun 2000 18:03:11 +0000, Francois Dispot <woz### [at] club-internetfr>
wrote:

>Peter Popov wrote:
>
>> Just out of curiosity, isn't the formula in the source code of POV? If
>> you can't find it, can you use trace() ? Lastly, why don't you use a
>> bezier spline lathe? At least you won't be wondering where its
>> tangents are pointing.
>
>Excellent suggestion. The most obvious way to do what I want is a Bezier
>spline... if only I happenned to find the syntax somewhere in the docs!

The information is there under Lathe, but it is very sparse.
 Bezier splines are actually very easy to use.  For each span (pair of points)
you have to give;
<point1>,< control point1>, <controlpoint2>,<point2>
where the control points are the end points of the tangent vectors.  The curve
will be tangent to the vector at its associated point, and the length of the
vector determines the curvature at its associated point.

e.g. this makes a pretty good sphere;
  
lathe {
  bezier_spline
 12,
  <0,1>, <4/3*(sqrt(2)-1), 1>, <1,4/3*(sqrt(2)-1)>, <1,0>, // 1st span
 <1, 0>, <1,-4/3*(sqrt(2)-1)>,  <4/3*(sqrt(2)-1), -1>, <0,-1>, // 2nd span
<0,-1>,<0,0>,<0,0>,<0,1> // 3rd span
  pigment {Red}
 }

(the 4/3*sqrt(2)-1 term just gives a length of vector that makes the bezier
cubic approximate to a circular arc)

David
dav### [at] hamiltonitecom
http://www.hamiltonite.com/


Post a reply to this message

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